* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background-color: #a6f6ff;
}

/* HEADER START */
.navigation {
  display: flex;
  position: fixed;
  right: 0;
  left: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  z-index: 999;
  box-shadow: 0px 8px 44px 4px rgba(255, 0, 245, 0.5) inset;
}

.navigation h1 {
  color: blueviolet;
  text-shadow: #6499e9 5px 5px 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 2.5em;
}

.navigation nav ul {
  display: flex;
  flex-direction: row;
  font-family: "Poppins", sans-serif;
  gap: 5vw;
}

.navigation nav ul li {
  list-style-type: none;
}

.navigation nav ul li a {
  display: flex;
  justify-content: center;
  color: #0066ff;
  font-size: 1.5em;
  transition: all 0.5s;
  text-decoration: none;
}

.underline {
  position: absolute;
  bottom: 0;
  background-color: lightblue;
  width: 0px;
  height: 5px;
  border-radius: 5px;
  transition: all 0.5s;
}
.navigation nav ul li a:hover {
  color: darkblue;
}
.navigation nav ul li a:hover .underline {
  background-color: #6499e9;
  width: 70px;
}
/* HEADER END */

/* MAIN START */
main {
  display: flex;
  flex-direction: column;
  height: max-content;
  justify-content: center;
  align-items: center;
}

/* LANDING PAGE START */
.header-main {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-family: "Montserrat", sans-serif;
  width: 100vw;
  height: 100vh;
  background-image: url(assets/textureOverlay1.jpg);
}

.header-main .texture {
  position: absolute;
  width: 100vw;
  height: 100vh;
  z-index: -999;
  filter: opacity(0.4);
}

.headerText-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.headerText-main h1 {
  font-size: 2.5em;
  text-transform: uppercase;
  color: #000;
  text-shadow: #6499e9 3px 3px 5px;
  margin-left: 20px;
}

.header-main .headerText-main h1 span {
  color: blueviolet;
  text-shadow: lightblue 3px 3px 1px;
}

.header-main .headerText-main h3 {
  text-align: center;
}

.header-main .headerText-main a button {
  cursor: pointer;
  font-size: 1.2em;
  font-family: "Poppins", sans-serif;
  margin-top: 20px;
  padding: 15px;
  background-color: #a6f6ff;
  transition: all 0.3s ease-in-out;
}

.header-main .headerText-main a button:hover {
  color: #000;
  background-color: #6499e9;
}

.chessVector1 {
  position: relative;
  z-index: 2;
}

.shape1 {
  position: absolute;
  right: -15%;
  bottom: -15%;
  z-index: 1;
  transform: rotate(45deg);
}
/* LANDING PAGE END */

/* CONTENT 1 START */
.content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 80vw;
  min-height: 100vh;
}

.content .opening {
  display: flex;
  flex-direction: row;
  opacity: 1;
  padding: 15px;
  gap: 2vw;
  border-radius: 10px;
}

.opening1,
.opening2,
.opening3 {
  background-color: #9eddff;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Montserrat", sans-serif;
  border: 1px solid transparent;
  transition: all 0.5s ease-in-out;
}

.opening1:hover,
.opening2:hover,
.opening3:hover {
  background-color: cyan;
  box-shadow: 0px 0px 100px 2px rgba(0, 0, 255, 0.498);
  border: 1px solid black;
  transform: scale(1.05);
}

.opening1 img,
.opening2 img,
.opening3 img {
  aspect-ratio: 1/1;
  width: 250px;
}

.opening1 h1,
.opening2 h1,
.opening3 h1 {
  margin-top: 10px;
}

.opening1 button,
.opening2 button,
.opening3 button {
  font-family: "Poppins", sans-serif;
  margin-top: 10px;
  padding: 5px 10px;
  background-color: transparent;
  transition: all 0.3s ease-in-out;
}

.opening1 button:hover,
.opening2 button:hover,
.opening3 button:hover {
  color: #fff;
  background-color: #6499e9;
  box-shadow: 5px 3px 0px 1px rgba(0, 0, 0, 0.54);
}
/* CONTENT 1 END */

/* ASIDE */
aside {
  width: max-content;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  box-shadow: #0011ff54 0px 0px 10px;
  font-family: "Poppins", sans-serif;
  order: 9;
}

aside h1 {
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 10px;
}

aside .sekat-kiri {
  position: absolute;
  background-color: #0088ff;
  border-radius: 10px;
  top: 0;
  bottom: 0;
  left: -25px;
  right: 108%;
}

aside img {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  border: 1px darkblue solid;
  margin-bottom: 5px;
}

