* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Google Sans", "Product Sans", Roboto, sans-serif;
  color: #fff;
}

html,
body {
  height: 100%;
  width: 100%;
}

nav {
  position: fixed;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 2vw 10.4vw;
  justify-content: space-between;
  z-index: 99;
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid #dadada;
  border-width: 80%;
}

nav h1 a {
  text-decoration: none;
}

.nav-right {
  display: flex;
  gap: 2vw;
}

.nav-right h4 {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1vw;
}

.nav-right h4 a {
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.nav-right h4 a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.nav-right h4 a.active {
  background-color: rgba(255, 255, 255, 0.3);
}

.hamburger-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

#nav-bottom {
  display: none;
  background-color: #fff;
  padding: 1em;
  position: absolute;
  top: 42px;
  width: 107%;
  left: -15px;
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  transition: all 0.3s ease;
}

#nav-bottom.active {
  display: block;
  animation: slideDown 0.3s forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

#nav-bottom h4 {
  margin: 10px;
  padding: 0.5em 0;
  text-align: center;
  border-bottom: 1px solid #dadada;
  text-transform: uppercase;
  font-weight: 600;
  height: 40px;
}

#nav-bottom h4 a {
  margin-top: 3px;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

#nav-bottom h4 a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

/* Mobile view */
@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }

  .nav-right {
    display: none;
  }
}

#home {
  background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%);
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#preview {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  height: 80%;
}

#preview img {
  width: auto;
  height: 540px;
  border-radius: 2%;
}

#info {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 80%;
  text-align: center;
  justify-content: space-evenly;
}

#info-up {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  text-align: center;
  flex: 1;
}

#info-up h1 {
  padding-left: 17px;
  font-size: 50px;
  text-transform: uppercase;
  font-weight: 900;
  justify-content: center;
}

#info-up p {
  text-align: center;
  font-weight: 400;
  margin-top: 5px;
}

#info-down {
  margin-top: 198px;
  display: flex;
  flex: 1;
  justify-content: center;
}

#play-button {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-around;
  width: 100%;
}

#play-with {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: 100%;
}

#play-with a {
  text-decoration: none;
  background-color: #2e8af7;
  color: #fff;
  padding: 20px 40px;
  border: none;
  border-radius: 10px;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  width: 25vw;
}

#play-with #icon i {
  font-size: 2.8vw;
  margin-right: 12px;
  border-radius: 5px;
}

#play-with a:hover {
  background-color: #1e6ab0;
}

#button-text {
  display: flex;
  flex-direction: column;
}

#button-text p {
  display: flex;
  font-size: 32px;
  font-weight: bold;
  align-items: start;
}

#button-text span {
  font-size: 24px;
  margin-top: 5px;
}

#glow-button {
  padding-left: 33px;
  padding-right: 33px;
  padding-bottom: 16px;
  padding-top: 16px;
  border-radius: 9px;
  background: #330867;
  border: none;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: 0.4s;
}

#glow-button:hover {
  box-shadow: 7px 5px 56px -14px #30cfd0;
}

#glow-button:active {
  transform: scale(0.97);
  box-shadow: 7px 5px 56px -10px #30cfd0;
}

#about {
  background-image: linear-gradient(to top, #330867 0%, #30cfd0 100%);
  height: 100%;
  width: 100%;
  padding: 50px;
  position: relative;
  padding: 0vw 10.5vw;
  padding-bottom: 8vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #dadada;
}

#about-left {
  height: 100%;
  width: 45%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 3.5vw 0;
}

#about-left p {
  justify-content: start;
  font-size: 1.8vw;
  font-weight: 900;
}

#about-left h5 {
  margin-top: 520px;
  width: 75%;
  font-weight: 400;
  font-size: 1.1vw;
}

#about-right {
  height: 100%;
  width: 45%;
  padding: 3vw 0;
}

.about-right-list {
  position: relative;
  padding-top: 2vw;
  padding-bottom: 5vw;
  border-bottom: 1px solid #dadada;
}

.about-right-list h2 {
  font-weight: 400;
  font-size: 1.4vw;
}

.about-right-list img {
  height: 6vw;
  width: 6vw;
  border-radius: 0%;
  object-fit: cover;
  position: absolute;
  opacity: 0;
}

#rules {
  height: 100vh;
  width: 100%;
  background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#rules-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  text-align: center;
  height: 90%;
  width: 90%;
  background-image: url(/assets/preview.png);
  border-radius: 10px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
  margin: 5vw;
}

#rules-video-center {
  display: flex;
  align-items: center;
  padding: 1vw;
  flex-direction: column;
}

#rules-video-center #icon {
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.3vw;
  border-radius: 50%;
}

#rules-video-center #icon i {
  font-size: 2.8vw;
  color: #000;
}

#rules-video-center h5 {
  font-size: 0.8vw;
  background-color: #fff;
  color: #000;
  border-radius: 50px;
  padding: 12px 26px 10px 26px;
  margin-top: 0.5vw;
  font-weight: 700;
  opacity: 0;
  transition: all ease 0.5s;
  transform: translateY(16%);
  text-transform: uppercase;
}

#rules-video-center:hover h5 {
  opacity: 1;
  transform: translateY(0%);
}

#rules video {
  height: 100%;
  width: 100%;
  position: absolute;
  object-fit: cover;
  transform: scaleX(0.7) scaleY(0);
  opacity: 0;
  border-radius: 30px;
  z-index: 9;
}

