* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Comic Sans MS", Arial, sans-serif;
    background: linear-gradient(135deg, #fef3c7, #bfdbfe, #fbcfe8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: white;
    padding: 50px 70px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    max-width: 800px;
}

.school-name {
    font-size: 28px;
    font-weight: bold;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.exam-title {
    font-size: 38px;
    font-weight: bold;
    color: #dc2626;
    margin-bottom: 40px;
}

.buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

button {
    font-size: 28px;
    font-weight: bold;
    padding: 18px 40px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

button:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

button:nth-child(1) { background: #22c55e; }
button:nth-child(2) { background: #3b82f6; }
button:nth-child(3) { background: #f97316; }

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal.hidden {
    display: none;
}

.modal-box {
    background: white;
    width: 420px;
    border-radius: 20px;
    overflow: hidden;
    animation: pop 0.25s ease;
}

@keyframes pop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-title {
    background: #2563eb;
    color: white;
    padding: 16px;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
}

.modal-content {
    padding: 25px;
    text-align: center;
}

.modal-content p {
    font-size: 18px;
    margin-bottom: 15px;
}

.modal-content input {
    width: 100%;
    font-size: 22px;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    border: 2px solid #cbd5f5;
    outline: none;
}

.modal-content input:focus {
    border-color: #2563eb;
}

.error {
    color: red;
    margin-top: 10px;
    min-height: 20px;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    padding: 15px 25px 25px;
}

.btn-ok {
    background: #22c55e;
    color: white;
    border: none;
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
}

.btn-cancel {
    background: #ef4444;
    color: white;
    border: none;
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
}

