:root {
    --headerHeight: 90px;
}


button {
    border: none; 
    background-color: #2A2B2E;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    height: 40px;
    font-family: 'Montserrat', sans-serif;
}

a{
    justify-self: center;
    color: white;
    text-decoration: none;
    cursor: pointer;
    font-style: italic;
}

a:hover{
    text-decoration: underline;
}

button:hover {
    background: linear-gradient(90deg, rgb(56 136 255) 10%, rgba(0,212,255,1) 100%);
}

body{
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #2A2B2E;
    color: white;
}

#mainBody{
    background-image: url(svg/background.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}

header {
    width: auto;
    background-color: #2A2B2E;
    height: var(--headerHeight);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    align-items: center;
    padding: 0 10px; 
}

header::after{
    content: "";
    background-color: white;
    position: absolute;
    top: var(--headerHeight);
    height: 0.75px;
    width: 98%;
}

.categoryButton {
    font-family: 'Montserrat', sans-serif;
    color: white;
    
}
.categoryButton:hover {
    box-shadow: 0 0 30px 1px #2e57d3;
    z-index: 1;
}
/* Dropdown styles */
#dropdown {
    position: relative;
    height: 40px;
}

#dropdownButton {
    height: 100%;
    width: 100%;
    background-color: inherit;
    color: inherit;
    border: none;
    cursor: pointer; 
    text-align: center;
    text-align: -webkit-center;
}

#dropdownButton:hover {
    box-shadow: 0 0 30px 1px #2e57d3;
}

#dropdownContent {
    display: none;
    position: absolute;
    top: 100%;
    width: 100%;
    color: #ffffff;
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.349);
    background: #2e2f32;
    z-index: 1;
    border-radius: 5px;
}

#dropdown:hover #dropdownContent {
    display: flex; 
    flex-direction: column;
}

.dropdownItem {
    transform: translateX(-20px);
    transition: transform 0.3s ease-in-out;
    background: #2e2f32;
}

#dropdown:hover .dropdownItem {
    transform: translateX(0);
}




/* Main Page */
.titleLink{
    text-decoration: none !important; 
    color: white; 
    font-size: 30px; 
    padding-left: 10px;
    font-style: normal;
}


#aboutSection{
    white-space: pre-line;
    margin-bottom: 100px;
}


#main {
    margin: 15px;
    min-height: calc(100vh - var(--headerHeight) - 150px);
}

section{
    margin-left: -15px;
    margin-right: -15px;
    height: 80vh;
}

.section1{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.middleSection{
    background-color: rgba(0, 0, 0, 0.55);
    display: grid;
    grid-template-rows: 1fr 2fr;
    height: 70vh;
    overflow: hidden;
}

.section3{
    height: 100px;
    padding: 0px 30px 0px 30px;
    text-align: center;
    text-align: -webkit-center;
}

.info1{
    width: 50%;
}

.info1 h1{
    overflow: hidden;
    font-weight: 200;
    font-size: 2.5vw;
}

.info1 h2{
    overflow: hidden;
    font-weight: 200;
    font-size: 1.5vw;
}

.image1{
    height: 25vw;
    box-shadow: 0 0 0px 20px #1f2022;
}

#optionClassHome{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
}

footer {
    height: 150px;
    background: #1e2022bd;
    padding: 30px;
    display: grid;
    margin-top: 100px;

    grid-template-columns: 2fr 1fr;
    gap: 40px;


}

#footerItems{
    display: grid;
    grid-template-rows: 1fr 1fr 1fr 1fr;
}

/* Start button stuff */
#startButton {
    margin: 15px;
    width: fit-content;
    justify-self: center;
}

#startButtonBorder {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 1fr;
    align-items: center;
    width: fit-content;

    padding: 30px;
    border: 1px #d2d2d2 solid;
    border-radius: 20px;
}

#startButtonContainer{
    margin: 30px 15px 0px 15px;
    text-align: -webkit-center;
}

#optionsForm{
    margin-left: 0%;
    margin-right: 0%;
    padding: 0px 0px;
    width: 100%;
    height: 100%;

    /*border-bottom: #d2d2d2 1px solid;*/
    justify-self: center;
}

.questionBox {
    font-size: 20px;
}

#selectNumbersOfQuestionsContainer{
    margin: 10px;
    text-align: center;
    text-align: -webkit-center;
}

#selectNumOfQuestions{
    margin: 5px;
    color: #ffffff;
    background:#1e2022;
    outline: none;
    border-radius: 20px;
    border: none;
    padding: 10px;
    height: 10px;
    width: 150px;

    font-family: 'Montserrat', sans-serif;
}

#selectModeContainer{
    margin: 10px;
    text-align: center;
    text-align: -webkit-center;
}

#selectMode{
    height: 30px;
    padding: 5px;
    border-radius: 20px;
    background:#1e2022;
    color: #ffffff;
    border: none;
    margin: 10px;
    width: 170px;

    font-family: 'Montserrat', sans-serif;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}
/*Question Container*/
#titleTest{
    font-size: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: bold;
}


