.subject-select button,
.selected-subjects button{
    display: flex;
    justify-self: center;
    padding: 10px 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 3px;
    box-shadow: 0 3px 0 var(--dark-bg);
    margin-top: 30px;
    font-size: 1.1rem;
}

/* Keep the "Next" button always visible while selecting subjects */
.subject-select{
    padding-bottom: 140px;
}
.subject-select #next{
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    margin-top: 0;
    z-index: 10;
    width: calc(100% - 80px);
    max-width: 520px;
    justify-content: center;
}
.subject-select #next:hover{
    transform: translateX(-50%) translateY(-3px);
}
.subject-select button:hover,
.selected-subjects button:hover{
    transform: translateY(-3px);
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 6px 0 var(--dark-bg);
}
.exam-type p{
    text-align: center;
    font-size: 1.1rem;
    color: #aaa;
}
.exam-type .links{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 7%;
    margin-top: 50px;
    width: 85%;
    justify-self: center;
}
.exam-type .links .link{
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow-y: hidden;
    transition: .3s ease;
    min-height: 180px;
    transition: .3s ease;
}
.exam-type .links .link strong{
    font-size: 5rem;
    color: var(--light-bg);
    transition: .3s ease;
}
.exam-type .links .link label{
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 600;
    transition: .3s ease;
    cursor: pointer;
}
.exam-type .links .link:hover{
    background: var(--accent);
}
.exam-type .links .link.active{
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 0 var(--dark-bg);
    transform: translateY(-10px);
}
.hidden{
    display: none;
}
.subject-select .subjects{
    display: flex;
    justify-content: space-between;
    width: 90%;
    flex-wrap: wrap;
    flex-grow: 1;
    row-gap: 20px;
    justify-self: center;
    margin-top: 50px;
}
.subject-select .subjects .subject{
    padding: 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    width: 30%;
    background: var(--white);
    color: var(--dark-bg);
    cursor: pointer;
    border: 2px solid var(--dark-bg);
    box-shadow: 3px 3px 0 var(--dark-bg);
    transition: .2s ease;
}
.subject-select .subjects .subject.disabled{
    opacity: .55;
    cursor: not-allowed;
}
.subject-select .subjects .subject.disabled .icon{
    opacity: .4;
}
.subject-select #selectionHint{
    color: var(--accent);
    font-weight: 600;
    opacity: .9;
}
.subject-select .subjects .subject .icon{
    font-size: 1.1rem;
    color: var(--dark-bg);
}
.subject-select .subjects .subject label{
    cursor: pointer;
    font-weight: 600;
}
.subject-select .subjects .subject.active{
    background: var(--primary-color);
    color: var(--white);
}
.subject-select .subjects .subject.active .icon{
    color: var(--accent);
}


.selected-subjects{
    position: relative;
}
.selected-subjects #go-back{
    position: absolute;
    top: 22%;
    left: 5%;
    font-weight: 600;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--dark-bg);
}
.selected-subjects #go-back:hover{
    text-decoration: underline;
}
.selected-subjects .info{
    display: flex;
    gap: 50px;
    margin-bottom: 30px;
    justify-self: right;
}
.selected-subjects .info .card{
    background: var(--primary-color);
    padding: 15px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    box-shadow: 3px 3px 0 var(--dark-bg);
    border: 2px solid var(--dark-bg);
}
.selected-subjects .info .card label{
    color: var(--light-bg);
    opacity: .8;
}
.selected-subjects .info .card span .edit{
    font-size: .8rem;
    margin-left: 5px;
    cursor: pointer;
    color: var(--accent);
    background: transparent;
    border-radius: 5px;
    transition: .1s ease;
    opacity: .7;
}
.selected-subjects .info .card span .edit:hover{
    opacity: 1;
}
.selected-subjects .info span > strong{
    color: var(--white);
    font-weight: 700;
}
.selected-subjects .subjects{
    display: flex;
    gap: 25px;
    justify-self: center;
    align-items: center;
}
.selected-subjects .subjects .subject{
    min-width: 15rem;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 5px 5px 0 var(--dark-bg);
    border: 2px solid var(--white);
    transition: .3s ease;
    cursor: pointer;
}
.selected-subjects .subjects .subject:hover{
    transform: translateY(-5px);
    box-shadow: 5px 10px 0 var(--dark-bg);
}
.selected-subjects .subjects .subject > strong{
    font-size: 7rem;
    background: var(--dark-bg);
    width: 100%;
    text-align: center;
    border-radius: 10px 10px 0 0;
    margin-bottom: 15px;
    color: var(--white);
    opacity: .7;
    transition: .3s ease;
}
.selected-subjects .subjects .subject:hover > strong{
    opacity: 1;
}
.selected-subjects .subjects .subject > label{
    padding: 0 15px 0 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
}
.selected-subjects .subjects .subject .ques-info{
    padding: 0 15px 15px 15px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}
.selected-subjects .subjects .subject .ques-info label{
    color: var(--light-bg);
    opacity: .7;
    font-size: .95rem;
}
.selected-subjects .subjects .subject .ques-info span{
    color: var(--white);
    font-weight: 600;
}
.selected-subjects .subjects .subject .ques-info strong{
    color: var(--accent);
    cursor: pointer;
    opacity: .7;
    transition: .1s ease;
    margin-left: 7px;
}
.selected-subjects .subjects .subject .ques-info strong:hover{
    opacity: 1;
}

/* Modal */
.modal#summary .summary-content{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.modal#summary .summary-content label{
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    opacity: .8;
}
.modal#summary .summary-content .subject-group .subject,
.modal#summary .summary-content .info-group > div{
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.modal#summary .summary-content p{
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 700;
}
.modal#summary .summary-content .exam-type{
    display: flex;
    justify-content: space-between;
}

/* Responsive */
@media (max-width: 900px) {
    .exam-type .links{
        width: 100%;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .subject-select .subjects{
        width: 100%;
        gap: 16px;
    }

    .subject-select .subjects .subject{
        width: 48%;
    }

    .selected-subjects .info{
        flex-wrap: wrap;
        gap: 16px;
        justify-self: center;
    }

    .selected-subjects .subjects{
        flex-wrap: wrap;
        justify-content: center;
    }

    .selected-subjects .subjects .subject{
        min-width: 12rem;
    }
}

@media (max-width: 600px) {
    .exam-type .links{
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 25px;
    }

    .exam-type .links .link strong{
        font-size: 3.5rem;
    }

    .exam-type .links .link label{
        font-size: 1.1rem;
    }

    .subject-select .subjects .subject{
        width: 100%;
    }

    .subject-select #next{
        bottom: 16px;
        width: calc(100% - 32px);
        padding: 12px 18px;
    }

    .selected-subjects #go-back{
        position: static;
        margin-bottom: 12px;
        display: inline-block;
    }

    .selected-subjects .subjects .subject{
        width: 100%;
        min-width: 0;
    }

    .selected-subjects .subjects .subject > strong{
        font-size: 5rem;
    }
}
