* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Kanit', sans-serif;
}

a {
    text-decoration: none;
}

p {
    font-size:16px;
    line-height:1.5;
}

@media (max-width: 480px) {
    .font-size {
        font-size:14px;
    }
}

@media (max-width: 370px) {
    .font-size {
        font-size:13px;
    }
}

header {
    position: absolute;
    top: 30px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

@media (max-width: 768px) {
    header {
        flex-direction:column;
    }
}

.header-dog {
    position: absolute;
    display: none;
    top: 0;
    z-index: 0;
    opacity: 1;
}

@media (max-width: 650px) {
    .header-dog {
        /* display: none; */
        opacity: 0;
    }
}

body.overview-active .header-dog {
    display: block;
}

.header-dog-left {
    left: -20px;
    top: 120px;
    width: clamp(150px, 21vw, 380px);
}

.header-dog-right {
    right:10px;
    top: 400px;
    width: clamp(200px, 21vw, 600px);
}

.logo {
    font-family: 'Jomhuria', serif;
    font-size: 3.5rem;
    color: #C600D1;
    line-height: 0.8;
    cursor: pointer;
}

.logo small {
    font-size: 1.6rem;
    color: #FF4C2C;
    display: block;
    margin-top: -8px;
}


/* Overview */
body.overview-active .logo-main {
    color: #C600D1;
}

body.overview-active .logo-sub {
    color: #007B50;
}

/* Collections */
body.artlist-active .logo-main {
    color: #FFFFFF;
}

body.artlist-active .logo-sub {
    color: #FFE000;
}

/* History */
body.history-active .logo-main {
    color: #FFE000;
}

body.history-active .logo-sub {
    color: #FFFFFF;
}

/* Visit */
body.influence-active .logo-main {
    color: #FF4C2C;
}

body.influence-active .logo-sub {
    color: #C600D1;
}

/* Nav */
.top-nav {
    /* text-align: center; */
    justify-content: center;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    padding-top: 10px;
    gap:20px;
}

.top-nav a {
    margin: 0 15px;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
    color: inherit;
}

@media (max-width: 768px) {
    .top-nav a {
        font-size: 16px;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .top-nav {
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 370px) {
    .top-nav {
        font-size:13px;
    }
}

body.overview-active .top-nav a {
    color: #007B50;
}

body.history-active .top-nav a {
    color: #ffffff
}

body.influence-active .top-nav a {
    color: #FF4C2C;
}

/* Screens */
.screen {
    display: none;
    width: 100%;
    min-height: 100vh;
    overflow-y: auto;
}

.screen.active {
    display: block;
}

/* Hero */
.hero {
    position: relative;
    background-color: #FFD200;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    text-align: center;
    padding-top:200px;
    padding-bottom: 70px;
    box-sizing: border-box;
}

.hero-title {
    font-family: 'Jomhuria', serif;
    font-size: 200px;
    color: #C600D1;
    text-shadow: 2px 2px 0 white;
    transform: rotate(-10deg);
    line-height: 0.8;
    margin-bottom: -20px;
}

.hero-subtitle {
    font-family: 'Jomhuria', serif;
    font-size: 100px;
    color: #FF4C2C;
    text-shadow: 2px 2px 0 white;
    transform: rotate(10deg);
    margin-top: -0px;
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 170px;
    }

    .hero-subtitle {
        font-size: 80px;
        margin-bottom:30px;
    }
}

.mission {
    font-size: 16px;
    color: #444444;
    max-width: 400px;
    line-height:1.2;
    margin: 10px;
}

@media (max-width: 480px) {
    .mission {
        max-width: 300px;
    }
}

/* Section */
.section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
}

.history {
    background: #1c684d;
    color: #fae385;
}

.collections {
    background: #d938e2;
    color: #fae385;
}

.visit {
    background: #FFFFFF;
    color: #007B50;
}

.image-left {
    position: absolute;
    top: 100px;
    width: 300px;
    z-index: 1;
    left: 0px;
}

.image-right {
    position: absolute;
    top: 100px;
    width: 400px;
    z-index: 1;
    right: -90px;
}

.content {
    max-width: 500px;
    margin: 0 auto;
}


/* arrow */
.scroll-down {
    position: absolute;
    bottom: 65px;
    transform: translateX(-50%);
    font-size: 80px;
    color: #C600D1;
    cursor: pointer;
    animation: bounce 1.5s infinite;
    transition: transform 0.3s ease, color 0.3s ease;
}

.scroll-down:hover {
    color: #FF4C2C;
    transform: translate(-50%, 5px);
}

@keyframes bounce {

    0%,20%,50%,80%,100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(10px);
    }

    60% {
        transform: translateY(5px);
    }
}

