/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Lockbox Escape Rooms (fictional business)
    Filename:   styles.css

    Theme: the clock is running. The header is a black panel with a
    red seven-segment style LED countdown (59:59) glowing beside the
    typewriter name. The hero is a dark stone hallway lit by a
    flashlight beam (a radial gradient of light over a near-black
    overlay). The rooms are three case files on purple felt, each
    stamped with a case number and rated with a row of padlock icons
    drawn in CSS (a shackle arch over a body). The signature is a real
    puzzle: a brass four-wheel combination lock with question marks
    and a riddle whose answer opens with a details/summary toggle, no
    JavaScript needed. The footer is a dark wall with a tiny keyhole.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #120A24 text on #F7F5FF page (18.4:1)
      #7C3AED purple text and buttons (5.6:1; white on it 5.7:1)
      #77610A gold text (5.6:1 on the page)
      #120A24 on #FACC15 yellow (13.4:1)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Pale violet page. */
body {
    background-color: #F7F5FF;
    color: #120A24;
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Typewriter headings. */
h1,
h2,
h3 {
    font-family: "Special Elite", "Courier New", monospace;
    font-weight: 400;
    line-height: 1.12;
}

/* Section titles. */
h2 {
    font-size: clamp(1.8rem, 4.8vw, 2.7rem);
    color: #7C3AED;
    margin-bottom: 12px;
}

/* Links in purple. */
a {
    color: #7C3AED;
}

/* Yellow outline for keyboard users. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.menu-check:focus-visible + .timer-row .menu-icon {
    outline: 3px solid #77610A;
    outline-offset: 3px;
}

/* ----- Countdown header (class) ----- */

/* Black panel. */
.timer {
    position: relative;
    background-color: #120A24;
    color: #FFFFFF;
    padding: 12px 16px;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Name, clock and menu in a row. */
.timer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* Typewriter name. */
.logo {
    font-family: "Special Elite", "Courier New", monospace;
    font-size: 1.5rem;
    line-height: 1.05;
}

/* Second line in yellow. */
.logo span {
    display: block;
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #FACC15;
}

/* Red LED countdown with a glow and a dark segment backdrop. */
.led {
    font-family: "Courier New", Courier, monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: #FF3B3B;
    background-color: #1E0B0B;
    border: 2px solid #3A1A1A;
    border-radius: 4px;
    padding: 0px 8px;
    letter-spacing: 0.08em;
    text-shadow: 0px 0px 6px #FF3B3B, 0px 0px 14px #B91C1C;
}

/* Menu button. */
.menu-icon {
    background-color: #7C3AED;
    color: #FFFFFF;
    font-weight: 700;
    padding: 4px 12px;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.timer-nav {
    display: none;
}

/* Open menu shows the nav. */
.menu-check:checked ~ .timer-nav {
    display: block;
}

/* Nav list. */
.timer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
}

/* Nav links white. */
.timer-nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
}

/* Hover: yellow. */
.timer-nav a:hover {
    color: #FACC15;
}

/* ----- Concept note (class) ----- */

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 6px 16px;
}

/* ----- Flashlight hero (class) ----- */

/* Dark hallway. */
.dark {
    position: relative;
    min-height: 560px;
    background-color: #120A24;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Hallway photo. */
.dark img {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Darkness everywhere except a flashlight circle. */
.beam {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 82% 10%, rgba(255, 244, 200, 0.12) 0px, rgba(255, 244, 200, 0.05) 90px, rgba(10, 5, 20, 0.9) 170px);
}

/* Words in the dark, with a soft shadow so they stay readable. */
.dark-text {
    position: relative;
    color: #FFFFFF;
    text-shadow: 0px 2px 8px #0A0514;
    padding: 40px 16px;
    max-width: 640px;
}

/* Headline. */
.dark-text h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    margin-bottom: 14px;
}

/* The button text stays crisp, no shadow. */
.dark-text .clue-btn {
    text-shadow: none;
}

/* Hero words. */
.dark-text p {
    margin-bottom: 22px;
}

/* Yellow button like a clue card. */
.clue-btn,
button {
    display: inline-block;
    background-color: #FACC15;
    color: #120A24;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: 1.1rem;
    text-decoration: none;
    border: none;
    padding: 12px 26px;
    box-shadow: 4px 4px 0px #7C3AED;
    cursor: pointer;
}

/* Button hover. */
.clue-btn:hover,
button:hover {
    background-color: #FFFFFF;
}

/* ----- Case files (class) ----- */

/* Purple felt table. */
.rooms {
    background-color: #4C1D95;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 5px 5px;
    padding: 56px 16px;
}

/* Title in white on felt. */
.rooms h2 {
    color: #FFFFFF;
}

/* Files stack on phones. */
.files {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* One case file: cream paper with a folder tab. */
.file {
    position: relative;
    background-color: #F5F0E1;
    padding: 30px 20px 20px 20px;
    border-top: 14px solid #D9C38A;
    box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.3);
}

/* Red rubber-stamp case number. */
.stamp {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 3px solid #B91C1C;
    color: #B91C1C;
    font-family: "Special Elite", "Courier New", monospace;
    padding: 0px 8px;
    transform: rotate(6deg);
}

/* Room name. */
.file h3 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

/* Padlock row. */
.locks {
    display: flex;
    gap: 6px;
    margin-top: 14px;
}

/* One padlock: shackle arch over a body. */
.lk {
    position: relative;
    width: 20px;
    height: 16px;
    margin-top: 10px;
    border-radius: 3px;
    background-color: #D1D5DB;
}

