@font-face {
    font-family: 'Aldrich';
    src: url('./Aldrich-Regular.ttf') format('truetype');
}

body {
    background-image: url('background.jpeg');
    background-repeat: repeat;
    background-size: 100px 100px;
    font-family: 'Aldrich', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 20px;
}

header {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.header-content {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

.menorah-container {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

@keyframes spin3d {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.menorah {
    max-width: 10vw;
    height: auto;
    animation: spin3d 3s linear infinite;  /* Changed from pulse */
}

.logo {
    max-width: 50vw;
    height: auto;
    display: block;
}


.menorah-left {
    position: absolute;
    left: -17vw;
    top: 10px;
}

.menorah-right {
    position: absolute;
    right: -17vw;
    top: 10px;
}

h1 {
    font-family: 'Aldrich', sans-serif;
    font-size: 2em;
    margin: 0;
    color: black;
    letter-spacing: 0.1em;
}

main {
    padding: 20px;
    line-height: 1.6;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 5px;
    padding-bottom: 5px;
    color: chartreuse;
    background-color: black;
}

.button-container {
    position: absolute;
    left: -180px;
    top: 60px;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.content-wrapper {
    position: relative;
    margin: 30px 0;
}

.premier-marquee{
    font-size: 24px;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    background-color: chartreuse;
    z-index: 1000;
    padding: 5px;
}

.lyrics {
    font-size: 18px;
    width: 100vw;
    height: 50vw;
    position: fixed;
    bottom: 0;
    right: -80%;
    margin: 0;
    z-index: 500;
    padding: 5px;
    pointer-events: none;
}

.lyrics-marquee {
    width: 300px; 
    height: 100%;
    pointer-events: auto;
}

/* Static lyrics display */
.lyrics-display.static-lyrics {
    top: 50%;
    transform: translateY(-50%);
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
}

.lyrics-display.static-lyrics .lyrics-content {
    position: static;
    transform: none;
}

/* Hide lyrics when display is none */
.lyrics-display.no-lyrics {
    display: none;
}

/* Pop-up ad styles */
.popup-ad {
    position: fixed;
    background-color: white;
    border: 3px solid #000;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    padding: 5px;
    z-index: 999;
    max-width: 300px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    cursor: grab;
    user-select: none;
}

.popup-ad.show {
    opacity: 1;
    transform: scale(1);
}

.popup-ad img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: red;
    color: white;
    border: 2px solid #000;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    pointer-events: auto;
}

.close-btn:hover {
    background-color: darkred;
}

:root {
    --color-cod-gray: #111;
    --color-seashell: #f1f1f1;
    --color-silver: #ccc;
    --color-white: #fff;
    --color-gallery: #eee;
    --color-mercury: #e6e6e6;
    --color-shalimar: #fff9c0;
    --color-jelly-bean: #21759b;
    --color-dove-gray: #666;
    --color-royal-blue: #4169e1;
    --color-fresh-eggplant: #800080;
    --color-lucky-point: #191970;
    --color-tundora: #404040;
    --color-black: #000;

    --c-background-button-netscape: var(--color-silver);
    --c-link: blue;
}

/* 90s Netscape button */
.button--netscape {
    align-items: center;
    background: var(--c-background-button-netscape);
    border-color: var(--color-gallery) var(--color-cod-gray) var(--color-cod-gray) var(--color-gallery);
    border-radius: 0;
    border-width: 2px;
    cursor: pointer;
    display: inline-flex;
    font-family: "Times New Roman";
    font-weight: 700;
    min-height: 31px;
    min-width: 88px;
    padding: 2px 4px 2px 2px;
    position: relative;
    white-space: nowrap;
    zoom: 1.2;  /* Changed from 1.5 */
}

.button--netscape:hover,
.button--netscape:focus {
    outline: 1px dotted var(--c-link);
}

.button--netscape:active {
    border-color: var(--color-cod-gray) transparent transparent var(--color-cod-gray);
    padding: 4px 2px 0px 4px;
}

.button--netscape::before {
    align-items: center;
    background: var(--color-royal-blue);
    content: "✡️";
    display: flex;
    flex: 0 0 24px;
    font-size: 14px;
    height: 23px;
    justify-content: center;
    line-height: 0;
    margin-right: 4px;
    overflow: hidden;
    padding-top: 2px;
    width: 24px;
}

.button--theme::before {
    background: var(--color-cod-gray);
    content: "💡";
    text-shadow: 0 0 4px #FF6;
}

.button--dark {
    background: var(--color-cod-gray);
    color: red;
    border-top-color: var(--color-cod-gray);
    border-left-color: var(--color-cod-gray);
}

.button--dark::before {
    background: #660000;
    content: "🎃";
    text-shadow: 0 0 4px black;
}

.button--text {
    font-size: 10px;
}

.button--text em {
    color: red;
    font-family: cursive;
    display: block;
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
    padding: 0 4px 0 2px;
}

.button--text::before {
    background: #006633;
    content: "✡️";
    text-shadow: 0 0 9px yellow;
}

.button--letter {
    font-size: 20px;
    line-height: 1;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px #000000;
    font-style: italic;
}

.button--letter::before {
    background: #003366;
    content: "🌎";
    text-shadow: 0 0 3px hsla(0deg, 0%, 100%, 0.5);
    font-style: normal;
}

/* Turntable styles */
.turntable-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: -40px 0;
}

.turntable-container {
    position: relative;
    width: 500px;
    height: 500px;
}

.turntable-base {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.record-container {
    position: absolute;
    top: 37%;  /* Changed from 40% - moves it up */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;  /* Changed from 150px - makes it smaller */
    height: 130px;  /* Changed from 150px - makes it smaller */
}

.album-art {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: spin 2s linear infinite;
    animation-play-state: paused;
}

.album-art.rotating {
    animation-play-state: running;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.track-info {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
}

.player-controls {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    justify-content: center;
}

.control-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    height: 40px;
    padding: 0;
    transition: all 0.2s;
}

.control-btn img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
}

.control-btn:hover {
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

/* Mobile styles */
@media (max-width: 768px) {
    .button-container {
        position: static;
        transform: none;
        margin: 20px auto;
        width: fit-content;
        padding: 0 20px;
    }
    
    .content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .button--netscape {
        zoom: .8;
        min-width: 70px;
        font-size: 12px;
    }
}

.progress-wrapper {
    position: absolute;
    bottom: 33%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-display {
    font-size: 12px;
    font-weight: bold;
    min-width: 35px;
    text-align: center;
}

.progress-container {
    flex: 1;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: chartreuse;
    transition: width 0.1s linear;
    border-radius: 4px;
}

.lyrics-display {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 300px;
    height: 500px;  /* Increased from 400px */
    background-color: transparent;  /* Changed from rgba(0, 0, 0, 0.8) */
    border: none;  /* Changed from 2px solid chartreuse */
    overflow: hidden;
    padding: 20px;
    z-index: 500;
}

.lyrics-content {
    position: absolute;
    top: 100%;
    width: 100%;
    color: black;
    font-size: 18px;
    line-height: 1.8;
    white-space: pre-wrap;
    font-weight: 900;
    text-shadow: 
        -2px -2px 0 white,
        2px -2px 0 white,
        -2px 2px 0 white,
        2px 2px 0 white,
        -2px 0 0 white,
        2px 0 0 white,
        0 -2px 0 white,
        0 2px 0 white;
}

/* Dance mode styles */
/* Dance mode styles - background will be set dynamically */
body.dance-mode {
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: none;
}

/* Individual dance mode backgrounds */
body.dance-mode-1 {
    background-image: url('jesusflashing.gif');
}

body.dance-mode-2 {
    background-image: url('jesusgif2.gif');
}

body.dance-mode-3 {
    background-image: url('jesusgif3.gif');
}

body.dance-mode-4 {
    background-image: url('jesusgif4.gif');
}

body.dance-mode-5 {
    background-image: url('jesusgif5.gif');
}

@keyframes backgroundFlash {
    0% {
        background-color: #ff00ff;
    }
    25% {
        background-color: #00ffff;
    }
    50% {
        background-color: #ffff00;
    }
    75% {
        background-color: #ff00ff;
    }
    100% {
        background-color: #00ff00;
    }
}

body.dance-mode .container {
    animation: shake 0.2s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px) rotate(-1deg);
    }
    75% {
        transform: translateX(5px) rotate(1deg);
    }
}

body.dance-mode .logo {
    animation: spin3d 1s linear infinite, colorCycle 2s linear infinite;
}

@keyframes colorCycle {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

body.dance-mode .menorah {
    animation: spin3d 0.5s linear infinite, pulse 0.3s ease-in-out infinite;
}

body.dance-mode .turntable-container {
    animation: bounce 0.5s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}/* Dance mode styles */
body.dance-mode {
    animation: backgroundFlash 0.5s ease-in-out infinite alternate;
}

@keyframes backgroundFlash {
    0% {
        background-color: #ff00ff;
    }
    25% {
        background-color: #00ffff;
    }
    50% {
        background-color: #ffff00;
    }
    75% {
        background-color: #ff00ff;
    }
    100% {
        background-color: #00ff00;
    }
}

body.dance-mode .container {
    animation: shake 0.2s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px) rotate(-1deg);
    }
    75% {
        transform: translateX(5px) rotate(1deg);
    }
}

body.dance-mode .logo {
    animation: spin3d 1s linear infinite, colorCycle 2s linear infinite;
}

@keyframes colorCycle {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

body.dance-mode .menorah {
    animation: spin3d 0.5s linear infinite, pulse 0.3s ease-in-out infinite;
}

body.dance-mode .turntable-container {
    animation: bounce 0.5s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.page-content {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    position: relative;
    min-height: 400px;
}

.page-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

#jesus {
    position: fixed;
    width: 100px;  /* Adjust size as needed */
    height: auto;
    user-select: none;
    transition: all 0.05s linear;
    z-index: 100;
    image-rendering: pixelated;  /* Keeps pixel art crisp */
}

.jewish-person {
    position: fixed;
    width: 50px;
    height: auto;
    user-select: none;
    z-index: 99;
    image-rendering: pixelated;
}

.falling-cross {
    position: fixed;
    width: 1000px;
    height: auto;
    z-index: 1000;
    image-rendering: pixelated;
    pointer-events: none;
}

.dress-up-content {
    max-width: 100%;
    margin: 0;  /* Changed from 10px auto */
    padding: 5px;  /* Changed from 10px */
    text-align: center;
    position: relative;
    min-height: 0;  /* Changed from 80vh */
    height: 100vh;  /* Add this to constrain height */
    overflow: hidden;  /* Add this to prevent scroll */
}

.dress-up-title {
    max-width: 300px;  /* Made smaller from 400px */
    height: auto;
    display: block;
    margin: 0 auto 5px auto;  /* Reduced bottom margin */
    image-rendering: pixelated;
}

.dress-up-container {
    position: absolute;
    left: 50%;
    top: 40%;  /* Adjust this value to position Jesus */
    transform: translate(-50%, -50%);
    display: inline-block;
    z-index: 1;
}

.dress-up-content h2 {
    font-size: 2em;
    margin-bottom: 10px;
}


#jesus-body {
    display: block;
    max-width: 180px;
    height: auto;
    image-rendering: pixelated;
    position: relative;
    z-index: 1;  /* Add this - puts Jesus in the back */
}

.clothing-rack {
    position: fixed;
    top: 200px;
    left: 20px;
    width: auto;
    max-width: 400px;  /* Increased to fit multiple columns */
    display: grid;  /* Changed from flex */
    grid-template-columns: repeat(2, 1fr);  /* 2 columns */
    gap: 10px;
    z-index: 100;
}

.clothing-rack-right {
    position: fixed;
    top: 200px;
    right: 20px;
    width: auto;
    max-width: 400px;  /* Increased to fit multiple columns */
    display: grid;  /* Changed from flex */
    grid-template-columns: repeat(2, 1fr);  /* 2 columns */
    gap: 10px;
    z-index: 100;
}

.clothing-item {
    cursor: grab;
    padding: 0;
    background-color: transparent;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border-color 0.2s;
    image-rendering: pixelated;
    z-index: 100;  /* Changed from 10 - needs to be higher than Jesus (z-index: 1) */
}

.clothing-item.dragging {
    position: fixed;
    z-index: 1000;
    opacity: 0.8;
}

.clothing-item:hover {
    border-color: chartreuse;
}

.clothing-item:active {
    cursor: grabbing;
}


#clothing-layers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.clothing-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

body.dress-up-page {
    overflow: hidden;
    height: 100vh;
}

.request-form {
    max-width: 500px;
    margin: 30px auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #000;
    border-radius: 0;
    font-family: 'Aldrich', 'Arial', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.request-form .button--netscape {
    margin-top: 10px;
}

body.request-page {
    background-image: url('panera1.jpeg');
}

.request-page .page-content {
    background-color: rgba(255, 255, 255, 0.9);  /* White with 90% opacity */
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    margin: 40px auto;
}

.request-page .page-content h2 {
    margin-top: 0;
}

.rider-link {
    margin-top: 30px;
    text-align: center;
}

.rider-link a {
    color: blue;
    text-decoration: underline;
    font-weight: bold;
}

.rider-link a:hover {
    color: darkblue;
}

.menorah-container a {
    pointer-events: auto;
}

.style-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
}

.style-btn {
    padding: 10px 20px;
    font-family: 'Aldrich', 'Arial', sans-serif;
    font-size: 16px;
    font-weight: bold;
    background-color: #ccc;
    border: 3px solid #000;
    cursor: pointer;
    transition: all 0.2s;
}

.style-btn:hover {
    background-color: #aaa;
}

.style-btn.active {
    background-color: chartreuse;
    border-color: #000;
    transform: scale(1.1);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 20px auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid #000;
}

@media (max-width: 768px) {
    .premier-marquee {
        pointer-events: none;
    }
    
    /* Make sure interactive elements are clickable */
    .button-container,
    .music-player,
    .player-controls button,
    button {
        pointer-events: auto !important;
        position: relative;
        z-index: 9999;
    }
    
    /* Fix button positioning */
    .button-container {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        display: grid !important;  /* Changed from flex */
        grid-template-columns: 1fr 1fr;  /* Two equal columns */
        gap: 10px;
        align-items: center;
        justify-content: center;
        margin: 20px auto;
        width: 90%;
        max-width: 500px;  /* Prevent buttons from getting too wide */
    }
}

@media (max-width: 768px) {
    .album-art,
    .progress-container,
    .player-controls {
        pointer-events: auto !important;
        z-index: 10000;
    }
    
    /* If there's an overlay on the vinyl */
    #albumArt {
        pointer-events: none;
    }
    
    /* But make sure the container is clickable */
    .album-art {
        pointer-events: auto !important;
    }
}

.game-stats {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 3px solid #000;
    padding: 15px;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

.timer, .high-score {
    margin: 5px 0;
    font-size: 18px;
}

.timer {
    color: #000;
}

.high-score {
    color: #d4af37; /* Gold color */
}

.music-marquee {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 5px 0;
    z-index: 200;
    display: none;  /* Hidden by default */
}

.music-marquee.show {
    display: block;
}

.credits-box {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 2px solid #000;
    padding: 8px 12px;
    z-index: 10000;
    font-size: 14px;
    border-radius: 5px;
}

.credits-box a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

.credits-box a:hover {
    text-decoration: underline;
}

.credits-content {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
}

/* Mobile Controls - hidden by default */
.mobile-controls {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 10000;
    flex-direction: column;
    gap: 10px;
    align-items: center;  /* Add this to center the up button */
}

.horizontal-arrows {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.arrow-btn {
    width: 60px;
    height: 60px;
    font-size: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 3px solid #000;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
    touch-action: manipulation;
}

.arrow-btn:active {
    background-color: chartreuse;
    transform: scale(0.95);
}

/* Show on mobile/tablet */
@media (max-width: 768px) {
    .mobile-controls {
        display: flex;
    }
}

.desktop-instructions {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: 3px solid #000;
    padding: 20px 40px;
    font-size: 24px;
    font-weight: bold;
    z-index: 10001;
    text-align: center;
    border-radius: 10px;
}

.desktop-instructions.hidden {
    display: none;
}

/* Hide on mobile */
@media (max-width: 768px) {
    .desktop-instructions {
        display: none;
    }
}