/* Modal Styles */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    padding: 25px;
    border-radius: 6px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 3px 7px rgba(0,0,0,0.3);
    border: 1px solid rgba(0,0,0,0.3);
    text-shadow: none;
}

.modal-content h3 {
    margin: 0 0 20px 0;
    color: #333;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Form Styles in Modals */
.modal-content input,
.modal-content textarea,
.modal-content select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: inherit;
    resize: vertical;
    background-color: #ffffff;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}

.modal-content textarea {
    min-height: 100px;
}

.modal-content label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
    text-shadow: none;
}

/* Rules Modal */
.rules-modal {
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.rules-modal-content {
    background: #ffffff;
    border-radius: 6px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 3px 7px rgba(0,0,0,0.3);
    border: 1px solid rgba(0,0,0,0.3);
    animation: none;
}

.rules-image {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #e0e0e0;
}

.rules-content {
    padding: 0;
    overflow-y: hidden;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rules-footer {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #ddd;
    border-radius: 0;
    box-shadow: none;
}

.rules-timer {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
    text-shadow: none;
}

#countdown {
    font-weight: bold;
    color: #4477A1;
}

#agree-rules-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    min-width: 200px;
    border-radius: 3px;
}

#agree-rules-btn:disabled {
    background: #dcdcdc;
    border-color: #c0cddc;
    cursor: not-allowed;
    background-image: none;
    box-shadow: none;
    transform: none;
}

/* Kords Code Display */
#kords-code-display {
    background-color: #e9e9e9;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: 'Courier New', Courier, monospace;
    border-radius: 0;
    border: 1px solid #c5c5c5;
    user-select: all;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    color: #333;
    text-shadow: none;
}

.code-warning {
    font-size: 0.9em;
    color: #d32f2f;
    font-style: italic;
    margin-top: 15px;
    text-shadow: none;
}

/* Info Modal */
#info-modal .modal-content {
    max-width: 450px;
}

#info-modal-message {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}