@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


html{
    --text-primary: #000000;
    --text-secondary: rgba(0, 0, 0, 0.75);
    --text-tertiary: rgba(0, 0, 0, 0.6);
    --text-quaternary: rgba(0, 0, 0, 0.38);
    --white-primary: rgb(255, 255, 255);
    --white-secondary: #f6f7f9;  
    --white-tertiary: #eaeff4;
    --bio-header: #ff6347 ;
    --bio-header2: #ffe4e1;
    --chemistry-header:#24ca9e;
    --chemistry-header2: #dffff2;
    --physics-header: #7b68ee; 
    --physics-header2: #eeeefc;
    --compsc-header: #2d7090; 
    --compsc-header2: #eaf1f5;
    font-size: 18px;
    scroll-behavior: smooth;
}

.physics-theme {
    --text-header: var(--physics-header);
    --text-header2: var(--physics-header2);
}

.biology-theme {
    --text-header: var(--bio-header) ;
    --text-header2: var(--bio-header2) ;
}

.chemistry-theme {
    --text-header: var(--chemistry-header);
    --text-header2: var(--chemistry-header2);
}

.compsc-theme {
    --text-header: var(--compsc-header);
    --text-header2: var(--compsc-header2);
}


body{
    padding: 0;
    border: 0;
    margin: 0;
    width: 100%;
    min-height: 100%;
    background: var(--white-primary);
    overflow: overlay;
    scroll-behavior: smooth;
}

header{
    display: flex;
    position: fixed;
    top: 0;
    width: 100%;
    height: 50px;
    padding: 10px 1px;
    background-color: white;
    z-index:2 ;
}

header h1{
    display: flex;
    margin: auto 20px auto auto;
    padding-right: 50px;
    text-align: right;
}

ion-icon{
    z-index: 0;
}

.btn{
    display: flex;
    flex-wrap:wrap;
    box-sizing: border-box;
    width: 170px;
    height: 45px;
    margin: 0px 0 50px;
    border: 3px solid var(--text-header);
    border-radius: 10px;
    background-color: var(--text-header2);
    color: var(--text-header);
    font-family: 'josefin sans';
    font-weight: 500;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    cursor: pointer;
}

.btn p{
    margin: auto 10px;
    text-align: center;
    font-size: 1.2rem;
    text-transform: capitalize;
    flex: 0.7;
}

.btn ion-icon{
    font-size: 2.5rem;
    transition: 0.7s;
    padding: 5px;
    flex:0.3 ;
    min-width: 20px;
}

.btn:hover ion-icon{
    transform: rotate(-90deg);
}

header .imgcontainer{
    margin: 0 10px;
    flex: 0.7;
    text-align: right;
}




main{
    font-family:'poppins';
    color: var(--text-primary);
    width: 80%;
    max-width: 110vh;
    min-width: 30vh;
    box-sizing: border-box; 
    height:min-content;
    padding: 0px 20px;
    margin: 100px auto 200px;
}

.def{
    font-family:'poppins';
    color: var(--text-primary);
    max-width: 80vh;
    min-width: 20vh;
    background-color: #f8f8f8;
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
    border-radius: 20px;
    height:min-content;
    padding: 30px;
    margin: 20px auto 80px;
    transition: 1s;
    white-space: pre-line;
}

.def:hover{
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    background-color: var(--white-primary);
}

.suggestion{
    height: 50px;
    width: 90%;
    border-bottom: var(--white-tertiary) 0.5px solid;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: 1s;
}

.suggestion ion-icon{
    color: var(--text-header);
    display: block;
    margin: auto;
    padding: 0;
}

.suggestion button{
    background-color: var(--text-header2);
    margin: auto 20px 10px auto;
    font-size: 20px;
    border-radius: 20px;
    border: 0px none;
    color: var(--text-header);
    width: 30px;
    height: 30px;
    padding: 0;
    transition: 1s;
    cursor: pointer;
}


.suggestion:hover button{
    transform: rotate(360deg);
    background-color: var(--white-primary);
}

.suggestion:hover{
    background-color: var(--text-header2);
}

.linkbox{
    display: flex;
    padding: 10px 0px;
    overflow-x: scroll;

}

.linkbox::-webkit-scrollbar {
    display: none;
}

