@charset "utf-8";

*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Playpen Sans", serif;
}

body {
  background-color: #000000;
}

main {
  width: 97%;
  margin-left: auto;
  margin-right: auto;
}

.title{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  margin-bottom: 50px;
  color: white;
  font-size: 50px;
  font-family: "Nosifer", serif;
}

.title h1{
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 50px;
  font-family: "Nosifer", serif;
}

#op {
  position: fixed;        
  top: 0;                
  left: 0;                
  width: 100vw;          
  height: 100vh;          
  object-fit: cover;      
  z-index: 9979;          
  transition: 0.7s ease-in-out;
}

#op:hover {
  opacity: .8;
  cursor:grab;
}
/* op-header center */
#op-header {
  position: absolute;
  padding: 0;
  margin: 0;
  left: 65%;
  top:55%;
  transform: translate(-50%, -50%);
  font-family: "Nosifer", serif;
  z-index: 9999;
  font-size: 40px;
  color: rgb(212, 0, 255);
  text-shadow:  2px 2px 5px rgb(102, 102, 102);
  z-index: 9999;   
  opacity: .8; 
}

#op-header:hover {
  opacity: 1;
}

#op-h2 {
  position: absolute;
  padding: 0;
  margin: 0;
  left: 70%;
  top: 79%;
  margin: 10px;
  font-size: 30px;
  color: rgb(255, 255, 255);
  text-shadow:  2px 2px 5px rgb(102, 102, 102);
  transform: translate(-50%, -50%);
  font-family: "Nosifer", serif;
  text-align: center;
  z-index: 9998;
  opacity: .8; 
}

#op-h2 :hover {
  opacity: 1.5;
  filter: brightness(2.4)

}
/* navigation start */

/* Navbar with a fixed position at the top */
.fixed-nav {
  background-color: black;
  color: white;
  padding: 10px 50px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

nav ul {
  display: flex;
  justify-content: space-between;
  text-align: center;
  list-style-type: none;
}

ul a {
  color: white;
  background-color: black;
  font-size: 36px;
  text-decoration: none;
  position: relative;
  /* Add position relative to anchor tag for positioning the pseudo-element */
}

ul a:hover {
  color: rgb(251, 255, 0);
  /* Change color on hover */
}

ul a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background-color: #FEFEFE;
  transform-origin: bottom right;
  transition: transform 0.5s ease;
  transform: scaleX(0);
  /* Initially hide the underline effect */
}

ul a:hover::after {
  transform-origin: bottom left;
  transform: scaleX(1);
  /* Display underline effect on hover */
}

ul li {
  position: relative;
}

ul li a+a {
  margin-left: 16px;
}

/* navigation end */

/* header */
.header-wrapper {
  background-image: url('../images/header.gif');
  background-size: cover;
  background-position: center center;
  height: 475px;
  border-left: solid 50px black;
  border-right: solid 50px black;
  border-bottom: solid 30px black;
  position: relative;
  /* Ensure the text is positioned relative to this container */
  display: flex;
  justify-content: center;
  align-items: center;
  color: transparent;
}

.header-wrapper:hover {
  filter: grayscale(100%);
  /* Apply full grayscale effect on hover */
  font-size: 206px;
  /* Adjust as needed */
  font-weight: bold;
  /* Optional styling */
  text-align: center;
  cursor: crosshair;
}


/* header end*/

/* games and images */
.game-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  flex-direction: row;
  background-color: black;
  width: 100%;
  height: auto;
  background-color: rgb(0, 0, 0);
}

.image-block {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 30px;
  overflow: hidden;
}

.image-block a img {
  width: 300px;
  height: 300px;
  border: solid 10px white;
  filter: grayscale(100%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.image-block a:hover img {
  filter: grayscale(0%);
  transform: scale(1.8);
}

.caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 24px;
  font-family: 'Montserrat', sans-serif;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  text-align: center;
  width: 80%;
}

a {
  display: block;
  text-decoration: none;
}

/* games and images */


/* typing box */
.box {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  background-color: black;
}

.box::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.box::-webkit-scrollbar-track {
  background: #000000;
  border-radius: 10px;
  width: 33px;
  ;
}

/* Handle  */
.box::-webkit-scrollbar-thumb {
  background: #ff0000;
  border-radius: 10px;
  width: 33px;
}

.box::-webkit-scrollbar-thumb:hover {
  background: #f6ff00;
}

.box::-webkit-scrollbar-corner {
  background: #f1f1f1;
}

.about-wrapper {
  text-align: center;
  background-color: black;
  color: white;
  font-size: 24px;
  padding-left: 150px;
  padding-right: 150px;
  white-space: pre-wrap;
}

.typeing {
  color: yellow;
  font-family: monospace;
}

/* Blinking cursor typing effect */
.blinker {
  opacity: 1;
  margin-bottom: -2px;
  height: 15px;
  margin-left: -5px;
  border-left: 7px solid yellow;
  animation: blinker 0.9s steps(2, start) infinite;
}

@keyframes blinker {
  to {
    visibility: hidden;
  }
}

/* typing box */


/* footer section */

.nav {
  background-color: black;
  color: white;
  padding: 10px 50px;
  position: sticky;
  top: 0;
}

/* music player */

#music-toggle {
  background-color: rgba(0, 255, 0, 0.6);
  color: rgb(0, 0, 0);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 15px;
}

#music-toggle:hover {
  background-color: rgba(0, 255, 0, 1.0);
  color: white;
}


@media screen and (max-width: 768px) {
  .fixed-nav ul a {
    font-size: 24px;  
  }

  .fixed-nav ul {
    flex-direction: column;
    align-items: center; 
  }

  .header-wrapper {
    height: 300px;
    background-size: contain;
  }

  .caption {
    font-size: 18px;
    padding: 8px;
  }

  .game-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .image-block a img {
    width: 200px;
    height: 200px;
  }

  .image-block {
    margin: 10px;
  }

  .about-wrapper {
    font-size: 18px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav ul li a {
    font-size: 16px;
  }

  #music-toggle {
    padding: 8px 16px;
    font-size: 14px;
  }
}
