/* Jukebox - A Free Design by Bryant Smith (bryantsmith.com)
   A chrome diner jukebox built with nothing but CSS.
   Every colour, circle and glow lives here; look for the section
   headings below to find the part you want to change. */


/* ---- BODY: the dark diner the jukebox stands in ---- */

body {
    background: radial-gradient(120% 80% at 50% -10%, #2a1a12 0%, #160f0c 55%, #0d0908 100%);
    background-attachment: fixed;
    color: #2a1d15;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 16px;
    line-height: 1.7;
    padding: 40px 16px 30px;
    text-align: center;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#page {
    margin: 0 auto;
    max-width: 900px;
    text-align: left;
}


/* ---- JUKEBOX: the curved wooden cabinet ---- */

#jukebox {
    background: linear-gradient(180deg, #7b3f23 0%, #5a2b16 30%, #3c1c0e 65%, #2a1208 100%);
    border: 6px solid #1c0d06;
    border-radius: 50% 50% 28px 28px / 210px 210px 28px 28px;
    box-shadow:
        0 0 0 3px #caa96a,
        0 0 0 4px #6e5426,
        0 30px 60px rgba(0, 0, 0, 0.65),
        inset 0 2px 0 rgba(255, 210, 150, 0.25);
    padding: 22px;
    position: relative;
}


/* ---- MARQUEE: the lit arch at the top ---- */

#marquee {
    background: radial-gradient(120% 150% at 50% 118%, #ffe6a8 0%, #ffc15e 26%, #ef8f2b 52%, #c9541c 78%, #8f2f11 100%);
    border: 4px solid #e6cf9c;
    border-radius: 50% 50% 16px 16px / 175px 175px 16px 16px;
    box-shadow:
        inset 0 -18px 40px rgba(120, 40, 0, 0.45),
        0 0 34px rgba(255, 180, 80, 0.35);
    overflow: hidden;
    padding: 54px 30px 44px;
    position: relative;
    text-align: center;
}

/* the row of little lights around the marquee edge */
.bulbs {
    background-image:
        radial-gradient(circle, #fff3c4 0 3px, rgba(255, 214, 120, 0.55) 3px 5px, transparent 5px),
        radial-gradient(circle, #fff3c4 0 3px, rgba(255, 214, 120, 0.55) 3px 5px, transparent 5px),
        radial-gradient(circle, #fff3c4 0 3px, rgba(255, 214, 120, 0.55) 3px 5px, transparent 5px);
    background-position: left top, right top, center bottom;
    background-repeat: repeat-y, repeat-y, repeat-x;
    background-size: 24px 26px, 24px 26px, 26px 24px;
    border-radius: inherit;
    inset: 10px;
    pointer-events: none;
    position: absolute;
}

#marquee h1 {
    color: #3a1505;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 58px;
    font-weight: bold;
    letter-spacing: 6px;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255, 240, 200, 0.7), 0 0 18px rgba(255, 220, 140, 0.85);
    text-transform: uppercase;
}

#marquee .tagline {
    color: #6b2a0d;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 4px;
    margin-top: 12px;
    text-transform: uppercase;
}


/* ---- MENU: the row of links in the arch ---- */

#menu {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    margin-top: 22px;
    text-transform: uppercase;
}

#menu a,
#menu a:visited {
    background: rgba(255, 245, 215, 0.28);
    border: 1px solid rgba(90, 34, 11, 0.35);
    border-radius: 999px;
    color: #3a1505;
    display: inline-block;
    margin: 4px 5px;
    padding: 6px 12px;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

#menu a:hover,
#menu a:focus {
    background: rgba(255, 245, 215, 0.85);
    box-shadow: 0 4px 10px rgba(120, 40, 0, 0.3);
    color: #a3300f;
    outline: none;
    transform: translateY(-2px);
}


/* ---- CABINET BODY: records rail beside the song panel ---- */

#cabinet {
    background: linear-gradient(180deg, #f7edd8, #efe0c2);
    border: 4px solid #d9c293;
    border-radius: 18px;
    box-shadow: inset 0 0 0 2px #fffaf0, inset 0 10px 26px rgba(120, 70, 20, 0.12);
    display: grid;
    gap: 26px;
    grid-template-columns: 220px 1fr;
    margin-top: 20px;
    padding: 24px;
}


/* ---- RECORDS: the stack of vinyl labels on the left ---- */

