/*Google Fonts Link*/
@import url('https://fonts.googleapis.com/css2?family=Berkshire+Swash&family=Leckerli+One&display=swap');

/*Css Variable*/
:root {
    --primary-font: "Leckerli One", serif;
    --secondary-font: "Berkshire Swash";
    --primary-color: #1C350B;
    /* green */
    --secondary-color: #a1c08c;
    /* brown */
    --highlight-color: #F9F9E5;
    /* purple */
    --highlight-color-light: #f3f596;
    /* light yellow */
}

/*Global Styles*/
html,
body {
    font-family: var(--primary-font);
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, rgba(74, 122, 59, 0.904), rgb(13, 46, 17));
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

header {
    margin-bottom: 3rem;
}

main {
    display: block;
}

p {
    padding-left: 1rem;
    padding-right: 1rem;
}


footer {
    padding: 1.5rem;
    background-color: rgb(13, 46, 17);
    border-top: 1px solid #c9b037;
    color: #d3b572;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    caret-color: transparent;
}

footer p {
    margin: 0;
}

/* Container styles*/
#main-container {
    width: 100%;
    min-height: 100vh;
    background-image: url("../images/papirus-2.webp");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: top center;
    margin-top: 1.5rem;
    display: block;
    padding: 8rem 3rem;
    caret-color: transparent;
}

#story-container {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding-top: 4rem;
}

#pictures-container {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

#choices-container {
    width: fit-content;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
}

.logo {
    width: 150px;
    height: auto;
    margin-left: 1rem;
}

.nav-container {
    width: 100%;
    margin: 0.5rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.story-heading {
    padding: 3px;
    margin-bottom: 2rem;
}

#key-question {
    margin-bottom: 2rem;
}

.key-row {
    display: flex;
    justify-content: center;
    gap: inherit;
}

.puzzle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

/*Buttons style*/
.btn {
    border: 4px solid var(--highlight-color-light);
    background-color: var(--secondary-color);
    font-family: var(--secondary-font);
    padding: 0.5rem 1rem;
    min-height: 3em;
    cursor: pointer;
}

.btn:hover {
    border: 4px solid var(--secondary-color);
    background-color: #f7f8b8;
}

.btn-intro {
    margin-top: 1rem;
}

.btn-restart {
    margin-top: 1rem;
    border-radius: 8px;
}

.nav-buttons {
    display: flex;
}

.close-btn {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 25px;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--secondary-color);
}

.skip-btn {
    left: 50%;
    font-size: 12px;
    padding: 4px 8px;
    font-family: var(--primary-font);
    background-color: white;
    border: 2px solid #333;
    border-radius: 4px;
    cursor: pointer;
    z-index: 100;
}

.skip-btn:hover {
    border: 3px solid rgb(74, 150, 81);
    color: var(--primary-color);
}

.btn-choice {
    margin: 2px;
}

.ok-no:hover {
    background-color: var(--highlight-color-light);
}

#close-warning:hover {
    background-color: var(--highlight-color-light);
}

/* Modal styling*/
#modal-content {
    padding: 20px;
    max-width: 500px;
    position: relative;
    background: #ffffff;
    color: #000000;
    border: 3px solid var(--highlight-color-light);
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    margin: 15% auto;
    text-align: center;
}

/* Dialog styling*/
dialog {
    position: fixed;
    top: 45%;
    z-index: 3;
    background: #ffffff;
    color: #000000;
    border: 3px solid var(--highlight-color-light);
    border-radius: 5px;
    font-family: var(--secondary-font);
}


/* Images styling*/
.characters-img {
    width: 200px;
    height: auto;
    border-radius: 5px;
    box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.5);
    margin-top: 3rem;
}

.characters-img:hover {
    box-shadow: 0 0 25px rgba(255, 255, 100, 0.7);
}

.story-image {
    max-width: 90%;
    height: auto;
    border-radius: 5px;
    box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.5);
    margin: 1.5rem;
}

.key-image {
    width: 70px;
    height: auto;
}

.key-image:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255, 255, 100, 0.7);
    border-radius: 5px;
}

.treasure-box {
    margin-bottom: 3rem;
}

.treasure {
    margin: 1rem;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: 0 0 20px gold;
    transition: box-shadow 0.3s ease;
}

.treasure:hover {
    box-shadow: 0 0 40px 15px gold;
}

/* Icon styles*/
#volume-on,
#volume-off {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    cursor: pointer;
}

#music-on {
    cursor: pointer;
}

#music-on:hover {
    color: var(--secondary-color);
}

#footer-icons {
    display: flex;
    flex-direction: row;
    color: var(--highlight-color-light);
}

#footer-icons i {
    color: #ffffff;
    font-size: 1.5em;
    border: 2px solid #c9b037;
    border-radius: 50%;
    padding: 7px;
    margin-right: 5px;
    cursor: pointer;
}

#footer-icons i:hover {
    border: 2px solid var(--secondary-color);
}

/* Styles for big screen*/
@media screen and (min-width:778px) {
    .nav-container {
        margin: 0 5rem;
    }

    #main-container {
        width: 80%;
        height: auto;
        min-height: 80vh;
        background-image: url("../images/papirus.webp");
        background-size: 100% 130%;
        background-position: center;
        background-repeat: no-repeat;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        position: relative;
        padding: 3rem 3rem;
        margin: 2rem auto;
    }
}

@media screen and (min-width:992px) {
    #main-container {
        width: 80%;
        height: auto;
        min-height: 80vh;
        background-image: url("../images/papirus.webp");
        background-size: 100% 130%;
        background-position: center;
        background-repeat: no-repeat;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        position: relative;
        padding: 3rem 3rem;
        margin: 2rem auto;
    }

    #story-container {
        max-width: 800px;
    }

    #pictures-container {
        gap: 5rem;
    }
}

@media screen and (min-width:1200px) {

    #story-container {
        max-width: 1000px;
    }
}