@font-face {
  font-family: "RNS Baruta";
  src: url("../fonts/BarutaBlack.eot");
  src: url("../fonts/BarutaBlack.eot?#iefix") format("embedded-opentype"),
    url("../fonts/BarutaBlack.woff2") format("woff2"),
    url("../fonts/BarutaBlack.woff") format("woff"),
    url("../fonts/BarutaBlack.svg#BarutaBlack") format("svg");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "RNS Baruta";
  font-weight: 900;
  font-style: normal;
  margin: 0;
  padding: 0;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: black;
}

main {
  padding-top: 20px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  width: 75%;
  height: auto;

  background-color: #f0f0f0;
}

.container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  width: 100vw;
  height: auto;
}

.adbanner1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
  width: 10%;
  height: 200vmax;
  background-image: linear-gradient(to bottom, #fd5354, #fbb753, #5cacc5);
  background-repeat: no-repeat;
  position: relative;
  top: 0;
  bottom: 0;
}

.adbanner2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
  width: 10%;
  height: 200vmax;
  background-image: linear-gradient(to bottom, #fd5354, #fbb753, #5cacc5);
  background-repeat: no-repeat;
  position: relative;
  top: 0;
  bottom: 0;
}

@media screen and (max-width: 700px) {
  main {
    height: auto;
    width: 100vw;
    flex-direction: column;
  }
  .container {
    flex-direction: column;
    height: auto;
    width: 100vw;
  }

  .adbanner1,
  .adbanner2 {
    width: 100%;
    height: 100%;
  }
}

@media screen and (max-width: 520px) {
  main {
    height: auto;
    width: 100vw;
  }

  .adbanner2 {
    display: none;
  }

  .adbanner1,
  .adbanner2 {
    width: 100%;
    height: 100%;
  }
}

nav {
  display: flex;
  flex-wrap: nowrap;
  background-color: #ffffff;
  width: 100vw;
  height: 20vh;
}

nav ul {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  width: 100vw;
  list-style: none;
  row-gap: 0.5rem;
}

nav ul li a {
  width: 20rem;
  height: 2rem;
  text-decoration: none;
  color: black;
}

nav ul li a.txtBtn:hover {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: auto;
  height: auto;
  border-radius: 10px;
  background-image: linear-gradient(
    to right,
    #fd5354,
    #fd5354,
    #5cacc5,
    #f0de1c,
    #fbb753,
    #fbb753
  );
  background-repeat: no-repeat;
  transition: all 0.3s ease-in;
}

.txtBtn {
  display: inline;
}

#burger-menu {
  display: none;
}

.active-user {
  display: block;
}

@media screen and (max-width: 720px) {
  .active-user {
    display: none;
  }
}

/* @media screen and (max-width: 402px) {
  #burger-menu {
    position: absolute;
    top: 5px;
    right: 10px;
  }
} */

@media screen and (max-width: 545px) {
  nav ul .txtBtn {
    display: none;
  }

  #burger-menu {
    display: inline;
    padding-right: 20px;
  }

  #burger-menu {
    transform: scale(1.1);
    transition: transform 0.5s;
  }
}

#dropdown.hide .txtBtn {
  display: none;
}

#dropdown .hide,
#dropdown .hide ul,
#dropdown .hide ul li,
#dropdown .hide ul li a {
  display: none;
}

#dropdown .show {
  display: block;
}

#dropdown {
  z-index: 1;
  position: absolute;

  top: 25vh;
  right: 10px;
  background-color: #ffffff;
  border-radius: 20%;
}

#dropdown.show {
  display: flex;
}

#dropdown.hide {
  display: none;
}

#dropdown .show ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 20vw;
  height: 40vw;
  z-index: 1;
}

#dropdown .show ul li a {
  display: block;
  width: 20rem;
  height: 20rem;
  padding: 0;
}

#dropdown #dropdownBG ul {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  width: 100%;
  height: 80%;
}

#divider {
  overflow: hidden;
  width: 100%;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

#headerText {
  font-size: 3rem;
  color: #000000;
  text-align: center;
}

.logo-full {
  display: inline;
  width: 5rem;
  height: 2.5rem;
}