html {
    scroll-behavior: smooth;
}

/* Artwork */
.artworks {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;
}

.artworks img,
.entry img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 3px solid white;
    display: block;
}

@media (max-width: 700px) {

    .artworks img,
    .entry img {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 500px) {

    .artworks img,
    .entry img {
        width: 100px;
        height: 100px;
    }
}

.artworks p {
    margin-top: 10px;
    font-weight: bold;
    color: inherit;
}

/* Button */
.button {
    margin-top: 30px;
    padding: 10px 20px;
    background: #FFE000;
    color: #C600D1;
    font-weight: bold;
    border-radius: 8px;
    font-size: 19px;
    cursor: pointer;
    transition: background 0.3s;
}

.button:hover {
    background: #fff;
}

/* Collections Page */
.collection-screen {
    position: relative;
    background: #d938e2;
    padding: 160px 20px 80px;
    text-align: center;
}

.collection-title {
    color: #ffffff;
    text-align: center;
    font-size: 72px;
    font-family: 'Jomhuria', serif;
    margin-bottom: 60px;
}

.collection-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.entry {
    display: flex;
    align-items: center;
    gap: 20px;
}

.entry.left {
    flex-direction: row;
}

.entry.right {
    flex-direction: row-reverse;
}

.entry img {
    border: 4px solid #007B50;
    width: clamp(120px, 20vw, 180px);
    height: auto;
}

.entry-info {
    text-align: left;
}

.tag {
    font-family: 'Jomhuria', serif;
    background-color: #ffffff;
    color: #1c684d;
    padding: 6px 12px;
    font-size: 35px;
    display: inline-block;
    margin-bottom: 8px;
    text-decoration: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.tag:hover {
    background-color: #FFE000;
    transform: translateY(-3px);
}

.entry-info p {
    font-family: 'Kanit', sans-serif;
    color: #ffffff;
    font-size: 16px;
}

/* History Page*/
#history {
    background-color: #1c684d;
    color: #fae385;
}

.history-screen {
    position: relative;
    padding: 160px 20px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.history-title {
    color: #fae385;
    font-family: 'Jomhuria', serif;
    text-align: center;
    font-size: 80px;
    margin-bottom: 60px;
}

.history-screen h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 25px;
    font-weight: bold;
    color: #fae385;
    margin-bottom: 10px;
    margin-top: 60px;
}

.history-screen h3:first-of-type {
    margin-top: 0;
}

.history-screen p {
    font-family: 'Kanit', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #fae385;
    margin-bottom: 0;
}

.history-screen h2,
.history-screen p {
    color: #fae385;
}

/* Influence Page */
#influence {
    background-color: #FFFFFF;
    color: #1c684d;
}

.influence-screen {
    position: relative;
    padding: 160px 20px 80px;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Kanit', sans-serif;
}

.influence-title {
    font-size: 4.5rem;
    font-family: 'Jomhuria', serif;
    text-align: center;
    color: #1c684d;
    margin-bottom: 60px;
}

.influence-screen h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 25px;
    font-weight: bold;
    color: #1c684d;
    margin-bottom: 10px;
    margin-top: 60px;
}

.influence-screen h3:first-of-type {
    margin-top: 0;
}

.influence-screen p {
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1c684d;
    margin-bottom: 0;
}

/* Confetti */
.confetti {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    animation: floaty 3s ease-in-out infinite;
}

.confetti.extrasmall {
    width: clamp(12px, 3vw, 20px);
}

.confetti.small {
    width: clamp(20px, 5vw, 35px);
}

.confetti.medium {
    width: clamp(40px, 8vw, 70px);
}

.confetti.large {
    width: clamp(60px, 12vw, 110px);
    ;
}

@keyframes floaty {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(4deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.hero,
.section {
    overflow: visible;
}

@media (max-width: 1200px) {
    .confetti {
        transform: scale(0.8);
    }
}

@media (max-width: 900px) {
    .confetti {
        transform: scale(0.6);
    }
}

@media (max-width: 700px) {
    .confetti {
        transform: scale(0.45);
    }
}

@media (max-width: 500px) {
    .confetti {
        display: none;
    }
}

@media (max-width: 600px) {
    .confetti {
        opacity: 0.7;
    }

    .entry {
        flex-direction: column;
        text-align: center;
    }

    .entry img {
        width: clamp(100px, 50vw, 150px);
    }
}