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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    border: 2px solid #000;
    padding: 30px;
    background: #fff;
    max-width: 500px;
    width: 90%;
}

.loading-content h1 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

.loading-bar-container {
    width: 100%;
    height: 30px;
    border: 2px solid #000;
    background: #fff;
    margin: 20px 0;
    position: relative;
}

.loading-bar {
    height: 100%;
    background: #000;
    width: 0%;
    transition: width 0.3s ease;
}

.loading-text {
    font-size: 16px;
    margin: 10px 0;
}

.loading-detail {
    font-size: 14px;
    margin-top: 10px;
    color: #666;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background: #fff;
    color: #000;
    padding: 5px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    max-height: 100vh;
    overflow-y: auto;
}

.box {
    border: 2px solid #000;
    padding: 8px;
    margin-bottom: 5px;
    background: #fff;
}

.center {
    text-align: center;
}

h1, h2 {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 18px;
}

.hidden {
    display: none;
}

/* Form */
.form-group {
    margin-bottom: 8px;
}

label {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

input[type="text"] {
    background: #fff;
    border: 1px solid #000;
    color: #000;
    font-family: 'Courier New', Courier, monospace;
    padding: 5px;
    width: 100%;
    max-width: 400px;
    font-size: 14px;
    outline: none;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
}

/* Date Selection */
.date-container {
    margin-top: 5px;
}

.date-display {
    text-align: center;
    font-size: 16px;
    margin: 5px 0;
    padding: 6px;
    border: 1px solid #000;
    background: #fff;
}

.date-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-group label {
    margin-bottom: 3px;
    font-size: 12px;
}

/* Slot Machine with Background */
.slot-machine-group {
    flex: 1;
    min-width: 300px;
}

.slot-machine-wrapper {
    position: relative;
    width: 180px;
    height: 240px;
    margin: 0 auto;
}

.slot-machine-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Slot Machine Reels */
.slot-reels {
    position: absolute;
    top: 44.5%;
    left: 60%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 3%;
    justify-content: center;
    z-index: 10;
}

.reel {
    position: relative;
    width: 33px;
    height: 45px;
    background: transparent;
    border: none;
    overflow: hidden;
}

#dayOnes {
    left: -16%;
}

.reel-strip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reel-number {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Dropdowns */
select {
    background: #fff;
    border: 1px solid #000;
    color: #000;
    font-family: 'Courier New', Courier, monospace;
    padding: 4px;
    font-size: 13px;
    cursor: pointer;
    min-width: 100px;
}

select option {
    background: #fff;
    color: #000;
}

/* Buttons */
button {
    background: #c0c0c0;
    border: 2px outset #fff;
    color: #000;
    font-family: 'Courier New', Courier, monospace;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    margin: 5px auto;
    display: block;
}

button:active {
    border-style: inset;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results */
.results-box {
    margin-top: 30px;
}

.results-content {
    font-size: 18px;
    line-height: 1.8;
}

.results-content p {
    margin: 10px 0;
}

/* Footer */
.footer {
    margin-top: 20px;
    padding: 15px;
    border: 2px solid #000;
    background: #fff;
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: normal;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    color: #000;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.2s;
}

.social-links a:hover {
    transform: scale(1.2);
}

.social-links a:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .box {
        padding: 20px;
    }

    .date-display {
        font-size: 22px;
    }

    .date-controls-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .date-inputs {
        display: flex;
        flex-direction: row;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .slot-machine-wrapper {
        width: 250px;
        height: 350px;
    }

    .reel {
        width: 45px;
        height: 65px;
    }

    .reel-number {
        height: 65px;
        font-size: 48px;
    }

    .footer {
        padding: 10px;
        margin-top: 15px;
    }

    .footer-text {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .social-links {
        gap: 12px;
    }

    .social-links a {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .box {
        padding: 15px;
    }

    .date-display {
        font-size: 20px;
    }

    .slot-machine-wrapper {
        width: 200px;
        height: 280px;
    }

    .reel {
        width: 35px;
        height: 55px;
    }

    .reel-number {
        height: 55px;
        font-size: 40px;
    }

    h1 {
        font-size: 18px;
    }

    button {
        font-size: 12px;
        padding: 6px 16px;
    }

    .footer {
        padding: 8px;
        margin-top: 10px;
    }

    .footer-text {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .social-links {
        gap: 10px;
    }

    .social-links a {
        font-size: 16px;
    }
}
