* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Zilla Slab", sans-serif;
}

body, html {
    height: 100%;
    width: 100%;
    background-color: black;
    color: white;
}

h1 {
    margin-bottom: 10px;
}

#page1 {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1vh 0;
}

#heading {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 2;
}

#heading h1 {
    font-size: 6vw;
    color: #ff0000;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 5px #ff4d4d, 0 0 10px #ff0000, 0 0 20px #990000, 0 0 30px #660000;
    animation: floatText 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes floatText {
    0% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(-1deg); }
}

#kibupics {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2%;
    overflow: hidden;
    z-index: 1;
}

#kibupics .first {
    flex: 0 1 30%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#kibupics .first img {
    max-height: 50vh;
    width: auto;
    border-radius: 15px;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(255,0,0,0.5);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

#kibupics .first img:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 0 40px rgba(255,0,0,0.8), 0 0 60px rgba(255,50,50,0.5);
}

#bottom {
    flex: 0 0 auto;
    width: 100%;
    background-color: #0a0a0a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1vh 2vw;
    border-top: 2px solid #ff0000;
    z-index: 2;
}

#bottom h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: #9f9f9f;
    position: relative;
    z-index: 2;
    transition-duration: 1s;
    font-family: "Baumans";
}

#heading h1:hover {
    transform: scale(1.1) rotate(2deg);
    color: #ff6666;
    text-shadow: 0 0 10px #ff6666, 0 0 20px #ff3333, 0 0 30px #ff0000, 0 0 40px #990000;
}

#bottom h1:hover {
    transform: scale(1.1);
    color: #f6f6f6;
}

#bottom p {
    font-size: 1vw;
    max-width: 90%;
    line-height: 1.4;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

#page2, #page3, #page4, #page5, #page6,#page7,#page8,#page9,#page10,#page11,#page12 {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2vh;
    flex-direction: column;
}

.character-container {
    display: flex;
    flex-direction: row;
    width: 90%;
    max-width: 1200px;
    gap: 3%;
    align-items: center;
    margin-bottom: 30px;
}

.character-image {
    flex: 0 0 45%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.character-image img {
    max-height: 70vh;
    width: auto;
    border-radius: 15px;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(255,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.character-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255,0,0,0.8);
}

.character-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.character-info h1 {
    font-size: 4rem;
    color: #ff3333;
    text-shadow: 0 0 10px #ff0000;
    margin-bottom: 10px;
}

.character-info h1:hover {
    transform: scale(1.05);
    color: #ff6666;
    text-shadow: 0 0 20px #ff3333, 0 0 40px #ff0000;
}

.character-info p {
    font-size: 1.2rem;
    color: #ffcccc;
    line-height: 1.5;
}

/* Responsive layout for side-by-side characters */
@media screen and (max-width: 900px) {
    .character-container {
        flex-direction: column;
        text-align: center;
    }

    .character-image, .character-info {
        width: 100%;
    }

    .character-info h1 {
        font-size: 2.5rem;
    }

    .character-info p {
        font-size: 1rem;
    }
}
