@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Francois+One&family=Russo+One&family=VT323&display=swap');


*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
}

html{
    font-size: clamp(18px, 1.4vw, 48px);
    font-family: "VT323", serif;
    font-weight: 100;
    font-style: normal;
}






button, a{
  cursor: pointer;
}
/*
html, body{
  height: 100%; 
    margin: 0;
}
*/
body{
    background-color: rgba(85, 0, 255, 0.808);
    display: flex; 
    flex-direction: column;
    min-height: 100vh;
}


body.dark-mode {
  background-color: rgba(32, 0, 96, 0.808);

}


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  background-color: rgb(50, 50, 50);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;

}

.navbar .logo a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.25rem;
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.burger-bar {
  width: 2rem;
  height: 0.2em;
  background-color: white;
}


.nav-links {
  display: flex;
  gap: 1em;
  list-style: none;
  margin: 0;
  
}

.nav-links li {
  margin: 0;
  flex: 1;
}

.nav-links a,
#toggle-account-links,
#toggle-settings{
  border: none;
  text-decoration: none;
  color: white;

  padding: 0.4em 0.7em;
  background-color: rgb(70, 70, 70);
  border-radius: 2px;
  transition: color 0.15s ease, background-color 0.15s ease;
  display: inline-block;
  text-align: center;
}

.nav-links a:hover
{
  color: #00ffae;
  background-color: rgb(90, 90, 90);
}





.account {
  position: relative;
}

.account.active #account-links {
  display: block;
}





#account-links {
  display: none;
  position: absolute;
  top: 165%;
  left: 0;
  background-color: rgb(50, 50, 50);
  border-radius: 5px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
  z-index: 1000;
  width: 8rem;
  padding: 0.5em;
}

#account-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#account-links li {
  margin: 0;
}

#account-links a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 0.5em 1em;
  background-color: transparent;
  transition: background-color 0.15s ease;
}

#account-links a:hover {
  background-color: #757575;
}








.settings {
  position: relative;
}

.settings.active #settings-buttons {
  display: block;
}





#toggle-account-links {
  border: none;
  background-color: rgba(0, 216, 236, 0.3);
  cursor: pointer;
  white-space: nowrap;
}

#toggle-account-links:hover {
  color: #c9ff56;
}


#toggle-account-links[aria-expanded="true"] {
  background-color: rgba(0, 216, 236, 0.7);
}

#toggle-account-links[aria-expanded="false"] {
  background-color: rgba(0, 216, 236, 0.3);
}



#toggle-settings {
  background-color: rgba(0, 255, 153, 0.3);
}

#toggle-settings:hover {
  color: #c9ff56;
}


#toggle-settings[aria-expanded="true"] {
  background-color: rgba(0, 255, 153, 0.7);
}

#toggle-settings[aria-expanded="false"] {
  background-color: rgba(0, 255, 153, 0.3);
}






#settings-buttons {
  display: none;
  position: absolute;
  top: 165%;
  right: 1rem;
  background-color: rgb(50, 50, 50);
  border-radius: 2px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
  z-index: 1000;
  width: 8rem;
  padding: 0.5em;
}

#settings-buttons ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#settings-buttons li {
  margin: 0;
}

#settings-buttons button {
  display: block;
  color: white;
  text-decoration: none;
  padding: 0.5em 1em;
  background-color: transparent;
  transition: background-color 0.15s ease;
  width: 100%;
}

#settings-buttons button:hover {
  background-color: #444;

}




@media (max-width: 668px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #333;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    padding: 0;
  }

  .burger-menu {
    display: flex;
  }


  .nav-links.show {
    display: block;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a,
  #toggle-account-links,
  #toggle-settings {
    display: block;
    width: 100%;
    padding: 1em;
    text-align: left;
    background-color: rgb(70,70,70);
    color: white;
    border: none;
    text-decoration: none;
    transition: background-color 0.15s ease;
    text-align: center;
  }


  .nav-links a:hover{
    color: #00eeff;
    background-color: rgb(90,90,90);
  }


  #account-links {
    width: 100%;
    position: static;
    margin: 0;
    box-shadow: none;
  }

  #account-links ul {
    padding: 0;
  }

  #account-links li a {
    padding: 1em;
    text-align: left;
  }


  #toggle-account-links:hover{
    background-color: rgba(0, 216, 236, 0.2);
    color: #c9ff56;
  }

  #toggle-settings:hover{
    background-color: rgba(0, 255, 153, 0.2);
    color: #c9ff56;
  }

  

  #settings-buttons {
    width: 100%;
    position: static;
    margin: 0;
    box-shadow: none;
  }

  #settings-buttons ul {
    padding: 0;
  }

  #settings-buttons li button {
    padding: 1em;
    text-align: left;
    display: block;
    width: 100%;
  }


}







footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: auto;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.7);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-nav {
  margin-top: 0.5rem;
}

.footer-nav a {
  color: #fff;
  margin: 0 0.5rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #00bcd4;
}








  .hallway h1{
    text-align: center;
    color: white;
    display: block;
    margin: 5em 0 1em;
}

.hallway h3{
    color: white;
    text-align: center;
    display: block;
    margin: 0;
}


.hallway .title-box{
    padding: 1em;
    background-color: black;
    margin: 0 auto;
    display: block;
}

.hallway section{
background-color: rgb(0, 0, 0);
margin: 6rem 0 6rem;
box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.3);
width: 50%;
margin: 3em auto;
padding: 0.5em 0.5em 0.5em 0.5em;
}



.hallway section h1{
    margin: 0.5em 0 0.5em;
    }






.hallway .posting-div a{
    background-color: white;
    text-decoration: none;
    padding: 0.3em;
    display: block;
    margin: 0 auto;
    color: black;
    text-align: center;
    }





.hallway .places-div a{
    background-color: white;
    text-decoration: none;
    padding: 0.3em;
    display: block;
    margin: 0 auto;
    color: black;
    text-align: center;
    }





    .hallway .store-div a{
        background-color: white;
        text-decoration: none;
        padding: 0.3em;
        display: block;
        margin: 0 auto;
        color: black;
        text-align: center;
        }












        .posts{
          margin: 2em 0 2em;
          word-wrap: break-word;

        }



.posts .switch-section{
background-color: rgb(0, 72, 255);
margin: 2rem 0 2rem 4rem;
padding: 1rem;
width: 25%;
display: block;
text-align: center;
}


.posts .switch-section h2{
  color: white;
}


.posts #toggle-section-btn{
  padding: 0.3rem;
  font-size: 1.1rem;
  display: block;
  margin: 1rem auto 0;
}





.posts #public-posts{
  background-color: white;
  padding: 1rem;
}


.posts #owner-posts{
  background-color: white;
  padding: 1rem;
}


.posts #public-posts .public-title-box{
  display: block;
  background-color: black;
  color: white;
  width: 50%;
  margin: 0 auto;
  padding: 1em;
  text-align: center;
  font-size: 1.2rem;
}

.posts #owner-posts .owner-title-box{
  display: block;
  background-color: black;
  color: white;
  width: 50%;
  margin: 0 auto;
  padding: 1em;
  text-align: center;
  font-size: 1.2rem;
}



.posts .posting-section{
width: 65%;
background-color: rgb(55, 55, 55);
color: white;
margin: 2rem auto 2rem;
padding: 1.5rem;
font-size: 1.1rem;
}

.posts .posting-section input,
.posts .posting-section textarea
{
  width: 100%;
  padding: 0.3rem;
  }






.login{
  margin: 4rem 0 4rem;

}

.login .whole-login-form{
background-color: white;
color: black;
padding: 1rem;
width: 65%;
margin: 0 auto;
}


.login .whole-login-form input,
.login .whole-login-form button
{
width: 100%;
padding: 0.3rem;
background-color:rgba(13, 0, 255, 0.34);
border: black solid 0.12rem;
font-size: 1.2rem;

}

.login .whole-login-form input{
  margin-bottom: 0.5em;
}

.login .whole-login-form input:focus{
  outline: none;
  background-color:rgba(6, 0, 129, 0.34);
}




.login .whole-login-form #profilePreviewDiv {
  margin: .5rem auto;
  padding: 1em;
  text-align: center;
  background-color: rgb(234, 234, 234);
  height: auto;
}

.login .whole-login-form #profilePreviewDiv img {
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  background-color: white;
  padding: 0.3rem;
  margin: .5rem 0;
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.3);
  width: 11rem;
  height: 11rem;
}


.login .whole-login-form .chooseProfile {
display: block;
margin: 0.5rem 0 1rem;
}






.login .whole-login-form #responseMessage{
  margin: 1.2rem auto 0.5rem;
  text-align: center;
  font-size: 1.1rem;
}











.places{
  margin: 2rem 0 2rem;
}

.places .publish-section{
  width: 65%;
  padding: 1rem;
  background-color: white;
  border-radius: 2px;
  margin: 0 auto;
  font-size: 1.1rem;
  word-wrap: break-word;
}


.places .publish-section h1{
  font-size: xx-large;
  text-align: center;
  margin: 1rem 0 1rem;
}



.places .publish-section input,
.places .publish-section textarea{
width: 100%;
padding: 0.3rem;
margin: 0.3rem 0 0.3rem;
resize: vertical;
}




.places .publish-section #gameThumbnail[type="file"] {
  display: none;
}

.places .publish-section .custom-file-upload {
  display: inline-block;
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}




