@import url("./common.css");
@import url("./fonts.css");

html {
  scroll-behavior: smooth;
}

main {
  h1 {
    font-family: "Shojumaru";
    text-align: center;
    font-size: 40px;
  }
  h2 {
    font-family: "Shojumaru";
    text-align: center;
    font-size: 30px;
  }
  p {
    font-family: "Special Elite";
  }

  .banner {
    position: relative;
    padding: 0;
    width: 100%;
    height: calc(100vh - 160px);
    background-image: url(../imgs/index/poster.png);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 2px solid black;
    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 0;
      pointer-events: none;
    }
    h1 {
      color: var(--color-yellow);
      position: absolute;
      top: 40px;
      text-shadow: -2px -2px 0 #ffffff, /* haut-gauche */ 2px -2px 0 #ffffff,
        /* haut-droite */ -2px 2px 0 #ffffff, /* bas-gauche */ 2px 2px 0 #ffffff,
        /* bas-droite */ -2px 0 0 #ffffff, /* gauche */ 2px 0 0 #ffffff,
        /* droite */ 0 -2px 0 #ffffff, /* haut */ 0 2px 0 #ffffff; /* bas */
    }
    video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .banner-text-mobile {
      display: none;
    }
    .banner-text {
      width: 100%;
      position: absolute;
      bottom: 120px;
      left: 50%;
      transform: translateX(-50%);
      color: var(--color-yellow);
      text-shadow: -2px -2px 0 #ffffff, /* haut-gauche */ 2px -2px 0 #ffffff,
        /* haut-droite */ -2px 2px 0 #ffffff, /* bas-gauche */ 2px 2px 0 #ffffff,
        /* bas-droite */ -2px 0 0 #ffffff, /* gauche */ 2px 0 0 #ffffff,
        /* droite */ 0 -2px 0 #ffffff, /* haut */ 0 2px 0 #ffffff; /* bas */
      h2 {
        font-size: 40px;
        width: 100%;
      }
    }
    .scroll-down-button-mobile {
      display: none;
    }
    .scroll-down-button {
      position: absolute;
      bottom: 30px;
      left: calc(50% - 25px);
      width: 50px;
      height: 50px;
      background-color: var(--color-yellow);
      color: var(--color-brown);
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
      transition: background-color 0.3s ease;
      z-index: 1;
      animation: float 2s ease-in-out infinite;
      a {
        svg {
          fill: var(--color-brown);
        }
      }
    }
  }

  .main-container {
    height: calc(100vh - 138px);
    padding: 20px 10%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    section {
      width: 48%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 8px;
      p {
        text-align: center;
      }
    }
    .header {
      width: 100%;
      p {
        text-align: center;
        width: 66%;
      }
      /* p:first-of-type {
        margin-top: 12px;
      } */
    }
  }
}

/* Responsive Tablets */
@media (max-width: 768px) {
  main {
    .banner {
      height: calc(100vh - 96px);
      h1 {
        font-size: 30px;
        padding: 20px;
      }
      .banner-text {
        h2 {
          font-size: 30px;
          padding: 20px;
        }
      }
    }

    h2 {
      font-size: 24px;
    }

    .main-container {
      padding: 20px 5%;
      gap: 32px;
      .header {
        width: 100%;
        p {
          font-size: 14px;
          width: 100%;
        }
      }
      p {
        font-size: 14px;
        width: 100%;
      }
      section {
        width: 44%;
      }
    }
  }
}

/* Responsive Smartphones */
@media (max-width: 380px) {
  main {
    .banner {
      .title {
        font-size: 24px;
      }
      .banner-text-desktop {
        display: none;
      }
      .banner-text-mobile {
        display: flex;
        h2 {
          font-size: 18px;
        }
      }
    }
    margin-top: 80px;
    .banner {
      height: calc(100vh - 80px);
    }
    h1 {
      font-size: 24px;
    }
    h2 {
      font-size: 18px;
    }
    p {
      font-size: 12px;
    }
    .main-container {
      gap: 20px;
      height: 100%;
      section {
        width: 100%;
        height: 50%;
      }
    }
  }
}

.page-wrapper {
  background-image: url("parchment-background.jpg");
  background-color: #f5e9c9;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* min-height: 100vh; */
  /* padding-bottom: 40px; */
}

.site-header,
.site-footer-bottom {
  /* margin-left: auto;
  margin-right: auto; */
  padding-left: 20px;
  padding-right: 20px;
}

.site-header {
  position: relative;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 50px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  /* margin-bottom: 140px; */
  width: 100%;
  height: 600px;
}

