*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: aliceblue;
    font-family: 'Poppins', sans-serif;
}
.container{
    background: rgba(255, 255, 255, 0.918);
    border: 1px solid;
    width: 70%;
    min-height: 95vh;
    /* margin-top:4rem; */
    border-radius: 32px;
    margin: 0.8rem 0;
}
header{
    /* border: 1px solid; */
    text-align: center;
    margin: 1em;
}
header h1{
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.para{
    font-size: 22px;
    margin: 0.8em;
    font-weight: 300;
    color: #555;
}
.box-parent{
    /* border: 2px solid red; */
    display: flex;
}
.box{
    /* border: 1px solid green; */
    width: 49%;
    margin: 1rem;
}
.questions{
    border: 1px solid rgba(45, 45, 228, 0.767);
    border-radius: 28px;
    margin: 1.6em 1em;
    padding: 1.5em;
}
.mcqs{
    /* border: 1px solid red; */
    /* margin: 1em 0em; */
    padding:  0.1em 0.3em;
    font-size: 1.125rem;
    font-weight: 600;
    color: #444;
    width: fit-content;
    display: flex;
    align-items: center;
}
.num{
    /* border: 1px solid blue; */
    border-radius: 50%;
    padding: 0.35em 0.75em;
    margin-right: 0.6em;
    background:#257cf5;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size:14px;
}
.option{
    border: 1px solid gray;
    font-weight: 400;
    border-radius: 8px;
    display: flex;
    gap: 0.3em;
    /* justify-content: center; */
    align-items: center;
    margin: 0.9em 0 ;
    padding: 0.6em;
    width: 98%;
    transition: all 0.5s ease-in-out
}
.option:hover{
    transform: scale(1.02);
    background-color: #257cf541;
}
.form-checked{
    /* border: 1px solid red; */
    margin-right: 0.5em;
    margin-left: 0.2em;
}

.btns{
    /* border: 1px solid; */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5em;
    position: relative;
    bottom: 10%;
}
.button{
    /* border: 1px solid; */
        background: #0051ff;
    color: white;
    border: none;
    padding: 0.8em 1.4em;
    margin: 0.5em;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 20px;
    transition: 0.3s ease-in-out;
}

.result {
    /* Centering logic */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Sizing */
    width: 320px; 
    padding: 30px;
    z-index: 1000;
    
    /* Aesthetics */
    background: #ffffff;
    border-radius: 24px; 
    border: none; 
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.result-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.result h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.p-result {
    font-size: 18px;
    color: #666;
    margin: 15px 0 25px 0;
}

.percentage {
    display: block;
    font-size: 40px;
    font-weight: bold;
    color: #0051ff; /* Aapka original blue color */
}

.retry-btn {
    background: #0051ff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.retry-btn:hover, 
.button:hover {
    background: #003dbb;
    transform: scale(1.05);
}
.hide{
    display: none;
}
.show{
    display: flex;
    animation: fadeIn 0.6s ease-out, 
    anm 0.9s linear infinite alternate 0.5s;
}
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translate(-50%, -45%) scale(0.5); 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    to { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1); 
        box-shadow: 0 20px 40px rgba(0, 81, 255, 0.089)
    }
}
@keyframes anm {
    from { 
        transform: translate(-50%, -50%); 
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.301);
    }
    to { 
        /* Halka sa upar aur shadow badi */
        transform: translate(-50%, -52%); 
        box-shadow: 0 25px 50px rgba(15, 89, 248, 0.945);
    }
}
.p-result{
    /* border: 1px solid red; */
    margin: 0.6em;
    /* padding: 0.8em; */
    font-size: 1.5rem;
    letter-spacing: 3px;
}
.p-result span{
    color: blue;
    font-size: 1.9rem;
}
.attempted{
    opacity: 0.5;
}

@media (max-width: 768px){
    body{
        background-color: #ffffff;
    }
    .container{
        background: aliceblue;
        width: 99%;
        margin: 0.5em;
        height: 95%;
        border-radius: 20px;
    }
    .questions{
        margin:0.9rem 0.6rem;
        padding: 0.6rem;
        border-radius: 15px;
        background: rgb(255, 245, 240);
    }
    .option{
        font-size: 0.95rem;
    }
    .mcqs{
    font-size: 1.04rem;
    margin: 0.5em 0em 0.5em 0.5em;
    padding: 0.03em;
    }
    .box{
        margin: 0.4rem;
    }
    header h1{
        font-size: 4rem;
    }
    .para{
        font-size: 16px;
    }
}