/* --------------------------------------------------
   Global / Page background
-------------------------------------------------- */

body {
    background: url('background_img.jpg') repeat;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Main white content area */

.content-wrapper {
    width: 75%;
    margin: 0 auto;
    background: #ffffff;
    padding: 0 0px;
    padding-top: 25px;
    padding-bottom: 30px;
    box-sizing: border-box;
}

/* Helper width containers */

.inner-width,
.set-width {
    width: 75%;
    margin: 0 auto;
    padding: 5px;
    box-sizing: border-box;
}

/* --------------------------------------------------
   HEADER + RESPONSIVE BANNER
-------------------------------------------------- */

.site-header {
    margin: 0;
    padding: 0;
}

.header-frame {
    width: 75%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* The single banner image */
.site-banner {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* --------------------------------------------------
   NAVIGATION BAR
-------------------------------------------------- */

.main-nav {
    width: 75%;        /* requested: 60% of content width */
    margin: 0px auto;  /* centered + pushed down slightly */
    position: relative;
    z-index: 10;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #9c7420;
    border: 5px solid #fff;
    border-radius: 3px;
    display: flex;
    justify-content: center;
}

.main-nav a {
    display: block;
    padding: 5px 18px;
    color: #fff;
    font-weight: 800;
    font-size: 1.5vw;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-shadow: 0 2px 0 rgba(0,0,0,0.35);
}

.main-nav a:hover {
    background: #b9852a;
}

/* --------------------------------------------------
   SET LIST + SET BUTTONS
-------------------------------------------------- */

.set-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 15px 5px;
    margin: 20px auto;
    background: #446;
}

.set-box {
    width: 30%;
    padding: 20px;
    background: #aac;
    color: #ff0;
    box-sizing: border-box;
    border: 2px solid #009;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.set-box:hover {
    background: #d90;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

.set-thumb {
    width: 100%;
    height: 120px;
    min-height: 120px;
    margin-bottom: 10px;
    object-fit: contain;
}

.set-box:hover .set-thumb {
    background: #d90;
}

.set-thumb.placeholder {
    background: #000;
}

.set-box.disabled {
    opacity: 0.4;
    background: #777;
    color: #ccc;
    border-color: #555;
    pointer-events: none;
    cursor: default;
    box-shadow: none;
}

/* Home button */

.home-box {
    display: inline-flex;
    width: 300px;
    padding: 20px;
    background: #aac;
    color: #ff0;
    border: 2px solid #009;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    margin: 10px auto 20px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.home-box:hover {
    background: #d90;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

/* --------------------------------------------------
   IMAGE GRID
-------------------------------------------------- */

.image-container {
    margin: 10px auto;
    background: #446;
    text-align: center;
    box-sizing: border-box;
    border-radius: 20px; /* rounded corners */
}

.image-container img {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin: 10px;
    display: inline-block;
    transition: 0.2s ease-in-out;
    cursor: pointer;
}

/* --------------------------------------------------
   MODAL
-------------------------------------------------- */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(200,200,200,0.85);
    justify-content: center;
    align-items: center;
}

.modal img {
    max-width: 95vw;
    max-height: 95vh;
    box-shadow: 0 0 25px rgba(0,0,0,0.9);
    background: #000;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */

.site-footer {
    background: #9c7420;
    color: #ffffff;
    padding: 20px 0;
    margin: 0px 0px 0px 0px;
}

.footer-inner {
    font-size: 14px;
    text-align: center;
}

/* --------------------------------------------------
   RESPONSIVE TWEAKS
-------------------------------------------------- */

@media (max-width: 640px) {
    .header-frame,
    .main-nav,
    .inner-width,
    .set-width {
        width: 95%;
    }

    .main-nav ul {
        gap: 8px;
        flex-wrap: wrap;
    }

    .main-nav a {
        padding: 10px 12px;
        font-weight: 700;
    }
}

@media (max-width: 400px) {
    .set-list {
        flex-direction: column;
        align-items: center;
    }

    .set-box,
    .home-box {
        width: 90%;
        max-width: 300px;
    }

    .image-container {
        width: 95%;
    }
}

/* Paragraph information box */
.info-box {
    background: #ffffff;
    border: 4px solid #446;
    padding: 20px;
    padding-top: 60px; /* space for label */
    margin: 25px auto;
    margin-top: 15px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px; /* space between text and image */
    border-radius: 20px; /* rounded corners */
}

/* Full-width label bar */
.info-box-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;            /* full width across the box */
    background: #446;    /* heavy white bar */
    color: #fff;
    font-weight: bold;
    font-size: 1.5vw;
    padding: 12px 20px;
    border-bottom: 4px solid #446;

    /* match top rounded corners of the parent */
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-sizing: border-box;
}

/* Text area */
.info-box p {
    flex: 1;
    font-size: 20px;
    line-height: 1.4;
}

/* Right-side image */
.info-img {
    flex: 0 0 auto;
    width: min(40%, 520px);   /* never exceed 1/3 of box or ~260px */
    min-width: 100px;         /* never shrink below 120px */
    aspect-ratio: 3 / 4;      /* required proportion */
    object-fit: contain;
    padding: 20px;
}