.linkbox button{
    display: flex;
    padding: 15px;
    margin: 5px 20px 10px 0;
    background-color: var(--text-header2);
    font-size: 1rem;
    font-family: 'josefin sans';
    font-weight: 600;
    border-radius: 10px;
    border: 3px solid var(--text-header);
    color: var(--text-header);
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    cursor: pointer;
    transition: 0.5s;
}

.linkbox button:hover{
    background-color: var(--white-primary);
}

.linkbox ion-icon{
    color: var(--text-header);
    display: block;
    margin: auto;
    padding:0 15px 0 0;
}

main h2{
    margin:50px 0px 5px;
    text-transform: capitalize;
}

main h1{
    font-family: 'josefin sans';
    text-transform: capitalize;
    color: var(--text-header);
    padding-top: 50px;
}

main strong{
    margin: 20px 0;
    color: var(--text-secondary);
    text-transform: capitalize;
}

main p{
    text-align: justify;
    white-space: pre-line;
    font-size: 1rem;
    margin: 0px;
}

main span{
    color: var(--text-tertiary);
    padding: 0 2px;
}

main em{
    font-style: normal;
    font-weight: 500;
    color: var(--text-header);
    background-color: var(--text-header2);
    /* text-decoration: underline; */
    cursor: pointer;
    transition: 0.41s;
    padding: 3px 10px;
    margin: 5px;
    border-radius: 7px;
    line-height: 30px;
}

main em:hover{
    letter-spacing: 0px;
}



::selection {
    background: var(--text-header2);
}

main img{
    margin: 0px auto;
    width: 100%;
    max-width: 350px;
    padding:10px;
    border-radius: 10%;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.9rem;
}

td, th{
    padding: 10px;
    border-bottom: 1px solid var(--text-quaternary);
}

footer{
    display: block;
    position: relative;
    bottom: 0%;
    width: 100%;
    z-index: 0;
    /* background-color: var(--white-tertiary); */
    background-image: radial-gradient( circle 369px at -2.9% 12.9%,  rgba(247,234,163,0.2) 0%, rgba(236,180,238,0.2) 46.4%, rgba(163,203,247,0.2) 100.7% );
}

footer .footerbox{
    display: flex;
    padding: 40px 0px 120px 5%;
}

footer .merriam{
    height: 50px;
    width: 50px;
}

footer p{
    margin: auto 10px;
    color:var(--text-secondary);
    font-family: josefin sans;
    font-size: 1.1rem;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}


nav{
    width: 100%;
    position: fixed;
    display: block;
    bottom: 0;
    margin-bottom: 10px;
    background: transparent;
    z-index: 1;
    justify-content: center;
}

nav .flexbox{
    justify-content: center;
    display: flex;
    width: 100%;
}

nav form{
    width: 100%;
    max-width: 65vh;
    min-width: 40vh;
    border-radius: 30px;
    border: 0;
    background: var(--white-tertiary);
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    align-items: center;
    display: flex;
}

nav input{
    font-family: josefin sans;
    font-size: 1.2rem;
    color: var(--text-secondary);
    width: 90%;
    padding-left: 20px;
    background: transparent;
    border: none;
}

nav ion-icon{
    margin: 15px;
    display: block;
    color: var(--text-quaternary);
    font-size: 1.2rem;
}

nav .cancelbutton{
    border-radius: 50%;
    color: var(--text-tertiary);
    background: var(--white-secondary);
    width: 24px;
    height: 20px;
    cursor: pointer;
}

nav input:focus{
    caret-color: var(--text-header);
    outline:none;
    appearance: none;
}

nav input::placeholder{
    font-size: 1.1rem;
    color:var(--text-secondary);
    padding-left: 0px;
    opacity: 0.75;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-decoration { display: none; }


nav button{
    display: block;
    width: 65px;
    box-sizing: border-box;
    margin: 0 7px;
    border: none;
    background-color: var(--text-header);
    color: var(--white-primary);
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    cursor: pointer;
}

nav button ion-icon{
    color: var(--white-tertiary);
    margin: auto;
    font-size: 30px;
    --ionicon-stroke-width: 55px;
}


#predictwrapper{
    margin: 0px auto ;
    padding: 3px 0px;
    width: 100%;
    height: 28px;
    max-width: 75vh;
    min-width: 40vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

#predictbox{
    width: 1000px;
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
    z-index: 1;
    /* background: rgba(255, 255, 255, 0.8) */
}

#predictbox:-webkit-scrollbar {
    display: none;
}

