
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-image: url('../bg.jpeg') ;
}

.card {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(5px);             /* Blur effect */
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 35px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

h1 {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
    color: #334155;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

.subtitle {
    text-align: center;
    font-size: 16px;
    color: #333;
    margin-bottom: 35px;
    font-weight: normal;
}

h2, h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #000;
}

.section {
    margin-bottom: 25px;
}

/* Board section */
.board-row {
    display: flex;
    gap: 15px;
}

.board {
    flex: 1;
    padding: 12px 0;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: #0f172a;
}

.board.selected {
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    color: white;
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
}

/* Checkbox section */
.checkbox-row {
    display: flex;
    gap: 20px;
    white-space: nowrap;
}
.checkbox {
    position: relative;
    padding-left: 30px;
    font-size: 16px;
    display: flex;
    align-items: center;
    color: #0f172a;
    gap: 10px;p
    user-select: none;
    cursor: pointer;
}
.checkbox input[type="checkbox"]::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4f46e5;  
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: 0.2s ease;
}
.checkbox input[type="checkbox"]:checked::before {
    transform: translate(-50%, -50%) scale(1);
}

.checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #4f46e5;  /* theme color */
    border-radius: 50%;   /* circle ban gaya */
    cursor: pointer;
    position: relative;
    transition: 0.3s ease;
}
.checkbox input[type="checkbox"]:hover {
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.4);
}
/* Input section */
.roll-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 16px;
    outline: none;
    color: #000;
}

.roll-input::placeholder {
    color: #666;
}

.roll-input:focus {
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.4);
}

.hint {
    display: block;
    font-size: 13px;
    color: #555;
    margin-top: 6px;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;

    background: linear-gradient(135deg, #4f46e5, #9333ea);
    color: white;

    box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
    transition: 0.3s ease;
}

.btn:hover {
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.6);
    transform: translateY(-2px);
}

.success {
    background: rgba(34, 197, 94, 0.40); 
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #166534;  
    padding: 14px;
    margin: 15px auto;
    display: none;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
}
.success.show {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.success.show {
    display: block;
}

.result-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #1e1b4b, #4338ca);
    color: white;
    box-shadow: 0 0 20px rgba(67, 56, 202, 0.4);
    transition: 0.3s ease;
    display: none;
}

.result-btn.show {
    display: block;
}
.result-btn:hover {
    box-shadow: 0 0 30px rgba(67, 56, 202, 0.6);
    transform: translateY(-2px);
}

.footer {
    text-align: center;
    color: black;
    font-size: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
    margin-top: 5px;
}
