* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
@font-face {
    font-family: kanit;
    src: url(assets/fonts/Kanit-Regular.ttf);
}

/* FADE UP ANIMATION PARA SA WHOLE WEBSITE START */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FADE UP ANIMATION PARA SA WHOLE WEBSITE END */
html {
    scroll-behavior: smooth;
}
body {
    overflow-x: hidden;
    font-family: kanit;
}
.row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}
.col {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
:root {
    --bg-color: white;
    --outline-color: rgb(180, 180, 180);
    --text-color: white;
    --color1: rgb(177, 142, 45);
    --color2: rgb(136, 104, 0);
}


button {
    padding: 8px 12px;
    background-color: var(--color1);
    border-radius: 10px;
    border: none;
    transition: all 0.3s ease;
    color: var(--text-color);
    position: relative;
    z-index: 3;
}
button:hover { 
    background-color: var(--color2);
    transition: all 0.3s ease;
    scale: 1.1;
}
a {
    text-decoration: none;
    z-index: 1;
}
p {
    text-align: justify;
}
header p, .textbox p {
    text-align: center;
}
.nav-contents {
    width: 100%;
    background-color: var(--bg-color);
}
.nav-upper {
    height: 120px;
    width: 100%;
    background-color: var(--bg-color);
}
.home-btn {
    position: absolute;
    top: 42px;
    left: 50px;
    margin-right: auto;
    transition: all 0.3s ease;
}
.home-btn:hover {
    scale: 1.1;
    transition: all 0.3s ease;
}
.nav-upper h1 {
    font-size: 2.5rem;
}
.nav-lower {
    height: 70px;
    width: 100%;
    background-color: var(--bg-color);
    border: 1px solid var(--outline-color);
    border-left-width: 0;
    border-right-width: 0;
    justify-content: space-around;
    gap: 1.5rem;
    overflow-x: scroll;
    padding: 0 1rem 0 1rem;
    scrollbar-width: none;
    scrollbar-color: var(--outline-color) var(--bg-color);
}
.nav-lower a {
    color: var(--color1);
    font-size: 1.4rem;
}
.nav-lower a:hover {
    color: var(--color2);
}
header {
    gap: 1rem;
}
.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;

    height: 440px;
    width: 100vw;
    overflow: hidden;
}
.banner > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
header .textbox {
    padding: 3rem;
    gap: 10px;
    text-align: center;
}
header .textbox h1 {
    font-size: 3rem;
}
header .textbox p {
    font-size: 1.4rem;
}
#era-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    padding: 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.era-card {
    background-color: var(--bg-color);
    border-radius: 16px;
    border: 1px solid var(--outline-color);
    min-height: 365px;
    min-width: 300px;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.era-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
.era-card .textbox {
    height: 40%;
    width: 100%;
    padding: 1.4rem;
    gap: 1rem;
    align-items: start;
    justify-content: space-between;
    height: fit-content;
}
.era-card h3 {
    font-size: 1.5rem;
    color: var(--color1);
}
.era-card .description {
    font-size: 0.95rem;
    color: #555;
}
.era-card .picture-window {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;

    height: fit-content;
    width: 100%;
    overflow: hidden;
}
.picture-window > img {
    object-fit: cover;
    object-position: center;
    aspect-ratio: 4/3;
    width: 100%;
}

/* DARK MODE START */

[data-theme="dark"] {
    --bg-color: #000000;
    --outline-color: rgb(80, 80, 80);
    --text-color: rgb(56, 56, 56);
    --color1: rgb(210, 170, 60);
    --color2: rgb(177, 142, 45);
}

[data-theme="dark"] body {
    color: #f0f0f0;
}

[data-theme="dark"] .era-card,
[data-theme="dark"] .art-form-card,
[data-theme="dark"] .featured-card {
    background-color: #2a2a2a;
}

[data-theme="dark"] .era-card .description,
[data-theme="dark"] .art-form-card p,
[data-theme="dark"] .featured-card p {
    color: #aaa;
}

/* toggle button */
.theme-toggle {
    position: absolute;
    right: 50px;
    background: transparent;
    border: 2px solid var(--color1);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 50px;
    color: var(--color1);
}
.theme-toggle:hover {
    background-color: var(--color1);
    color: white;
    scale: 1.1;
}

[data-theme="dark"] .art-form-list h2 {
    color: #f0f0f0;
}

[data-theme="dark"] .featured-card > div p {
    color: #aaa;
}

[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: #f0f0f0;
}
[data-theme="dark"] footer a:hover {
    color: white;
    transition: color 0.3s ease-in-out;
}
/* DARK MODE END */

/* styling for era-pages start */

