/* =========
   CSS & BASE STYLES
   ========= */

* {
  box-sizing: border-box;
}

body {
  font-family: "Nunito Sans", Calibri, sans-serif;
  display: grid;
  grid-template-areas: "header" "main" "footer";
  background-color: #fff;
  color: #051208;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: left;
  font-size: 16px;
  margin: 0;
  overflow-x: hidden;
}

a {
  color: #075baa;
  text-decoration: none;
}

a:hover { 
  color: #609e19; 
}

a:active { 
  color: black; 
}

/* =========
   TYPOGRAPHY
   ========= */

h1 {
  font-size: 4em;
  color: rgb(58, 78, 2);
  margin-bottom: 0;
}

h2 {
  font-size: 1.8em;
  padding: 5px;
  color: #00554a;
  text-align: left;
}

h3, h4 {
  font-family: "Nunito Sans", Calibri, sans-serif;
  text-align: left;
}

h3 {
  text-align: center;
  font-size: 0.7em;
  color: #1b2310;
}

h3 a:link {
  color: #207f97;
  text-decoration: none;
}

.main-text {
  font-size: 20px;
}

/* =========
   LAYOUT, GRID, and GRID COMPONENTS
   ========= */

header, main, footer {
  background-color: white;
  text-align: left;
}

header {
  font-size: 18px;
}

footer {
  text-align: center;
  font-size: 14px;
  color: black;
}

main {
  display: grid;
  grid-template-rows: 1fr;
  overflow-x: hidden;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(325px, 1fr));
  gap: 0.5em;
}

.column {
  position: relative;
  border-radius: 0.25em;
  overflow: hidden;
}

.main-section-holder {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(435px, 1fr));
  gap: 1em;
  padding: 0 10px;
}

.gallery-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.icon-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  background: white;
}

/* =========
   NAVIGATION and TOP LOGO
   ========= */

.navigation {
  display: flex;
  position: sticky;
  top: 0;
  padding: 5px;
  justify-content: center;
  background: #fff;
}

.navigation img {
  width: 200px;
  margin-bottom: 0;
}

.navbar {
  display: flex;
  position: sticky;
  justify-content: center;
  z-index: 100;
  overflow-x: hidden;
  background-color: #002b27;
}

.navbar a {
  border-bottom: none;
  color: #fcfff6;
}

.navbar a:hover {
  border-bottom: none;
  color: #a9ecdc;
}

.navbar i {
  margin: 0;
  padding: 10px;
}

.navbar .top-arrow {
  right: 0;
  position: absolute;
}

.navbar .home-button {
  left: 0;
  position: absolute;
}

/* =========
   COMPONENTS
   ========= */

.mainpage-box {
  position: relative;
  margin: 0 auto;
  width: 93%;
  z-index: 1;
  background-color: #fff;
  color: #32403b;
  font-size: 18px;
  padding: 25px;
  text-align: left;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  animation: fadeInAnimation 2s ease forwards;
}

.introduction-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.intro1 {
  padding: 20px;
}

.intro2 {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.intro2 img {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 8px;
}

.intro2-text {
  text-align: center;
}

.disclaimer {
  transition: box-shadow 0.3s;
  background-color: white;
  padding: 15px;
  margin: auto;
  border-radius: 10px;
  border: 1px solid #ccc;
  color: black;
  width: 70%;
  text-align: left;
  font-size: 16px;
}

.disclaimer:hover {
  box-shadow: 0 0 11px rgba(33, 33, 33, 0.2);
}

.big-container {
  height: 80vh;
  max-height: 800px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 2px solid #333;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* =========
   CITRINESEA CONTAINERS, ROWS and ITEMS
   ========= */

.citrinesea-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  background: url('../images/background/green_tree.jpg') no-repeat center center;
  background-size: cover;
  overflow: visible;
  flex-wrap: wrap;
}

.citrinesea-item-a {
  position: relative;
  transition: transform 0.3s ease-in-out;
  z-index: 1;
  max-width: 400px;
  flex: 1 1 30%;
  box-sizing: border-box;
  width: 100%;
}

.citrinesea-item-a img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, z-index 0.4s ease;
}

.citrinesea-row a:nth-child(1) .citrinesea-item-a img { transform: rotate(-10deg) translateX(50px); }
.citrinesea-row a:nth-child(2) .citrinesea-item-a img { transform: rotate(2deg) translateX(0); }
.citrinesea-row a:nth-child(3) .citrinesea-item-a img { transform: rotate(10deg) translateX(-40px); }

.citrinesea-item-a img:hover {
  transform: scale(1.05) !important;
  z-index: 3;
}

.citrinesea-container {
  margin: 0;
  display: flex;
  justify-content: center;
}

.citrinesea-row2 {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  margin: 0;
}

.citrinesea-row2 a:link {
  color: #fff;
  text-decoration: none;
}

.citrinesea-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.second-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* =========
   TANABATA COMPONENTS (Originally I was going to make these like tanabata strips, but I ended up changing the format. Kept the name here because it works as something distinct!)
   ========= */

.tanabata-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 15px;
}

.tanabata-strip, .tanabata-strip-outside {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: rgba(0,0,0,0.16) 0px 3px 6px, rgba(0,0,0,0.23) 0px 3px 6px;
  text-shadow: 2px 2px 2px #000;
  padding: 5px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tanabata-strip {
  width: 300px;
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  border: 10px solid #55832b;
  border-top: 0;
  border-bottom: 0;
}

.tanabata-strip-outside {
  width: 100%;
  height: 300px;
  text-align: right;
  border: 3px solid #18bdd3;
}

.tanabata-strip::after, .tanabata-strip-outside::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  z-index: 0;
}