.logo-simple {
  display: none;
  width: 2rem;
  height: 2rem;
}

@media screen and (max-width: 500px) {
  .logo-full {
    display: none;
  }

  .logo-simple {
    display: inline;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* contact page */

#contactInfo {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 80%;
  height: 80%;

  padding: 5%;
}

.circle-clip {
  border-radius: 50%; /* This will make the image appear as a circle */
  overflow: hidden; /* This will clip the image to the circle */
  width: 200px; /* Adjust as needed */
  height: 200px; /* Adjust as needed */
}

.circle-clip img {
  display: block; /* Removes any space below the image */
  width: 100%; /* Makes the image fill the container */
  height: auto; /* Keeps the image aspect ratio */
}

#feedbackForm {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: left;
  align-items: center;
  width: 300px;
  height: auto;
  padding: 5%;
}

#feedbackForm input {
  width: 50%;
  height: 40px;
  padding: 3px;
  margin: 3px;
}

#feedbackForm textarea {
  width: 50%;
  padding: 3px;
  margin: 3px;
}

#feedbackForm div {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: auto;
  padding: 3px;
  margin: 3px;
}

#message {
  text-align: start;
}

/* profile page */

#user-info {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  height: auto;
}

#profilePhotoClipPath {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
}

#display-profile-picture {
  display: block;
  width: 100%;
  height: auto;
}

#profile-form {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;

  flex-wrap: nowrap;
  width: 100%;
  height: auto;
}

#profile-form input {
  width: 20%;
  padding: 3px;
  margin: 3px;
}

#profile-form button {
  background-color: #000000;
  color: white;
  font-family: "RNS Baruta";
  border: none;
  border-radius: 3px;
  padding: 3px;
  margin: 3px;
}

#profileInputs {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  height: auto;
  padding: 3px;
  margin: 3px;
}

#updateControls {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  height: auto;
  padding: 3px;
  margin: 3px;
}

.userGames {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
}

.userGameList {
  width: 300px;
  height: 300px;
  margin: 1rem;
  padding: 1rem;
  background-image: linear-gradient(45deg, rgb(255, 157, 0), red);
  color: white;
  border: none;
  border-radius: 15px;
}

.warning {
  color: red;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 300px;
  height: auto;
}

/* iframe css */

.iframe-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 56.25%; /* Aspect ratio for 16:9 */
  width: 100%;
  height: 110%;
}

.iframe1 {
  width: 100%;
  height: 100%;
  border: 0;
}

.iframe-container iframe {
  width: 100%;
  height: auto;
  min-height: 700px;
  border: none;
}

iframe.active {
  border: 2px solid blue; /* Example style for active state */
}

.overlay.active {
  display: none;
}

@media screen and (max-width: 1015px) {
  .iframe-container {
    width: 100%;
    height: 100%;
  }

  .iframe-container iframe {
    width: 100%;
    height: 100%;
  }
}

/* Games Page */

#games {
  display: flex;
  flex-direction: row;

  flex-wrap: wrap;
  width: 100%;
  height: 100%;
}

.gameDiv {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 400px;
  height: auto;
  margin: 1rem;
  padding: 1rem;
  background-color: rgb(0, 0, 0);
  color: white;
  border: 1px solid;
  border-image: linear-gradient(
      to right,
      red,
      orange,
      yellow,
      green,
      blue,
      indigo,
      violet,
      red
    )
    1;
  border-image-slice: 1;
  border-radius: 5px;
}

.topDiv {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: auto;
  white-space: nowrap;
  column-gap: 10%;
}

.playersCount {
  display: flex;
  justify-content: flex-start;

  flex-wrap: nowrap;
}

.highestScore {
  display: flex;
  justify-content: center;
  align-items: center;
}

.likesDiv {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: auto;

  column-gap: 1rem;
}