header .textbox-banner {
    background-color: var(--color1);
    width: 100%;
    padding: 5rem 2rem;
    gap: 10px;
    text-align: center;
}
header .textbox-banner * {
    color: var(--text-color);
}
header .textbox-banner h1 {
    font-size: 2.8rem;
}
header .textbox-banner p {
    font-size: 1.3rem;
}

.featured-art-form, .featured {
  max-width: 1000px;
  margin: 0 auto 50px;
  text-align: center;
  padding: 0 2rem 2rem;
  font-size: 1.5rem;
}
.featured-art-form h2, .featured h2 {
    margin: 0 2.5rem 2.5rem;
}
.featured-card {
  display: flex;
  background: var(--bg-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 1000px;
  margin: 0 auto;
  z-index: 5;
  position: relative;
}
.featured-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}
.featured-card img, .featured-card video {
  width: 45%;
  height: auto;
  object-fit: cover;
}
.featured-card > div {
  padding: 30px;
  flex: 1;
  text-align: left;
}
.featured-card h3 {
  margin: 0 0 15px;
  color: var(--color1);
  font-size: 1.8rem;
}
.featured-card p {
  margin: 0;
  font-size: 1.1rem;
  color: #444;
}



.art-form-list {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 7rem;
}
.art-form-list h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  color: #333;
}

.art-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  padding: 0 2rem;
}
.art-form-card {
  background: var(--bg-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: translateY(0);
  text-align: left;
  border: 1px solid var(--outline-color);
  height: fit-content;
  position: relative;
  padding-bottom: 1rem;
}
.art-form-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
.art-form-card img, .art-form-card video {
  width: 100%;
  aspect-ratio: 7/4;
  object-fit: cover;
}
.art-form-card h3 {
  margin: 1rem;
  font-size: 2rem;
  color: var(--color1);
    text-align: center;
}
.art-form-card p {
  padding: 0 20px 25px;
  margin: 0;
  color: #555;
  font-size: 1rem;
}
.art-form-card button {
    margin-bottom: 2rem;
    margin-left: 2rem;
}
.card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* styling for era-pages end */


#bonus-content {
    padding: 6rem 2rem 7rem 2rem;
    min-height: 100vh;
}
#bonus-content h1 {
    font-size: 2.5rem;
}
#bonus-content p {
    font-size: 1.2rem;
}
.bonus-div {
    gap: 3rem;
}

#bonus-content h3 {
    font-size: 2rem;
    color: var(--color1);
}
#bonus-content span {
    margin-left: 1rem;
    font-size: 1.3rem;
    color: var(--color2);
}
.bonus-details {
    align-self: left;
    padding-top: 3rem;
}

.audio-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}
.art-form-card .audio-container {
    top: 2rem;
    left: 2rem;
}
iframe {
    width: 70vw;
    border-radius: 10px;
    aspect-ratio: 16/9;
}

/* footer start */

footer {
    background-color: var(--color1);
    text-align: left;
    padding: 3rem 1rem;
    color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 2rem;
}
footer > div {
    gap: 10px;
}
footer img:hover {
    scale: 1.1;
    transition: all 0.3s ease;
}
footer a {
    color: var(--bg-color);
    transition: all 0.3s ease;
}
footer a:hover {
    color: black;
    transition: all 0.3s ease;
}
footer > * {
    min-width: 200px;
}
footer ul {
    list-style: none;
}
footer span {
    margin-top: 1rem;
}
/* footer end */



/* medias start (for responsiveness) */
@media screen and (max-width: 850px) {
    .nav-upper h1 {
        font-size: 1.4rem;
    }
    .nav-lower a {
        font-size: 1rem;
    }
}
@media (max-width: 768px) {
    .featured-card {
        flex-direction: column;
    }
    .featured-card {
        width: 100%;
    }
    .featured-card > img, .featured-card > video {
        width: 100%;
        aspect-ratio: 5/3;
    }
    .audio-container {
        position: absolute;
        top: 0;
        left: 0;
    }
    .art-form-card .audio-container {
        top: 2rem;
        left: 2rem;
    }

}
@media screen and (max-width: 750px) {
    .home-btn {
        left: 25px;
    }
    .theme-toggle {
        right: 25px;
    }
    .nav-upper h1 {
        font-size: 1.3rem;
    }
    .nav-lower a {
        font-size: 1rem;
    }

}
@media screen and (max-width: 550px) {
    .home-btn {
        top: 48px;
    }
    .theme-toggle {
        font-size: 1rem;
    }
    .home-btn img {
        width: 25px;
    }
    .nav-upper h1 {
        font-size: 1rem;
    }
    .nav-lower a {
        font-size: .7rem;
    }
}
@media screen and (max-width: 480px) {
    .art-form-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    #era-board {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* medias end */