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

body {
    font-family: 'Times New Roman', serif;
    background: linear-gradient(135deg, #8B4513, #A0522D, #D2691E);
    min-height: 100vh;
    color: #2F1B14;
    background-attachment: fixed;
}

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

.header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(245, 245, 220, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 3px solid #8B4513;
}

.header h1 {
    font-size: 3em;
    color: #8B4513;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.3em;
    color: #A0522D;
    font-style: italic;
}

.toast-display {
    background: rgba(245, 245, 220, 0.95);
    border: 4px solid #8B4513;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.toast-content {
    font-size: 1.8em;
    line-height: 1.6;
    text-align: center;
    position: relative;
    z-index: 1;
    color: #2F1B14;
    font-weight: 500;
}

.toast-counter {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #F5F5DC;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.btn {
    background: linear-gradient(145deg, #D2691E, #8B4513);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(145deg, #8B4513, #D2691E);
}

.btn:active {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.nav-btn {
    background: rgba(245, 245, 220, 0.9);
    border: 2px solid #8B4513;
    color: #8B4513;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.nav-btn:hover {
    background: #8B4513;
    color: white;
    transform: scale(1.05);
}

.footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background: rgba(245, 245, 220, 0.8);
    border-radius: 15px;
    border: 2px solid #8B4513;
}

.footer p {
    color: #8B4513;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.footer a {
    color: #D2691E;
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
}

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

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #F5F5DC;
    margin: 5% auto;
    padding: 30px;
    border: 3px solid #8B4513;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.close {
    color: #8B4513;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #D2691E;
}

.modal-content h2 {
    color: #8B4513;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #8B4513;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #8B4513;
    border-radius: 8px;
    font-family: 'Times New Roman', serif;
    font-size: 16px;
    background: white;
}

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

.form-group small {
    display: block;
    margin-top: 5px;
    color: #A0522D;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-primary {
    background: linear-gradient(145deg, #27ae60, #229954);
}

.btn-secondary {
    background: linear-gradient(145deg, #95a5a6, #7f8c8d);
}

.success-message {
    background: #27ae60;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.error-message {
    background: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .toast-content {
        font-size: 1.4em;
        padding: 20px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }

    .navigation {
        flex-direction: column;
    }

    .nav-btn {
        width: 100%;
    }
}