/* Shackle. */
.lk::before {
    content: "";
    position: absolute;
    left: 4px;
    top: -10px;
    width: 12px;
    height: 12px;
    border: 3px solid #D1D5DB;
    border-bottom: none;
    border-radius: 7px 7px 0px 0px;
    box-sizing: border-box;
}

/* Filled padlocks for difficulty. */
.lk.on {
    background-color: #7C3AED;
}

/* Filled shackle. */
.lk.on::before {
    border-color: #7C3AED;
}

/* Escape rate. */
.rate {
    margin-top: 8px;
    font-weight: 700;
    color: #77610A;
}

/* ----- Crack the code (ID) ----- */

/* Section spacing. */
#crack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 56px 16px;
}

/* Combination lock: brass body and steel shackle. */
.combo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Big steel shackle. */
.shackle {
    width: 120px;
    height: 90px;
    border: 16px solid #9CA3AF;
    border-bottom: none;
    border-radius: 60px 60px 0px 0px;
}

/* Brass body with the wheels. */
.body {
    display: flex;
    gap: 6px;
    width: 220px;
    justify-content: center;
    background-image: linear-gradient(180deg, #E9C46A, #B8913A);
    border-radius: 18px;
    padding: 30px 16px;
    box-shadow: inset 0px -6px 0px rgba(0, 0, 0, 0.15);
}

/* One number wheel: a ribbed dark drum. */
.wheel {
    width: 38px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(180deg, #120A24 0%, #3B2A5E 50%, #120A24 100%);
    color: #FACC15;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: 1.8rem;
    border-radius: 6px;
}

/* Riddle column. */
.riddle {
    max-width: 560px;
}

/* The clue in typewriter type on an index card. */
.clue {
    background-color: #FFFFFF;
    border-left: 6px solid #FACC15;
    padding: 16px;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

/* Answer toggle. */
.answer {
    background-color: #EDE7FC;
    padding: 10px 16px;
    margin-bottom: 22px;
}

/* Answer button. */
.answer summary {
    cursor: pointer;
    font-weight: 700;
    color: #7C3AED;
}

/* Answer text. */
.answer p {
    margin-top: 8px;
}

/* Two photos. */
.crack-photos {
    display: flex;
    gap: 10px;
}

/* Each photo. */
.crack-photos img {
    width: 50%;
    height: 200px;
    object-fit: cover;
}

/* ----- Booking (class) ----- */

/* Black band. */
.book {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #120A24;
    padding: 56px 16px;
}

/* Puzzle box photo. */
.book img {
    height: 260px;
    object-fit: cover;
}

/* Form box. */
.book-form fieldset {
    border: none;
    background-color: #F7F5FF;
    padding: 24px;
    border-top: 8px solid #FACC15;
}

/* Form title. */
.book-form legend {
    font-family: "Special Elite", "Courier New", monospace;
    font-size: 1.6rem;
    float: left;
    width: 100%;
}

/* Labels. */
.book-form label {
    display: block;
    font-weight: 700;
    margin-top: 12px;
}

/* Inputs. */
.book-form input,
.book-form select {
    width: 100%;
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #615A72;
}

/* Submit spacing. */
.book-form button {
    margin-top: 18px;
}

/* ----- Wall footer (class) ----- */

/* Dark stone wall with a tiny keyhole at the right. */
.wall {
    background-color: #1C1630;
    background-image: radial-gradient(circle at calc(100% - 30px) 44%, #FACC15 0px, #FACC15 4px, transparent 5px), linear-gradient(90deg, transparent calc(100% - 32px), #FACC15 calc(100% - 32px), #FACC15 calc(100% - 28px), transparent calc(100% - 28px));
    background-size: 100% 100%, 100% 14px;
    background-position: 0px 0px, 0px 54%;
    background-repeat: no-repeat;
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 28px 60px 28px 16px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Bigger LED. */
    .led {
        font-size: 1.8rem;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Flashlight beam moves out to the right of the words. */
    .beam {
        background-image: radial-gradient(circle at 72% 40%, rgba(255, 244, 200, 0.12) 0px, rgba(255, 244, 200, 0.05) 120px, rgba(10, 5, 20, 0.88) 220px);
    }


    /* Files side by side. */
    .files {
        flex-direction: row;
    }

    /* Each file. */
    .file {
        flex: 1 1 30%;
    }

    /* Lock beside the riddle. */
    #crack {
        flex-direction: row;
        justify-content: center;
        gap: 60px;
    }

    /* Photo beside the form. */
    .book {
        flex-direction: row;
    }

    /* Each half. */
    .book img,
    .book-form {
        width: 50%;
    }

    /* Photo fills its half. */
    .book img {
        height: auto;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Name and clock left, nav right. */
    .timer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Space between name and clock. */
    .timer-row {
        gap: 24px;
    }

    /* Nav always shown. */
    .timer-nav {
        display: block;
    }

    /* Nav in a row. */
    .timer-nav ul {
        flex-direction: row;
        gap: 26px;
        padding-top: 0px;
    }

    /* Words further in. */
    .dark-text {
        padding: 60px 40px;
    }

    /* Wider sections. */
    .rooms,
    #crack,
    .book {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .rooms,
    .book {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }

    /* Hero words line up with the column. */
    .dark-text {
        padding-left: calc((100% - 1140px) / 2);
        max-width: none;
        width: 62%;
    }
}