#records .rail-title {
    color: #8a5a2a;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 2.5px;
    margin-bottom: 18px;
    text-align: center;
    text-transform: uppercase;
}

.record-stack {
    list-style: none;
}

.record {
    align-items: center;
    background: repeating-radial-gradient(circle at 50% 50%, #171717 0 2px, #242424 2px 4px);
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), inset 0 0 0 3px #000000;
    display: flex;
    flex-direction: column;
    height: 165px;
    justify-content: center;
    margin: 0 auto -64px;
    position: relative;
    text-align: center;
    transition: transform 0.2s ease;
    width: 165px;
}

.record:last-child {
    margin-bottom: 0;
}

/* the cream paper label in the middle of each record */
.record::before {
    background: radial-gradient(circle, #fff8e8, #f0d9a8);
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(150, 110, 50, 0.4);
    content: "";
    height: 88px;
    left: 50%;
    margin: -44px 0 0 -44px;
    position: absolute;
    top: 50%;
    width: 88px;
}

.record .disc-code,
.record .disc-title {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    position: relative;
    z-index: 1;
}

.record .disc-code {
    color: #b03a20;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}

.record .disc-title {
    color: #3a2a18;
    font-size: 11px;
    line-height: 1.2;
    max-width: 70px;
}

/* give each record a small tilt so they read as a loose stack */
.record:nth-child(1) { transform: rotate(-6deg) translateX(-10px); }
.record:nth-child(2) { transform: rotate(5deg) translateX(12px); }
.record:nth-child(3) { transform: rotate(-4deg) translateX(-6px); }
.record:nth-child(4) { transform: rotate(7deg) translateX(8px); }
.record:nth-child(5) { transform: rotate(-5deg) translateX(-10px); }
.record:nth-child(6) { transform: rotate(4deg) translateX(9px); }

.record:hover {
    transform: rotate(0deg) translateX(0) scale(1.05);
    z-index: 5;
}

.rail-note {
    color: #8a6a48;
    font-size: 13px;
    font-style: italic;
    line-height: 1.5;
    margin-top: 30px;
    text-align: center;
}


/* ---- PANEL: the main column of writing ---- */

#panel p {
    color: #4a3423;
    margin-bottom: 16px;
}

.lead {
    color: #3f2c1c;
    font-size: 19px;
    line-height: 1.65;
}

#panel h2 {
    border-bottom: 2px solid #e0cfa8;
    color: #7a2f14;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2.5px;
    margin: 34px 0 16px 0;
    padding-bottom: 10px;
    text-transform: uppercase;
}

/* a glowing dot before each heading, like a lit selection light */
#panel h2::before {
    background: radial-gradient(circle, #ffd27a, #c9541c);
    border-radius: 50%;
    box-shadow: 0 0 0 2px #f7edd8, 0 0 0 3px #d9c293;
    content: "";
    display: inline-block;
    height: 10px;
    margin-right: 10px;
    vertical-align: middle;
    width: 10px;
}

code {
    background: #efe0c2;
    border: 1px solid #ddc79b;
    border-radius: 4px;
    color: #7a2f14;
    font-size: 13px;
    padding: 1px 5px;
}


/* ---- SONGS: the glowing selection buttons (each one a link) ---- */

.songs {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
    list-style: none;
}

