 @font-face {
  font-family: Filson;
  src: url(/Filson_Soft_Bold.otf);
}

* {
  box-sizing: border-box;
}
html {
  margin: 0;
  scrollbar-width: none;
  scroll-behavior: smooth;
  
}

body {
  margin: 0;
  font-family: Filson;
  background-color: #000;
  cursor: url('cursor.cur'), auto;
  height: 100%;
}

html, body {
  overflow-x: clip;
}


main {
  height: 100vh;        /* use 100svh if you want it stable on phones */
  overflow: hidden;
  width: 100%;
}
main canvas { display: block; }


video{
  position: absolute;
  display: block;
  
    margin-left: auto;
    margin-right: auto;
    margin: 0;
    top: 60%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background-color: black;
    width: 60%;
 
}

#menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 7vw;

  font-family: Filson, sans-serif;
  font-weight: 500;
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1.25rem);

  box-shadow: 0 2px 25px black;
  transition: transform 0.3s;
}

/* hide on scroll: toggle this class from JS */
#menubar.hidden {
  transform: translateY(-100%);
}

#menubar .logo img {
  display: block;
  height: 3rem;      /* size by height, not width: 110% */
  width: auto;
}

#menubar ul {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#menubar nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
}

#menubar nav a:hover,
#menubar nav a[aria-current="page"] {
  color: #f05353;   /* your red */
}
 
 @keyframes gradient-89 {
   0% { background-position: 100% 0%; }
   50% { background-position: 0% 0%; }
   100% { background-position: 100% 0%; }
 }


 #current{
  color: #f05353;
  font-weight: 600;
 }



/* lebunger */

.burger {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: black;   /* dark, because your mobile bar is light */
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}



.main{
    width: 100%;
    height: 100%;
    position: fixed;
    display: contents;
    margin: 0;
    background-color: rgb(207, 66, 66);
}

.tnk{
  position: fixed;
  max-width: 6%;
  bottom: 0%;

  animation: move 35s infinite ease-in-out;
}

@keyframes move {
  0%{
    left: 0%;
    transform: scaleX(1)
  }

  49%{
    transform: scaleX(1)
  }
  50%{
    left: 100%;
    transform: scaleX(-1)
  }

  100%{
    left: 0%;
    transform: scaleX(-1)
  }
}


  @media screen and (max-height: 450px) {
    .sidenav {padding-top: 15px;}
    .sidenav a {font-size: 18px;}
  }

  #games{
    position: relative;
    padding-left: 8%;
    margin-top: 20vh;
    color: white;
  }

  #games h1{
    font-size: 8vw;
    container-type: inline-size;
  }

  
 .imgGrid{
     
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 7%;
    margin-top: 10vh;
    right: 0%;
    ruby-align: center;
    row-gap: 10vw;
    justify-items: end;
 }

 a{
  text-decoration: none;
 }

 .game{
    border-radius: 10px;
    object-fit: cover;
    width: 90%;
    height: 90%;
    margin-bottom: 5%;
    opacity: 0.5;
    transition: transform 0.2s ease-in-out;
 }

 .game:hover{
    opacity: 1;
    transform: scale(1.01);
 }
 
 

 .title{
    color: white;
    text-align: left;
    font-size: 1.5vw;
    margin-bottom: 1%;
 }

 .year{
    color: rgb(121, 121, 121);
    text-align: left;
    font-size: 1vw;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 }

 .tags{
    color: rgb(121, 121, 121);
    text-align: left;
    font-size: 0.8vw;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 }

 

.about{
  grid-template-columns: 1fr 1fr 1fr;
  display: grid;
  position: relative;
  font-family: 'Segoe UI';
  margin-top: 1vh;
  padding: 9%;
  row-gap: 20%;
}

.whoare{
  
  display: grid;
  position: relative;
  color: white;
  font-size: 1.1vw;
}

.whoaree{
  
  display: grid;
  position: relative;
  color: white;
  font-size: 1.3vw;
}

.team{
  display: grid;
    position: relative;
  color: white;
}

.people{
  grid-template-columns: 1fr 1fr 1fr;
  display: grid;
  align-content: end;
  row-gap: 10%;
}

 .ppl{
  width: 60%;
  opacity: 60%;
  transition: width 1s;
}

 .ppl:hover{
  opacity: 100%;
  width: 70%;
  cursor: pointer;
}

a.ppl {
  position: relative;   /* anchors the tooltip to its own avatar */
}



/* Tooltip text */
.tooltiptext {
  display: none;
  width: 130px;
  background-color: black;
  color: #ffffff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  position: absolute;
  z-index: 1; /* Ensure tooltip is displayed above content */
}

.ppl:hover .tooltiptext {
  display: block;
}

.soc{
  width: 50%;
  opacity: 60%;
  transition: width 1s;
}

.soc:hover{
  opacity: 100%;
  width: 70%;
  cursor: pointer;
}

.where{
  display: grid;
    position: relative;
  color: white;
}

.social{
  grid-template-columns: 1fr 1fr 1fr;
  display: grid;
  align-content: end;
}

.ccg{
  display: grid;
    position: relative;
  color: white;
  
  font-style: oblique;
}

#aboutus{
    position: relative;
    padding-left: 8%;
    margin-top: 20vh;
    color: white;
}

#aboutus h1{
  font-size: 8vw;
    container-type: inline-size;
}



@media screen and (max-width: 600px){
  body {
  
  height: 10%;
}

#menubar {
  
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 7vw;

  font-family: Filson, sans-serif;
  font-weight: 500;
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1.25rem);
  background-color: rgba(70, 70, 70, 0.301);
  box-shadow: 0 2px 25px black;
  border: rgb(121, 121, 121) solid 1px;
  border-radius: 20px;
  left: 5%;
  right: 5%;
  top: 2%;
  transition: transform 0.3s;
}

.burger { display: block; color: white;}
.burger span {
  background: white;
}

/* dropdown panel, styled like your rounded bar */
#menubar nav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  justify-self: end;
  border:  rgb(121, 121, 121) solid 1px;
  background-color: rgba(70, 70, 70, 0.301);
 
  border-radius: 20px;
  box-shadow: 0 2px 25px black;
}

#menubar.open nav { display: block; }

#menubar ul {
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 1.5rem;
}

#menubar nav a {
  display: block;
  padding: 1rem 0;
  font-size: 1.2rem;
}

/* burger turns into an X */
#menubar.open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#menubar.open .burger span:nth-child(2) { opacity: 0; }
#menubar.open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* your mobile bar sits at top: 2%, so -100% wouldn't fully hide it */
#menubar.hidden { transform: translateY(calc(-100% - 5vh)); }



main { width: 100%; overflow: hidden; }
main canvas { max-width: 100%; height: auto !important; }
.imgGrid{
  grid-template-columns: 1fr;
  
}

#games h1 {
    font-size: 10vw;
    container-type: inline-size;
}

.title {
    font-size: 5vw;
    margin-bottom: 1%;
}

.year{
  font-size: 3vw;
}

.tags{
  font-size: 2vw;
  margin-bottom: 5%;
}

#aboutus h1 {
    font-size: 10vw;
    container-type: inline-size;
}

.about {
    grid-template-columns: 1fr;
    row-gap: 10%;
}

.whoare {
    font-size: 4vw;
}

.whoaree {
   font-size: 3vw;
    
}

.team {
   font-size: 4vw;
    
}

.where {
   font-size: 4vw;
    
}

.tnk {
    max-width: 0%;
    z-index: 1;
    position: fixed;
    display: none;
}




}