aside p {
  text-align: center;
}

aside a {
  text-decoration: none;
  transition: all 0.3s;
}

aside a:hover {
  color: #0088ff;
}
/* ASIDE END */

/* CONTENT 2 START */
.chessForKids,
.middle-game,
.end-game {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.chessForKids img,
.middle-game img,
.end-game img {
  width: 400px;
}

.header-chessForKids,
.header-middle-game,
.header-end-game {
  width: 50vw;
  font-family: "Poppins", sans-serif;
}

.header-chessForKids p,
.header-middle-game p,
.header-end-game p {
  text-align: justify;
}
/* CONTENT 2 END */

/* FOOTER START */
footer {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  background-color: #ffbfa6;
  width: 100vw;
  height: max-content;
  padding: 20px;
  font-family: "Open Sans", sans-serif;
}

footer div {
  display: flex;
  flex-direction: column;
}

footer div a {
  text-decoration: none;
}
/* FOOTER END */

/* HAMBURGER MENU START */
.menu {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 40px;
}

.menu input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  cursor: pointer;
}

.menu span {
  display: block;
  width: 100%;
  height: 8px;
  background-color: white;
  border-radius: 10px;
  transition: 0.8s;
}

.menu input:checked ~ span:nth-child(2) {
  transform: rotate(45deg) scaleX(1.25);
  transform-origin: 0 0;
  border-radius: 0;
}
.menu input:checked ~ span:nth-child(3) {
  transform: scale(0);
  opacity: 0;
}
.menu input:checked ~ span:nth-child(4) {
  transform: rotate(-45deg) scaleX(1.25);
  transform-origin: 0 100%;
  border-radius: 0;
}
/* HAMBURGER MENU END */

/* RESPONSIVE */
/* Mobile */
@media screen and (max-width: 480px) {
  .navigation nav {
    position: fixed;
  }

  .navigation nav ul {
    flex-direction: column;
    width: 100vw;
    height: max-content;
    padding-top: 100px;
    justify-content: center;
    align-items: center;
    background: linear-gradient(
      180deg,
      rgba(0, 52, 255, 1) 0%,
      rgba(0, 164, 255, 1) 100%
    );
    transform: translateY(-60%);
    gap: 0;
    transition: all 0.5s ease-in-out;
    opacity: 0;
  }

  .navigation nav ul.slide {
    transform: translateY(40%);
    opacity: 1;
  }

  .navigation nav ul li {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100px;
    background-color: transparent;
    transition: all 0.5s;
  }

  .navigation nav ul li:hover {
    background-color: lightblue;
  }

  .navigation nav ul li a {
    color: white;
  }

  .navigation nav ul li:hover a {
    color: #000;
  }

  .underline {
    display: none;
  }

  .header-main {
    flex-direction: column;
  }

  .headerText-main h1 {
    margin-left: 15px;
  }

  .shape1 {
    width: 350px;
    left: 0%;
    top: 50%;
    transform: rotate(90deg);
  }

  .chessVector1 {
    width: 400px;
  }

  .content {
    padding-top: 10vh;
  }

  aside {
    margin-top: 25px;
    margin-left: 0;
  }

  footer {
    flex-direction: column;
  }

  footer div {
    padding: 20px;
  }

  .menu {
    display: flex;
    position: relative;
    z-index: 9999;
  }
}

/* Tablets */
@media screen and (max-width: 768px) {
  .header-main {
    flex-direction: column;
  }

  .headerText-main h1 {
    font-size: 1.5em;
  }

  .shape1 {
    transform: rotate(90deg);
    bottom: 10%;
    right: 15%;
  }
}

@media screen and (max-width: 834px) {
  .header-main {
    flex-direction: column;
  }

  .content {
    padding-top: 5vh;
  }

  .content,
  .content .opening {
    flex-direction: column;
    order: 3;
  }

  .opening1 img,
  .opening2 img,
  .opening3 img {
    width: 300px;
  }

  aside {
    margin-top: 25px;
    margin-left: 0;
    margin-bottom: 30px;
  }

  .chessVector1 {
    max-width: 350px;
  }

  .chessForKids,
  .middle-game,
  .end-game {
    margin-top: 50px;
    flex-direction: column;
  }

  .end-game {
    margin-bottom: 50px;
  }

  .header-chessForKids,
  .header-middle-game,
  .header-end-game {
    order: 2;
    width: 85vw;
    margin-left: 0px;
  }

  .chessForKids img,
  .middle-game img,
  .end-game img {
    width: 300px;
  }
}