.questionContainer{
    margin-top: 30px;
    margin-bottom: 10px;
    border: 1px #ffffff solid;
    transform: translateX(-100%);
    opacity: 0;
    padding: 10px;
    width: 100%;
    border-radius: 10px;
}

.shownQuestion {
    animation: wobble 1.3s ease-in-out forwards;
}

form {
    padding: 10px 0px;
    margin-left: 25%;
    margin-right: 25%;
}

.answerBox:focus{
    background-color: white;
}

.rightOrWrongText{
    height: 29.33px;
    font-size: 15px;
}

#scoreUI{
    margin-bottom: 10px;
    font-size: 15px;
}

.answerBox {
    width: 75%;
    height: 28px;
    border: none;
    border-radius: 5px;

    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 13px;

    outline: none;
    transition: all 0.3s ease-in;
    background-color: #d2d2d2;

    margin-top: 15px;
    margin-bottom: 15px;
}

#submit{
    width: 80px;
    height: 30px;
    background: #2c9cff;
}

#submit:hover{
    box-shadow: 0 0 20px 0.5px #2e57d3;
    z-index: 1;
}

/*Search options*/
#searchMain{
    margin: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: 150px;
    gap: 20px;

    min-height: 350px;
}

#searchBar{
    margin: 30px 40px 15px 40px;
}

#searchBarInput{
    color: #ffffff;
    background:#1e2022;
    outline: none;
    border-radius: 20px;
    border: none;

    width: 100%;
    height: 40px;
    font-size: 20px;
    padding: 10px 10px 10px 40px;

    background-image: url('Icons/searchBarIcon.png');
    background-repeat: no-repeat;
    background-position: 10px;
    background-size: 25px;
}

input::-webkit-search-cancel-button{
    display: none;
}

input[type="search"]{
    -webkit-appearance: none;
}

.optionClass {
    text-align: center;
    text-align: -webkit-center;
    align-content: center;
    margin: 2vw;
    font-size: 2vw;
    border: 2px #2c9cff solid;
    height: 100px;
    overflow: hidden;
    position: relative;
    display: grid;
}


.optionClass::after{
    content: '';
    position: absolute;
    width: -webkit-fill-available;
    height: 50px;
    background-color: #2c9cff;
    transform: translateY(95px);
    transition: transform 0.25s ease-out;
}

.optionClass:hover{
    cursor: pointer;
}

.optionClass:hover::after{
    transform: translateY(67px);
}

.selectorContainer{
    margin-top: 50px;
    margin-bottom: 15px;
    display: grid;
    gap: 10px;

    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}



.multipleChoiceOption{
    height: 4vw;
    font-size: 20px;
    background-color: #2e8de1;
    border-radius: 5px;
    box-shadow: 5px 5px rgb(27, 27, 27);


    cursor: pointer;
    
    transition: scale 0.4s ease-in-out, background-color 0.5s;

    text-align: center;
    text-align: -webkit-center;
    align-content: center;
    -webkit-box-orient: horizontal;

    font-size: 2vw;
}

.multipleChoiceSelected{
    background-color: #1a578c;
    
    scale: 0.96;
}


@keyframes wobble {
    0% { transform: translateX(-100%); opacity: 0;}
    100% {transform: translateX(0%); opacity: 1;}
}


.scrollWatcher{
    display: none;
    height: 10px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    background-color: #2c9cff;
    width: 100%;
    transform-origin: left;

    scale: 0 1;
    animation: scrollBarTop linear;
    animation-timeline: scroll();
    
}

@keyframes scrollBarTop{
    to {scale: 1 1;}
}


/*About Us*/
#aboutUsMain{
    padding: 15px;

    display: grid;
    grid-template-columns: 1fr;

    background-image: url(svg/wave.svg);
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
}

.aboutUsTitle{
    font-size: 50px;
    justify-self: center;
    margin-top: 20px;
    margin-bottom: 50px;
}

.aboutUsCard{
    height: fit-content;
    width: 60vw;
    background-color: #242426;
    justify-self: center;

    padding: 50px;

    border-radius: 30px;
    box-shadow: 0 0 50px -6px #000000;
}





/*Create Test CSS*/
#selectDocType{
    height: max-content;

    background-color: #1e2022;
    color: white;
    outline: none;
    border: none;
    padding: 10px;
    border-radius: 15px;
    font-size: 15px;

    margin: 15px;

    font-family: "Montserrat", sans-serif;
}


#mainForm{
    margin: 15px;
    
    min-height: calc(100vh - var(--headerHeight) - 115px);

    
}

#formForTest {
    display: grid;

    grid-template-columns: 1fr;
    justify-items: center;
}

#addQuestionButton{
    border: 1px white solid;
}

#bluePrintTest{
    border: 1px white solid;
}

#buttonForSAQ{

}

#buttonForPDF{
    
}

#addQuestionButton:hover{
    background-color:#2e57d3;
}

#questionCreationTypeContainer{
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

}

#nameInput{
    margin-left: 5px;
    height: max-content;
    width: 75%;

    background-color: #1e2022;
    color: white;
    outline: none;
    border: none;
    padding: 10px;
    border-radius: 15px;

    font-family: "Montserrat", sans-serif;
}