#instructions {
  min-height: 100vh;
  background-image: linear-gradient(to top, #330867 0%, #30cfd0 100%);
  width: 100%;
  position: relative;
  padding: 5vh 10.5vw;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

#instructions button {
  background-color: #330867;
  padding: 0.9vw 2.5vw;
  font-weight: 600;
  font-size: 1vw;
  border-radius: 50px;
  border: none;
  position: sticky;
  top: 15%;
}

#instructions-right {
  width: 70%;
}

#instructions-right > p {
  font-size: 2.1vw;
}

#instructions-right > p span {
  width: 15vw;
  display: inline-block;
}

#instructions-content {
  width: 100%;
  margin-top: 5vh;
  padding: 5vh 0;
}

#instructions-content h1 {
  font-size: 3vw;
  font-weight: 500;
}

#instructions-content #flex {
  display: flex;
  margin-top: 4vh;
  margin-bottom: 4vh;
}

#instructions-content #flex h4 {
  border-radius: 50px;
  border: 1px solid #fff;
  padding: 10px 20px;
  font-weight: 400;
  font-size: 0.8vw;
}

.instructions-elem {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  transition: all cubic-bezier(0.19, 1, 0.22, 1) 1s;
  padding-top: 3vh;
  padding-bottom: 9vh;
  overflow: hidden;
  border-top: 1px solid #dadada;
  position: relative;
}

.instructions-elem p {
  width: 55%;
  font-size: 0.8vw;
  position: relative;
  z-index: 8;
}

.instructions-elem h3 {
  font-size: 1.6vw;
  font-weight: 400;
  position: relative;
  transition: all cubic-bezier(0.19, 1, 0.22, 1) 1s;
  z-index: 8;
}

.instructions-elem i {
  font-size: 1vw;
  position: relative;
  transition: all cubic-bezier(0.19, 1, 0.22, 1) 1s;
  z-index: 8;
}

.over {
  height: 100%;
  width: 100%;
  background-color: #3308677c;
  position: absolute;
  top: 0;
  transform: translateY(-100%);
  opacity: 0;
  transition: all cubic-bezier(0.19, 1, 0.22, 1) 1s;
}

.instructions-elem:hover h3 {
  padding-left: 1vw;
}

.instructions-elem:hover i {
  padding-right: 1vw;
}

.instructions-elem:hover .over {
  transform: translateY(0);
  opacity: 1;
}

.instructions-elem:hover {
  border-top: 2px solid #fff;
}

summary::marker {
  content: "";
}

.uiux {
  border-top: 1px solid #dadada;
  padding: 3vh 0;
}

/* Media queries for responsiveness */
@media (max-width: 1024px) {
  .nav-right h4 {
    font-size: 1.4vw;
  }
  #home {
    padding: 0 2vw;
  }
  #preview {
    margin-top: 0;
  }
  #preview img {
    height: auto;
    max-width: 100%;
  }
  #info-up h1 {
    padding-left: 0px;
    font-size: 35px;
  }
  #info-up p {
    font-size: 16px;
  }
  #info-down {
    margin-top: 82px;
  }
  #play-with a {
    width: 35vw;
  }
  #button-text span {
    white-space: nowrap;
  }
  #about {
    padding: 0 5vw;
  }
  #about-left p {
    font-size: 2.8vw;
    font-weight: 600;
  }
  #about-left h5 {
    font-size: 1.8vw;
    width: 89%;
    margin-top: 224px;
  }
  .about-right-list h2 {
    font-size: 1.8vw;
  }
  #instructions {
    padding: 0 5vw;
  }
  #instructions button {
    padding: 1.4vw 3vw;
    font-size: 2vw;
    z-index: 9;
  }
  .instructions-elem h3 {
    font-size: 2.2vw;
  }
}

@media (max-width: 768px) {
  .nav-right {
    display: none;
  }
  .hamburger-menu {
    display: block;
  }
  #home {
    flex-direction: column;
    padding-bottom: 10px;
  }
  #preview {
    margin-top: 55px;
  }
  #preview img {
    padding: 20px;
  }
  #info-up h1 {
    font-size: 36px;
  }
  #play-with a {
    width: 50vw;
    gap: 1vw;
  }
  #about {
    flex-direction: column;
    height: auto;
  }
  #about-left,
  #about-right {
    width: 100%;
  }
  #about-left h5 {
    width: 100%;
    font-size: 18px;
    margin-top: 50px;
  }
  .about-right-list h2 {
    font-size: 18px;
  }
  #instructions {
    flex-direction: column;
  }
  #instructions-right {
    width: 100%;
  }
  #instructions-right > p {
    font-size: 25px;
    padding-left: 125px;
  }
  #instructions-content h1 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  #info {
    margin-top: -2px;
  }
  #info-up {
    margin-top: 0;
  }
  #info-up p {
    margin-bottom: 30px;
  }
  #preview {
    flex-direction: column;
    height: 100px;
  }
  #preview img {
    max-width: 90%;
  }
  #info-down {
    margin-top: -24px;
  }
  #play-button {
    gap: 1vw;
    margin-top: 10px;
  }
  #play-with a {
    width: 80vw;
  }
  #play-with #icon i {
    font-size: 24px;
  }
  #button-text p {
    font-size: 24px;
  }
  #button-text span {
    font-size: 4.8vw;
  }
  #about-left p {
    font-size: 18px;
  }
  #about-left h5 {
    margin-top: 64px;
  }
  .about-right-list h2 {
    font-size: 16px;
  }
  #rules {
    height: 46vh;
  }
  #rules-container {
    width: 95%;
  }
  #instructions button {
    font-size: 14px;
    z-index: 9;
  }
  #instructions-right > p {
    font-size: 16px;
  }
  #instructions-content {
    margin-top: 0;
  }
  .instructions-elem h3 {
    font-size: 3.6vw;
  }
}