.places .publish-section #gameLink-note{
font-size: 1rem;
display: block;
margin: 1rem 0 1rem;
}




.places .places-section{
  margin: 4rem auto;
  background-color: white;
  padding: 1.5rem;
}


.places .places-section .title-box{
  padding: 1rem;
  background-color: black;
  width: 50%;
  margin: 0 auto;
  
}

.places .places-section .title-box h1{
color: white;
font-size: xx-large;
text-align: center;
}





.places .places-section #search-form-box{
  margin: 2rem;
  background-color: rgb(40, 187, 255);
  padding: 1.5rem;
}







/* Styling for the individual image remove button */
.remove-image {
  background-color: red;
  color: white;
  padding: 5px 10px;
  border: none;
  cursor: pointer;
  margin-top: 5px;
}

.remove-image:hover {
  background-color: darkred;
}

/* Styling for the 'Remove All Images' button */
#removeAllImages {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  margin-top: 20px;
}

#removeAllImages:hover {
  background-color: darkred;
}



#imagePreviews img{
  height: auto;
  width: 250px;
}






#games-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}


@media (min-width: 600px) {
  #games-box {
    grid-template-columns: 1fr 1fr;
  }
}


@media (min-width: 900px) {
  #games-box {
    grid-template-columns: 1fr 1fr 1fr;
  }
}


@media (max-width: 400px) {
  #games-box {
    grid-template-columns: 1fr;
  }

  .game {
    width: 100%;
    margin: 0 auto;
  }
}


.game {
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: transform 0.3s ease;
}


.game:hover {
  transform: scale(1.02);
}


.game h2 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 10px;
}


.game p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 10px;
}


.game .carousel-container {
  width: 100%;
  height: 200px;
  margin-bottom: 15px;
  position: relative;
}

/* Carousel styles */
.game .carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.game .carousel-item {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
}

.game .carousel-item.active {
  display: block;
}

.game .carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.game .carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.game .carousel-dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
}

.carousel-dot.active {
  background-color: rgba(255, 255, 255, 1);
}

/* Navigation buttons */
.game .carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 3;
}

.game .carousel-prev {
  left: 10px;
}

.game .carousel-next {
  right: 10px;
}








#posts-box {
  display: grid;
  grid-template-columns: 1fr; /* Default 1 post per row */
  gap: 20px;
  margin: 20px;
  align-items: start; /* Prevents stretching of items */
}

/* Grid for larger screens */
@media (min-width: 600px) {
  #posts-box {
      grid-template-columns: 1fr 1fr; /* 2 posts per row */
  }
}

@media (min-width: 900px) {
  #posts-box {
      grid-template-columns: 1fr 1fr 1fr; /* 3 posts per row */
  }
}

.post {
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 5px;
  background-color: #fff;
  height: auto; /* Ensures post height is determined by content */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Keeps content aligned at the top */
}

.post-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}


#posts-box .post h1{
  font-size: 1.2rem;
  text-align: center;
}


#posts-box .post p{
  display: block;
  margin: 1rem 0 1rem;
  text-align: center;
  word-break: break-all;
}









.privacy_policy{
  margin: 4rem 0 4rem;

}


.privacy_policy section{
  background-color: white;
  color: black;
  padding: 1rem;
  width: 65%;
  margin: 0 auto;

}


.privacy_policy section h1{
font-size: 2rem;
text-align: center;
}

.privacy_policy section h3{
  font-size: 1.5rem;
  text-align: center;
  }


  .privacy_policy section h2{
    font-size: 1.5rem;
    text-align: center;
    margin: 1.5rem 0 0;
    }
  
    .privacy_policy section p{
      font-size: 1.1rem;
      text-align: center;
      margin: .5rem 0 0;
      }
    






      .terms_of_service{
        margin: 4rem 0 4rem;
      
      }
      
      
      .terms_of_service section{
        background-color: white;
        color: black;
        padding: 1rem;
        width: 65%;
        margin: 0 auto;
      
      }
      
      
      .terms_of_service section h1{
      font-size: 2rem;
      text-align: center;
      }
      
      .terms_of_service section h3{
        font-size: 1.5rem;
        text-align: center;
        }
      
      
        .terms_of_service section h2{
          font-size: 1.5rem;
          text-align: center;
          margin: 1.5rem 0 0;
          }
        
          .terms_of_service section p{
            font-size: 1.1rem;
            text-align: center;
            margin: .5rem 0 0;
            }








@media (max-width: 608px) {

  .places .publish-section{
    width: 100%;

  }

  .login .whole-login-form{
    width: 100%;
    }
  
    .posts .switch-section{
      margin: 2rem auto;
      width: 100%;
  }
  
  .posts #public-posts .public-title-box{
    width: 100%;
  }


  .posts .posting-section{
    width: 100%;
  }

}