.likesCount {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.commentForm {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  height: auto;
}

.comments {
  height: auto;
  max-height: 200px;
  overflow-y: scroll;
}

/* For WebKit browsers */
.comments::-webkit-scrollbar {
  width: 8px; /* or any desired width */
}

.comments::-webkit-scrollbar-track {
  background: #000000; /* Track color */
}

.comments::-webkit-scrollbar-thumb {
  background: #2e2e2e; /* Handle color */
}

.comments::-webkit-scrollbar-thumb:hover {
  background: #949494; /* Handle color on hover */
}

/* For Firefox */
.comments {
  scrollbar-width: thin; /* "auto" or "thin" */
  scrollbar-color: #2e2e2e #000000; /* thumb and track color */
}

.comment {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: auto;
}

.commentIcon {
  width: 10px;
  height: auto;
}

.commentVote {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  width: 30px;
  height: auto;
}

.commentVotes {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  width: 60px;
  height: auto;
}

.toggleButton {
  background-color: #000000;
  color: white;
  font-family: "RNS Baruta";
  border: none;
  border-radius: 3px;
  padding: 3px;
}

form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 1rem;
  width: 100%;
  height: 100%;
}

#closeGameButton {
  background-color: #cb3a3a;
  color: white;
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: "RNS Baruta";
  border: none;
  height: 30px;
  width: 30px;
  border-radius: 3px;
  padding: 3px;
}

#signOut {
  background: linear-gradient(
    -45deg,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet,
    red /* end with the same color as the start color */
  );
  background-size: 500% 500%;
  border: none;
  padding: 10px;
  width: 50%;
  border-radius: 5px;
  color: white;
  font-family: "RNS Baruta";
}

button[type="submit"] {
  background: linear-gradient(
    -45deg,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet,
    red /* end with the same color as the start color */
  );
  background-size: 500% 500%;
  border: none;
  padding: 10px;
  border-radius: 5px;
  color: white;
  font-family: "RNS Baruta";
}

@keyframes rainbow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

button[type="submit"]:hover {
  animation: rainbow 0.5s linear infinite;
}

input {
  width: 50%;
  padding: 10px;
  border: 1px solid;
  border-image: linear-gradient(
      to right,
      red,
      orange,
      yellow,
      green,
      blue,
      indigo,
      violet,
      red
    )
    1;
  border-image-slice: 1;
  font-family: "arial";
}

input:focus {
  outline: none;
  border-color: #fd5354;
  box-shadow: 0 0 5px #fd5354;
}

@media screen and (max-width: 700px) {
  #games {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .gameImg {
    width: 100%;
    height: auto;
  }

  .gameCoverClipBox {
    width: 100%;
    height: auto;
  }

  .gameDiv {
    width: 100%;
    height: auto;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Sign Up Page */

#google-signup {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  width: 15rem;
  height: 5rem;
  border-radius: 5px;
  border: none;
  font-family: "RNS Baruta";
  font-weight: 900;
  font-size: 1rem;
  color: rgb(0, 0, 0);
  background-color: #ffffff;
}

/* Sign In Page */

#google-signin {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  width: 15rem;
  height: 5rem;
  border-radius: 5px;
  border: none;
  font-family: "RNS Baruta";
  font-weight: 900;
  font-size: 1rem;
  color: rgb(0, 0, 0);
  background-color: #ffffff;
}

.signInCont {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

#google_logo {
  width: 2rem;
  height: 2rem;
}

#policies {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

#policies a {
  text-decoration: underline;
  color: rgb(0, 98, 255);
}

/* error message */

#message {
  width: 100%;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}

/* Add Game Page  */

#category-dropdown-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50%;
  height: auto;
}

.category-dropdown-menu {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.category-dropdown-menu input[type="checkbox"] {
  margin: 10px;
}

#categoryTop {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: auto;
}

#category-label {
  align-self: center;
}

#closeCategories {
  align-self: flex-end;
  position: relative;
  top: 0;
  right: 5px;
  background-color: #cb3a3a;
  color: white;
  font-family: "RNS Baruta";
  border: none;
  border-radius: 5px;
}

.vertRule {
  border-left: 3px solid black;
  height: 100%;
}

footer {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  width: 100vw;
  height: 150px;
  background-color: #ffffff;
}

.section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  flex-wrap: wrap;
  gap: 1rem;
}

#rbsLogo {
  width: 50%;
  height: auto;
}

#logoLink {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.spacer {
  height: 20px;
}

.copyright {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
}

.title {
  font-size: large;
  color: rgb(83, 31, 255);
}