.site-header h1 {
  /* font-family: "Pirata One", "Impact", fantasy; */
  font-size: 3.5em;
  color: var(--color-yellow);
  margin-bottom: 0.5em;
  font-weight: bold;
  text-shadow: -2px -2px 0 #000000, /* haut-gauche */ 2px -2px 0 #000000,
    /* haut-droite */ -2px 2px 0 #000000, /* bas-gauche */ 2px 2px 0 #000000,
    /* bas-droite */ -2px 0 0 #000000, /* gauche */ 2px 0 0 #000000,
    /* droite */ 0 -2px 0 #000000, /* haut */ 0 2px 0 #000000; /* bas */
}

.site-header p {
  /* color: var(--color-yellow); */
  color: #000000;
  font-family: var(--font-shoju);
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 1em;
  /* max-width: 800px;
    margin-left: auto;
    margin-right: auto; */
  text-shadow: -1px -1px 0 #ffffff, /* haut-gauche */ 1px -1px 0 #ffffff,
    /* haut-droite */ -1px 1px 0 #ffffff, /* bas-gauche */ 1px 1px 0 #ffffff,
    /* bas-droite */ -1px 0 0 #ffffff, /* gauche */ 1px 0 0 #ffffff,
    /* droite */ 0 -1px 0 #ffffff, /* haut */ 0 1px 0 #ffffff; /* bas */
}

.site-header p:first-of-type {
  margin-top: 20px;
}

.site-header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 80px 10% 40px 10%;
}

.site-header-img-container {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 800px;
  img {
    width: 100%;
    height: 100%;
    height: 800px;
  }
}

.site-header-text {
  padding: 20px;
}

.main-content {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding-bottom: 40px;
}

.content-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 22%;
  height: 660px;
  background-color: rgb(133, 71, 9);
  /* background-color: rgb(97, 54, 12); */
  /* background-color: var(--color-brown); */
  padding: 25px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  color: var(--color-yellow);
  border: 3px solid var(--color-yellow);
}

.content-card h2 {
  /* font-family: "Pirata One", "Impact", fantasy; */
  font-family: var(--font-rye);
  font-size: 1.6em;
  color: var(--color-yellow);
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: bold;
}

.content-card p {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 1em;
}
.card-img-container {
  /* width: 100%;
  height: 100%; */
  max-width: 80%;
}
.card-image {
  display: block;
  max-width: 80%;
  height: auto;
  max-height: 40vh;
  margin: 0 auto 20px auto;
  border-radius: 10px;
}

.content-card h2 {
  margin-bottom: 12px;
  margin-top: 0px;
  /* background-color: RED; */
}

.card-action-button {
  padding: 16px 12px 8px 12px;
  background-color: var(--color-yellow);
  color: var(--color-brown);
  font-family: var(--font-special);
  border-radius: 3px;
  &:hover {
    color: #8b4100;
    background-color: #fffb01;
  }
  &:visited {
    color: var(--color-brown);
  }
}

.content-card p:first-of-type {
  margin-top: 12px;
}

.content-card p:last-of-type {
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  main {
    .page-wrapper {
      .main-content {
        .site-header {
          height: 680px;
        }
      }
    }
  }
  .site-header-container {
    flex-wrap: wrap;
    margin: 0px 10% 40px 10%;
    /* height: 40%; */
  }
  .site-header h1 {
    font-size: 2.8em;
  }

  .main-content {
    gap: 20px;
  }
  .content-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 45%;
    height: 600px;
  }
  .card-image {
    max-height: 30vh;
  }
}

@media (max-width: 380px) {
  html,
  body {
    max-width: 380px;
  }
  main {
    .banner {
      .scroll-down-button-desktop {
        display: none;
        a {
          display: none;
          svg {
            fill: var(--color-brown);
          }
        }
      }
      .scroll-down-button-mobile {
        position: absolute;
        bottom: 30px;
        left: calc(50% - 25px);
        width: 50px;
        height: 50px;
        background-color: var(--color-yellow);
        color: var(--color-brown);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        transition: background-color 0.3s ease;
        z-index: 1;
        animation: float 2s ease-in-out infinite;
        a {
          svg {
            fill: var(--color-brown);
          }
        }
      }
    }
  }

  main {
    .page-wrapper {
      .main-content {
        .site-header {
          height: 1060px;
        }
      }
    }
  }
  .site-header h1 {
    font-size: 2em;
  }

  .main-content {
    margin-top: 20px;
    flex-direction: column;
    gap: 20px;
  }

  .content-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    /* height: 800px; */
  }
  .card-image {
    max-height: 30vh;
  }
}
