body {
    margin: 0;
    font-family: 'Comic Sans MS', 'Papyrus', 'Courier New', sans-serif;
    background-image: url('../assets/snow_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

#storybook {
    width: 80%;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #ff0000;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 20px;
}

.scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 20px;
}

.hidden {
    display: none;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin-bottom: 20px;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1;
    border-radius: 10px;
}

.page-number {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Comic Sans MS', sans-serif;
    color: red;
    z-index: 2;
}

.text-container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 800px;
}

.text-container p {
    font-size: 24px;
    color: #000;
    margin: 0;
}

.the-end {
    font-size: 48px;
    color: red;
    font-weight: bold;
    text-shadow: 2px 2px 4px green;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    width: 100%;
    max-width: 800px;
}

button {
    background-color: #ff0000;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #ff4d4d;
}

.previous-button {
    visibility: hidden;
}

.play-button-container {
    margin-top: 20px;
    text-align: center;
}

#gotoGame2 {
    background-color: green;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#gotoGame2:hover {
    background-color: #32cd32;
}

#scene1 .overlay {
    background-color: rgba(255, 0, 0, 0.3);
}

#scene2 .overlay {
    background-color: rgba(255, 127, 0, 0.3);
}

#scene3 .overlay {
    background-color: rgba(255, 255, 0, 0.3);
}

#scene4 .overlay {
    background-color: rgba(0, 255, 0, 0.3);
}

#scene5 .overlay {
    background-color: rgba(0, 0, 255, 0.3);
}

#scene6 .overlay {
    background-color: rgba(75, 0, 130, 0.3);
}

#scene7 .overlay {
    background-color: rgba(148, 0, 211, 0.3);
}

#scene8 .overlay {
    background-color: rgba(255, 127, 0, 0.3);
}

#scene9 .overlay {
    background-color: rgba(255, 255, 0, 0.3);
}

#scene10 .overlay {
    background-color: rgba(0, 255, 0, 0.3);
}

#scene11 .overlay {
    background-color: rgba(0, 0, 255, 0.3);
}

#scene12 .overlay {
    background-color: rgba(75, 0, 130, 0.3);
}

#scene13 .overlay {
    background-color: rgba(148, 0, 211, 0.3);
}

#scene14 .overlay {
    background-color: rgba(255, 127, 0, 0.3);
}

#scene15 .overlay {
    background-color: rgba(255, 255, 0, 0.3);
}

#scene16 .overlay {
    background-color: rgba(0, 255, 0, 0.3);
}

#scene17 .overlay {
    background-color: rgba(0, 0, 255, 0.3);
}

#scene18 .overlay {
    background-color: rgba(75, 0, 130, 0.3);
}

#scene19 .overlay {
    background-color: rgba(148, 0, 211, 0.3);
}

#scene20 .overlay {
    background-color: rgba(255, 0, 0, 0.3);
}