/* Global Styles */
body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #eef2f7, #d6e8ff);
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    animation: fadeIn 1s ease-in-out;
}

/* Header Styling */
header {
    background: linear-gradient(135deg, #0078d7, #0053a0);
    color: white;
    padding: 10px 20px 5px 20px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
}

header .subtitle {
    font-size: 1.2rem;
    margin-top: 10px;
    opacity: 0.9;
}

/* Main Section */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    margin: 10px auto;
    width: 90%;
}

iframe {
    width: 100%;
    height: calc(93vh - 180px);
    border: none;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 5px;
}

/* Notification Styling */
#notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff4d4d, #cc0000); /* Warna merah baru */
    color: white;
    font-weight: bold; /* Supaya lebih jelas */
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 1rem;
    display: none;
    z-index: 2000;
    text-align: center;
    max-width: 80%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid #990000; /* Tambahkan border agar terlihat lebih jelas */
}

/* Modal Input Nama dan Kelas */
#info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5rem;
}

.modal-content label {
    display: block;
    margin: 10px 0 5px;
    text-align: left;
    font-size: 1rem;
}

.modal-content input,
.modal-content select {
    width: 100%; /* Panjang input text dan select disamakan */
    padding: 12px; /* Tambahkan padding agar input text tidak mepet */
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* Pastikan padding masuk ke ukuran box */
    outline: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.modal-content input:focus,
.modal-content select:focus {
    border: 1px solid #0078d7;
    box-shadow: 0px 0px 4px #0078d7;
}

.modal-content button {
    background: linear-gradient(135deg, #0078d7, #0053a0);
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

.modal-content button:hover {
    background: linear-gradient(135deg, #0053a0, #003a73);
}

/* Fullscreen Overlay */
#fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
}

#fullscreen-overlay button {
    background: linear-gradient(135deg, #0078d7, #0053a0);
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.3s ease;
}

#fullscreen-overlay button:hover {
    background: linear-gradient(135deg, #0053a0, #003a73);
    transform: scale(1.05);
}

/* Footer Styling */
footer {
    background: linear-gradient(135deg, #0053a0, #0078d7);
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1rem;
    border-top: 3px solid #003a73;
}

/* Animation for Fade-In Effect */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    header .subtitle {
        font-size: 1rem;
    }
    .modal-content {
        padding: 20px;
    }
    iframe {
        box-shadow: none;
    }
}