.nameDiv{
    margin: 10px;
    width: 100%;
    text-align: center;
    text-align: -webkit-center;
}

.mcqPanel{
    margin: 20px;
    min-height: 200px;
    width: 90%;
    padding: 15px;

    border: 1px white solid;
    border-radius: 15px;

    display: grid;
    grid-template-columns: 1fr;

    gap: 20px;
    transform: translateX(-100%);

    animation: wobble 1.3s ease-in-out forwards;
}

.deleteQuestionButton{
    margin: 15px;
    position: absolute;
    justify-self: right;
    font-size: 12px;
}

.mcqQuestionInput{
    margin-top: 30px;
    height: max-content;

    background-color: #1e2022;
    color: white;
    outline: none;
    border: none;
    padding: 20px;
    border-radius: 15px;

    font-family: "Montserrat", sans-serif;
}

.mcqAnswerGenButton{
    width: fit-content;
    justify-self: center;

    border: 1px white solid;
}

.mcqAnswerContainer{
    width: 100%;
    height: fit-content;

    display: flex;
    -webkit-align-items: center;
    gap: 15px;
}

.mcqAnswerCheck{
    accent-color: black;
    width: 15px;
}

.mcqAnswerInput{
    width: 100%;
    background: #1e2022;
    color: white;

    padding: 10px;

    outline: none;
    border: none;

    border-radius: 10px;
}

.saqPanel{
    margin: 20px;
    width: 90%;
    padding: 15px;

    border: 1px white solid;
    border-radius: 15px;

    display: grid;
    grid-template-columns: 1fr;

    gap: 20px;

    animation: wobble 1.3s ease-in-out forwards;
}

.saqQuestionInput{
    margin-top: 30px;
    margin-bottom: 30px;
    height: max-content;

    background-color: #1e2022;
    color: white;
    outline: none;
    border: none;
    padding: 20px;
    border-radius: 15px;

    font-family: "Montserrat", sans-serif;
}

.dropDownForTopics{
    background: #1e2022;
    color: white;

    font-family: "Montserrat", sans-serif;
    
    padding: 12px;
    margin: 10px;

    border-radius: 15px;
    border: none;
    outline: none;
}

#cipherContainer{
    height: max-content;
    margin-right: 10px;
    background-color: #1e2022;
    color: white;
    outline: none;
    border: none;
    padding: 15px;
    border-radius: 13px;

    font-family: "Montserrat", sans-serif;
}

.crPanel{
    margin: 20px;
    width: 90%;
    padding: 15px;

    border: 1px white solid;
    border-radius: 15px;

    display: grid;
    grid-template-columns: 1fr;

    gap: 20px;

    animation: wobble 1.3s ease-in-out forwards;
}

.crQuestionHint{
    height: max-content;
    margin-top: -30px;
    background-color: #1e2022;
    color: white;
    outline: none;
    border: none;
    padding: 10px;
    border-radius: 15px;

    font-family: "Montserrat", sans-serif;
}

.crQuestionPts{
    height: max-content;
    margin-top: -30px;
    background-color: #1e2022;
    color: white;
    outline: none;
    border: none;
    padding: 10px;
    border-radius: 15px;

    font-family: "Montserrat", sans-serif;
}

/*CSS for every single codebusters*/
.shiftInput{
    height: max-content;

    background-color: #1e2022;
    color: white;
    outline: none;
    border: none;
    padding: 10px;
    border-radius: 15px;
    width: 50%;

    font-family: "Montserrat", sans-serif;
}

.checkSolutions:active{
    opacity: 0.8;
}

.optionDivForCipher{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}







@media only screen and (max-width: 600px){
    :root {
        --headerHeight: 20vw;
    }

    .multipleChoiceOption{
        font-size: 4vw;
        height: 30px;
    }

    #submit{
        width: 25vw;
        font-size: 4vw;
    }

    .questionBox {
        font-size: 5vw;
    }

    .questionContainer{
        width: auto;
    }

    .answerBox {
        width: 75%;
        height: 28px;
    
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .info1{
        width: 95%;
    }

    .info1 h1{
        font-size: 5vw;
    }

    .info1 h2{
        font-size: 5vw;
    }

    .image1{
        display: none;
    }

    /*Search media query*/
    #searchMain{
        margin: 15px;
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: 120px;
        gap: 20px
    }



    .optionClass {
        font-size: 20px;
    }

    .rightOrWrongText{
        font-size: 3vw;
    }

    .categoryButton{
        display: none;
    }

    header {
        display: grid;
        grid-template-columns: 2fr 1fr;
    }
    
    form {
        margin-left: 0%;
        margin-right: 0%;
    }

    footer {
        font-size: 13px;
    }

    section{
        height: 80vw;
    }

    #lastOptionClassOnHome{
        display: none;
    }

    #optionClassHome{
        grid-template-columns: 1fr 1fr;
        padding: 10px;
    }

    #addQuestionButton{
        font-size: 10px;
    }
    
    

    #buttonForSAQ{
        font-size: 10px;
    }
    
    #buttonForPDF{
        font-size: 10px;
    }

    #cipherContainer{
        padding: 10px;
        font-size: 10px;
    }
    
}