/* --- Gaya untuk Tombol Materi & Kontainer --- */
.start-screen-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

/* --- Gaya Modal (Popup) --- */
.modal {
    display: none;
    position: fixed; 
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px 40px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    position: relative;
    animation: slideDown 0.4s ease-out;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* --- Konten di dalam Modal --- */
.materi-body {
    text-align: left;
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 20px;
    margin-top: 20px;
}

.materi-body h3 {
    font-size: 22px;
    color: #0056b3;
    margin-top: 20px;
    margin-bottom: 10px;
}

.materi-body h4 {
    font-size: 18px;
    color: #333;
    margin-top: 15px;
    margin-bottom: 8px;
}

.materi-body p, .materi-body li {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.materi-body ul {
    list-style-type: disc;
    padding-left: 20px;
}

.materi-body pre {
    background-color: #f4f4f9;
    border-left: 4px solid #007bff;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap; /* Agar kode bisa wrap */
    word-wrap: break-word;
    font-size: 14px;
    margin: 15px 0;
}

.materi-divider {
    margin: 35px 0;
    border: 0;
    border-top: 1px solid #e0e0e0;
}

/* Animasi */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}