/* Global */
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #1f2937;
    background: #f5f7fa;
}

/* Header */
.site-header {
    text-align: center;
    background-color: #B97A57;
    color: black;
    padding: 1.25rem 1rem;
}
.site-header h1 {
    margin: 0;
    font-size: 2rem;
    color:black
}
.site-header p {
    margin: 0.5rem 0 0;
    font-size: 1.1rem;
    color: black
}

/* Title Image */
.title-image {
    display: block;
    display: flex;
    justify-self: center;
    max-width: 100%;
    height: auto;
    margin: 1.25rem auto;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.nav-horizontal {
    background: #ffffff;
    border-bottom: 2px solid #e5e7eb;
}

.nav-horizontal ul {

    font-family: Segoe Script;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0.65rem 1rem;
}
.nav-horizontal a {
    text-decoration: none;
    font-weight: 600;
    color: #000000;
    padding: 0.35rem 0.6rem;
    border-radius: 0.35rem;
    transition: color 0.3s, background 0.3s;
}

.nav-horizontal a:hover {
    background: #000000;
    color: #ffffff;
}
/* Main page spacing */
main {
    max-width: 900px;
    margin: 1.25rem auto;
    padding: 0 1rem;
}

.menu-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.75);
    padding: 1rem;
    z-index: 10;
}

.menu-card {
    width: min(420px, 100%);
    padding: 1.75rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    text-align: center;
}

.menu-card h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.menu-card p {
    margin: 0 0 1.25rem;
    color: #334155;
}

.menu-card button,
.menu-return {
    width: 100%;
    border: none;
    background: #2563eb;
    color: #ffffff;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.75rem;
}

.menu-card button:hover,
.menu-return:hover {
    background: #1d4ed8;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

h1,
h2 {
    display: flex;
    justify-content: center;
    font-family: Segoe Script;
    color: black
}

p{
    font-family: Segoe Script;
    font-size: medium;
    color: black;
}

li {
    font-family: Segoe Script;
        font-size: medium;

}

/* Menu Screen */
.menu-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    z-index: 1000;
}

.menu-card {
    width: min(420px, 100%);
    padding: 1.75rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    text-align: center;
    font-family: Segoe Script;
    font-size: medium;

}

.menu-card h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.menu-card button,
.menu-return,
#continueButton,
#menuReturnButton {
    font-family: Segoe Script;
    width: min(320px, 100%);
    border: none;
    background: #ffffff;
    color: #000000;
    padding: 1rem 1.15rem;
    border-radius: 0.85rem;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: background 0.3s, transform 0.2s ease, color 0.3s;
}

.menu-card button:hover,
.menu-return:hover,
#continueButton:hover,
#menuReturnButton:hover {
    background: #000000;
    transform: translateY(-4px);
    color: #ffffff;
}

.play-content,
.instructions {
    margin-top: 30px;
    text-align: center;
}

.story-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

.story-text button {
    font-family: Segoe Script;
    width: min(320px, 100%);
    border: none;
    color: #000000;
    padding: 1rem 1.15rem;
    border-radius: 0.85rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s ease, color 0.3s;
}

.story-text button:hover {
    background: #000000;
    transform: translateY(-4px);
    color: #ffffff;
}

/* Story Scene */

.story-scene {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
    background-color: #B97A57;
}

/* Chapter Images and Text */
.Chapter1,
.Chapter2,
.Chapter3 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.Iota-text {
    max-width: 400px;
    text-align: left;
}

.Iota-image img {
    width: 150px;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.village-text {
    max-width: 400px;
    text-align: left;
}

.village-image img {
    width: 150px;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.Grace-text {
    max-width: 400px;
    text-align: left;
}

.Grace-image img {
    width: 150px;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.Mark-text {
    max-width: 400px;
    text-align: left;
}

.Mark-image img {
    width: 150px;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Media query for laptop and larger screens */
@media (min-width: 768px) {
    .Iota-image img,
    .village-image img,
    .Mark-image img,
    .Grace-image img {
        width: 250px;
    }
}