* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f8f0ff;
    color: #28204f;
    line-height: 1.7;
}

header {
    background-color: #191536;
    color: #ffe18a;
    padding: 18px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 23px;
    font-weight: bold;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 8px;
    font-weight: bold;
}

nav a:hover {
    color: #ffe18a;
}

.hero {
    min-height: 430px;
    padding: 65px 8%;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, #171437, #33235e);
    color: white;
}

.hero-content {
    max-width: 620px;
}

.welcome {
    color: #ffe18a;
    letter-spacing: 3px;
    font-weight: bold;
}

h1 {
    font-size: 48px;
    line-height: 1.2;
    color: #ffe18a;
}

h2 {
    color: #543b8b;
}

.hero h2 {
    color: #e6d5ff;
}

.button {
    display: inline-block;
    background-color: #ffda79;
    color: #241947;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
}

.button:hover {
    background-color: white;
}

.about,
.story {
    background-color: #fff9e9;
    padding: 40px 10%;
    text-align: center;
}

.characters {
    padding: 40px 7%;
    text-align: center;
    background-color: #e9ddff;
}

.character-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.character {
    background-color: white;
    border-radius: 18px;
    padding: 20px;
    width: 210px;
    box-shadow: 0 5px 15px #c6b7e5;
}

.emoji {
    font-size: 55px;
}

.character h3 {
    color: #7547a8;
}

.gallery {
    background-color: #191536;
    color: white;
    padding: 40px 7%;
    text-align: center;
}

.gallery h2 {
    color: #ffe18a;
}

.gallery-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.gallery img {
    width: 45%;
    max-width: 400px;
    height: 220px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #ffe18a;
}

footer {
    background-color: #100d26;
    color: white;
    text-align: center;
    padding: 25px 10px;
}

footer a {
    color: #ffe18a;
}

@media (max-width: 600px) {
    header {
        justify-content: center;
        text-align: center;
    }

    nav a {
        display: inline-block;
        margin: 5px;
    }

    h1 {
        font-size: 36px;
    }

    .gallery img {
        width: 100%;
    }
}