.tanabata-strip:hover::after, .tanabata-strip-outside:hover::after {
  background: rgba(0, 0, 0, 0.6);
}

.tanabata-strip > *, .tanabata-strip-outside > * {
  position: relative;
  z-index: 1;
}

.tanabata-strip:hover, .tanabata-strip-outside:hover {
  transform: translateY(-3px);
}

.tanabata-strip .details, .tanabata-strip-outside .details {
  opacity: 0;
  max-height: 0;
  font-size: 0.85rem;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  margin-top: 1rem;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.tanabata-strip:hover .details, .tanabata-strip-outside:hover .details {
  opacity: 1;
  max-height: 100px;
}

/* TANABATA BACKGROUNDS */
.strip-reading { background-image: url('../images/test.jpg'); }
.strip-ibuki { background-image: url('../images/test2.jpg'); }
.strip-mv { background-image: url('../images/test3.jpg'); }
.strip-shinsei { background-image: url('../images/test4.jpg'); }
.strip-colors { background-image: url('../images/test5.jpg'); }
.strip-tlstars { background-image: url('../images/tlstars.jpg'); }
.strip-mikamasterlist { background-image: url('../images/mikamasterlist.jpg'); }
.strip-310mcstory { background-image: url('../images/310mcstory.jpg'); }
.strip-310mctimeline { background-image: url('../images/310mctimeline.jpg'); }
.strip-shinseiparts { background: #00071f; }

/* =========
   ANIMATIONS
   ========= */

@keyframes fadeInAnimation {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeInUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInRight {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes floatyMotion {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

.fade-in, .fade-in-up, .fade-in-right {
  animation: fadeIn 1.1s;
  -webkit-animation: fadeIn 1.1s;
  -moz-animation: fadeIn 1.1s;
  -o-animation: fadeIn 1.1s;
  -ms-animation: fadeIn 1.1s;
}

.icon {
  width: 300px;
  height: 300px;
  object-fit: contain;
  transition: transform 0.3s ease-in-out;
}

.icon:hover {
  transform: scale(1.1) rotate(-5deg);
  animation: floatyMotion 1s ease-in-out infinite;
}

/* =========
  FOR MOBILE
   ========= */

@media only screen and (max-width: 768px) {
  h1 { font-size: 2rem; }
  h3 { font-size: 15px; }
  
  .row {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }
  
  .main-section-holder {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .gallery-wrapper {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  
  .gallery-infographics img {
    width: 100%;
    height: auto;
  }
  
  .navigation img {
    margin-bottom: 0;
    width: auto;
    height: 90px;
  }
  
  .mainpage-box {
    max-width: 90%;
  }
  
  .newholder, .citrinesea-row, .citrinesea-row2 {
    grid-template-columns: 1fr;
  }
  
  .introduction-box {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .citrinesea-row {
    flex-direction: column;
    justify-content: center;
  }
  
  .citrinesea-item-a {
    transform: none !important;
    margin-bottom: 1rem;
  }
  
  .citrinesea-row a:nth-child(1) .citrinesea-item-a img { transform: rotate(-5deg); }
  .citrinesea-row a:nth-child(2) .citrinesea-item-a img { transform: rotate(0deg); }
  .citrinesea-row a:nth-child(3) .citrinesea-item-a img { transform: rotate(5deg); }
  
  .citrinesea-item-a:hover {
    transform: translateY(-10px) scale(1.03) !important;
  }
}

@media (max-width: 740px) {
  .tanabata-strip {
    height: 250px;
    width: 300px;
    padding: 15px;
  }
  
  .tanabata-strip .details, .tanabata-strip-outside .details {
    opacity: 1;
    text-shadow: 2px 2px 5px #000;
  }
}

@media (max-width: 600px) {
  .where-do-i-start-box { 
    width: 90%; 
  }
  
  .citrinesea-item-a {
    height: auto;
    padding: 15px;
  }
  
  .citrinesea-item-a img {
    object-fit: cover;
  }
  
  .cname {
    font-size: 14px;
  }
  
  .icon-container {
    flex-direction: column;
    height: auto;
  }
  
  .icon img {
    justify-content: center;
    max-width: 100%;
  }
  
  .summer-banner img {
    width: 100%;
    height: auto;
  }
}

/* =========
   USE CLASSES
   ========= */

.hide {
  display: none;
}

.box {
  text-align: center;
}

.bg {
  background-color: white;
  text-align: left;
  width: 97%;
  display: inline-block;
  box-shadow: 0 0 11px rgba(33, 33, 33, 0.5);
}

.navchara-name {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: absolute;
  background-color: #002b27;
  color: white;
  text-align: left;
  font-size: 13px;
  padding: 0 25px;
  max-width: 100%;
  bottom: 15px;
}

.logo img {
  width: 300px;
}

.mainwrapper {
  position: relative;
  justify-content: center;
  align-items: center;
  z-index: 0;
}

.button-align {
  text-align: center;
}

hr {
  height: 2px;
  width: 20%;
  border: 0;
  background-color: #bfa9a8;
}

img {
  width: auto;
  height: auto;
}