.songs a {
    align-items: center;
    background: linear-gradient(180deg, #ffffff, #dfe5ec 48%, #f6f9fc 52%, #c4ccd6);
    border: 1px solid #9aa4b0;
    border-radius: 999px;
    box-shadow: 0 3px 0 #9aa4b0, 0 6px 10px rgba(60, 40, 20, 0.18), inset 0 1px 0 #ffffff;
    color: #2a1d15;
    display: flex;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 14px;
    gap: 12px;
    padding: 11px 14px;
    text-decoration: none;
    transition: background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.songs a:hover,
.songs a:focus {
    background: linear-gradient(180deg, #fff4d6, #ffd98e 48%, #ffe9b8 52%, #f0a83c);
    border-color: #c9541c;
    box-shadow: 0 6px 0 #b0591f, 0 10px 16px rgba(160, 80, 10, 0.3), 0 0 20px rgba(255, 180, 80, 0.5), inset 0 1px 0 #ffffff;
    color: #7a2f14;
    outline: none;
    transform: translateY(-3px);
}

/* the round letter-and-number key on each button */
.key {
    align-items: center;
    background: radial-gradient(circle at 40% 32%, #f06a4a, #b3301c 70%);
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.35);
    color: #fff6e6;
    display: flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: bold;
    height: 30px;
    justify-content: center;
    letter-spacing: 0.5px;
    width: 30px;
}

.songs a:hover .key,
.songs a:focus .key {
    background: radial-gradient(circle at 40% 32%, #ffd27a, #c9541c 72%);
    color: #3a1505;
}


/* ---- SPECIALS: the little price list ---- */

.specials {
    list-style: none;
}

.specials li {
    border-bottom: 1px dashed #dcc9a2;
    color: #4a3423;
    padding: 10px 0 10px 30px;
    position: relative;
}

.specials li:last-child {
    border-bottom: none;
}

.specials li::before {
    background: #c9541c;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #f7edd8, 0 0 0 3px #d9c293;
    content: "";
    height: 10px;
    left: 6px;
    margin-top: -5px;
    position: absolute;
    top: 50%;
    width: 10px;
}

.price {
    color: #7a2f14;
    display: inline-block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-weight: bold;
    min-width: 44px;
}


/* ---- SPEAKER: the grille and coin slot at the foot ---- */

#speaker {
    align-items: center;
    background: linear-gradient(180deg, #3c1c0e, #221009);
    border: 4px solid #d9c293;
    border-radius: 16px;
    box-shadow: inset 0 0 0 2px #5a2b16;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-top: 20px;
    padding: 18px 24px;
}

.grille {
    background-color: #b9a06f;
    background-image: radial-gradient(circle, #3a1c0e 0 2px, transparent 2.5px);
    background-position: 4px 4px;
    background-size: 11px 11px;
    border-radius: 10px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 230, 180, 0.3);
    flex: 1;
    height: 44px;
}

.coin-slot {
    background: linear-gradient(180deg, #f2f5f8, #aab4bf 50%, #e6ebf0);
    border: 1px solid #6c7681;
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    flex: 0 0 auto;
    height: 44px;
    position: relative;
    width: 70px;
}

.coin-slot::after {
    background: #1c0d06;
    border-radius: 4px;
    box-shadow: inset 0 2px 3px #000000, 0 0 0 1px #6c7681;
    content: "";
    height: 26px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
}


/* ---- FOOTER: the required credit link ---- */

#footer {
    border-top: 1px solid rgba(255, 200, 130, 0.2);
    color: #9a7a5a;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    margin: 26px auto 0;
    max-width: 900px;
    padding-top: 20px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    border-bottom: 1px solid transparent;
    color: #c9a06a;
    text-decoration: none;
    transition: color 0.16s ease, border-color 0.16s ease;
}

#footer a:hover {
    border-bottom-color: #ffd27a;
    color: #ffd27a;
}


/* ---- SMALL SCREENS: straighten the cabinet on phones ---- */

@media (max-width: 640px) {
    body {
        padding: 18px 10px 24px;
    }

    #jukebox {
        border-radius: 50% 50% 20px 20px / 120px 120px 20px 20px;
        padding: 14px;
    }

    #marquee {
        border-radius: 50% 50% 12px 12px / 100px 100px 12px 12px;
        padding: 40px 18px 32px;
    }

    #marquee h1 {
        font-size: 38px;
        letter-spacing: 4px;
    }

    #cabinet {
        gap: 18px;
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .record-stack {
        display: grid;
        gap: 8px;
        grid-template-columns: 1fr 1fr;
        justify-items: center;
    }

    .record {
        height: 112px;
        margin: 0;
        transform: none;
        width: 112px;
    }

    .record::before {
        height: 64px;
        margin: -32px 0 0 -32px;
        width: 64px;
    }

    .record .disc-code {
        font-size: 10px;
    }

    .record .disc-title {
        font-size: 10px;
        max-width: 54px;
    }

    .songs {
        grid-template-columns: 1fr;
    }

    .lead {
        font-size: 17px;
    }
}


/* ---- PRINT: a plain sheet, no cabinet ---- */

@media print {
    body {
        background: #ffffff;
        padding: 0;
    }

    #jukebox {
        border: none;
        box-shadow: none;
        padding: 0;
    }

    #marquee {
        background: none;
        border: none;
        box-shadow: none;
        padding: 0 0 12px 0;
    }

    #marquee h1 {
        color: #111111;
        text-shadow: none;
    }

    .bulbs,
    #speaker,
    #records {
        display: none;
    }
}
