
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;700&display=swap');

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #1a1a2e;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #2a2a4e;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 800px;
    text-align: center;
}

h1 {
    color: #fca311;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.input-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.date-time-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.input-container input[type="date"],
.input-container input[type="time"] {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #fca311;
    background-color: #1a1a2e;
    color: #e0e0e0;
    font-size: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #bbb;
}

#birthdate { /* Removed, kept for reference if needed but overwriting block */
    display: none; 
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    background-color: #fca311;
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #ffc107;
    transform: translateY(-2px);
}

.hidden {
    display: none;
}

#result {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    text-align: left;
}

.result-item {
    background-color: #21213a;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.result-item:hover {
    transform: translateY(-5px);
}

#fortune {
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    line-height: 1.6;
}

.result-item h2 {
    color: #fca311;
    margin-top: 0;
    font-size: 1.5rem;
}

#color-box {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

#lotto-numbers {
    margin-top: 15px;
}

.lotto-game {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.lotto-game span {
    font-weight: 700;
    margin-right: 10px;
}

.lotto-ball {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 5px;
}

.quote-item {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 20px;
}

.lotto-item {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 40px;
}

.lotto-item h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

#quote {
    color: #bbb;
    /* font-size removed to use default or inherited */
}

.bonus {
    background-color: #fca311;
}

.contact-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #444;
    text-align: left;
}

.contact-section h2 {
    color: #fca311;
    text-align: center;
    margin-bottom: 20px;
}

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

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

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #1a1a2e;
    color: #e0e0e0;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.contact-section button {
    width: 100%;
}

.comment-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #444;
    text-align: left;
}

.comment-section h2 {
    color: #fca311;
    text-align: center;
    margin-bottom: 20px;
}

.lang-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background-color: transparent;
    border: 2px solid #fca311;
    color: #fca311;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    z-index: 1000;
}

.share-btn {
    position: absolute;
    top: 20px;
    right: 115px;
    padding: 8px;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 2px solid #fca311;
    color: #fca311;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover, .lang-btn:hover {
    background-color: #fca311;
    color: #1a1a2e;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fca311;
    color: #1a1a2e;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

.info-section {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid #444;
    text-align: left;
}

.info-section h3 {
    color: #fca311;
    margin-bottom: 10px;
    margin-top: 30px;
}

.info-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #444;
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    padding-bottom: 60px;
}

footer a {
    color: #fca311;
    text-decoration: none;
    margin-left: 10px;
}

footer a:hover {
    text-decoration: underline;
}


.lotto-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.lotto-options select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #444;
    background: #1a1a2e;
    color: #e0e0e0;
}

.lotto-stats-chart {
    background: #232344;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.stat-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.lotto-ball.small {
    width: 25px;
    height: 25px;
    line-height: 25px;
    font-size: 0.9rem;
    margin-right: 10px;
}

.stat-bar-container {
    flex-grow: 1;
    background: #444;
    height: 10px;
    border-radius: 5px;
    margin-right: 10px;
    overflow: hidden;
}

.stat-bar {
    height: 100%;
    background: #fca311;
    border-radius: 5px;
}

.stat-val {
    font-size: 0.85rem;
    color: #bbb;
    min-width: 50px;
    text-align: right;
}

.disclaimer-text {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
    font-style: italic;
}

@media (max-width: 600px) {
    .lang-btn {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .share-btn {
        top: 10px;
        right: 85px;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .container {
        padding: 20px 15px;
    }

    .input-container {
        flex-direction: column;
    }

    /* Date/Time Mobile Optimization: Stack vertically */
    .date-time-wrapper {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .date-time-wrapper input[type="date"],
    .date-time-wrapper input[type="time"] {
        width: 100%;
        box-sizing: border-box; /* Ensure padding doesn't overflow width */
    }

    .checkbox-label {
        width: 100%;
        justify-content: center; /* Center the checkbox text */
        margin-top: 5px;
    }

    /* Lotto Mobile Optimization: Wrap balls and adjust size */
    .lotto-game {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Separator between games */
    }

    .lotto-game:last-child {
        border-bottom: none;
    }

    /* Target the "Game X:" label to take full width */
    .lotto-game > span:first-child {
        width: 100%;
        display: block;
        margin-bottom: 10px;
        color: #fca311;
        font-size: 1rem;
    }

    .lotto-ball {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 0.9rem;
        margin: 3px;
    }

    .lotto-item {
        padding: 20px 10px; /* Reduce padding to give more space for balls */
    }

    /* Filters Stack */
    .lotto-options {
        flex-direction: column;
        align-items: stretch;
    }

    .lotto-options label, .lotto-options select {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .lotto-options select {
        box-sizing: border-box;
    }
}