#predictbox #predicted {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    width: max-content;
    max-width: 300px;
    padding: 3px 10px;
    margin-right: 5px;
    color: var(--text-header);
    background: var(--text-header2);
    border-radius: 20px;
    white-space: nowrap;
    font-size: 0.75rem;
    font-family: 'Josefin sans';
    font-weight: 650;
    box-shadow: rgba(99, 99, 99, 0.1) 0px 2px 8px 0px;
    cursor: pointer;
    transition: 0.5s;
}

#predictbox #predicted:hover {
    color: var(--text-header2);
    background: var(--text-header);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}


::-webkit-scrollbar {
    width: 9px;
    margin-right: 50px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(250, 24, 239, 0);  
    border-radius: 20px;                        
}


/* QQ homepage */
.banner h1{
    font-size: 2.5rem;
    font-family: 'Josefin sans';
    border-radius: 5px;
    padding: 15px;
    margin: 20px;
    color: var(--text-primary);
}

.banner h1:nth-child(1){
    color:var(--compsc-header);
    background-color:var(--compsc-header2);
    text-decoration: underline;
}

.banner h1:nth-child(4){
    color:var(--physics-header);
    background-color:var(--physics-header2);
    text-decoration: underline;
}

.banner h1:nth-child(2){
    color: var(--chemistry-header);
    background-color: var(--chemistry-header2);
    text-decoration: underline;
}

.banner h1:nth-child(3){
    color: var(--bio-header);
    background-color: var(--bio-header2);
    text-decoration: underline;
}

.menu{
    display: block;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.menubox{
    display: flex;
    margin: auto;
    justify-content: center;
    align-items: center;
}

.menubox .btn{
    font-size: 30px;
    width: 30%;
    height: 150px;
    margin: 10px;
}

.menu .btn p{
    font-size: 1.5rem;
    text-transform: capitalize;
    padding: 5px;
    font-weight: 600;
}

#menubtn3{
    background-color: var(--physics-header2);
    color: var(--physics-header);
    border: 3px solid var(--physics-header);
}

#menubtn1{
    background-color: var(--bio-header2);
    color: var(--bio-header);
    border: 3px solid var(--bio-header);
}

#menubtn2{
    background-color: var(--chemistry-header2);
    color: var(--chemistry-header);
    border: 3px solid var(--chemistry-header);
}

#menubtn4{
    background-color: var(--compsc-header2);
    color: var(--compsc-header);
    border: 3px solid var(--compsc-header);
}

.arrow{
    position: absolute;
    left: 350px;
    top: 1295px;
    width: 70px;
    rotate: 340deg;
    opacity: 0.3;
    z-index: 3;
    /* background: cyan; */
}

.menu b{
    position: absolute;
    left: 330px;
    top: 1370px;
    width: 70px;
    rotate: 10deg;
    font-family: "poppins";
    font-size: 15px;
    color: var(--text-tertiary);
}

/* QQ about us */
.avatar{
    border-radius: 50%;
    width: 150px;
    margin-top: 30px;
}

.about h3{
    font-family: 'josefin sans';
    margin: 0;
    color: var(--text-primary);
}

.about h2{
    margin: 70px 0px 10px;
    color: var(--text-secondary);
}

.about p{
    padding: 5px 0px 0px;
}





@media only screen and (max-width: 500px) {
    /* For mobile phones: */
    html{
        font-size: 15px;
    }

    body{
        width: 100%;
        padding: 0;
        margin: 0;
    }

    nav{
        padding: 10px;
    }


    nav form{
        margin-bottom: 5px;
        width:70%;
        min-width: 0px;
    }

    nav input{
        font-size: 1.6rem;
    }

    nav .flexbox{
        height: 70px;
    }

    nav 

    nav button{
        height: 55px;
        width: 55px;
    }

    #predictwrapper{
        height: 60px;
    }

    #predictbox #predicted {
        height: 50px;
        max-width: 500px;
        padding: 0px 15px 0px;
        font-size: 1.1rem;
        line-height: 40px;
        text-align: center;
        vertical-align: middle;
    }

    
    
    main{
        padding: 10px 7% 300px;
        width: 100%;
    }
    
    .mobilebutton{
        position: absolute;
        top: 3%;
        left: 65%;
    }

    .contextmenu{ 
        width: 60px;
        height: 40px;
        font-size: 18px;
    }

    .menu .btn{
        writing-mode: vertical-lr;
        text-orientation: mixed;
        height: 200px;
        width:40%;
        font-size: 40px;
    }
}
