/* 
Background: #F7F7F7
Main:       #93dfe7
Dark:       #28285f
*/

/* CSS for All Pages */
*{
    margin: 0;
    padding: 0;
    font-size: calc(1vw);
}
body{
    background-color: #F7F7F7;
    font-family: "Helvetica Neue", "Helvetica", "Roboto", "Arial", sans-serif;
    max-width: 70%;
    margin: auto;
    padding-bottom: 1em;
    margin-bottom: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 1.9);
    scrollbar-gutter: stable;
}
body::after {
    content: "";
    display: block;
    clear: both;
}
.main{
    margin: 1.5em;
}
nav {
    display: flex;
    position: relative;
    z-index: 11;
    background-color: #93dfe7;
    margin-top: 8px;
    overflow: hidden;
}
.burger {
    display: none;
}
.spin{
    animation: spin 2s ease-out;
    animation-iteration-count: 1;
}
.links{
    display: flex;
    align-items: center;
    padding: 2%;
    background-color: #93dfe7;
    margin-top: 8px;
    justify-content: space-between;
    width: 100%;
}
.links.onScreen {
    transform: translateX(0px);
}
nav a{
    text-decoration: none;
    font-weight: bold;
    padding: 7px;
    color: black;
}
nav a:hover {
    border-radius: 4px;
    background-color: #cce3e6;
}
nav .active{
    border-radius: 4px;
    background-color: #cce3e6;
}
.socials {
    display: flex;
    margin: auto;
    margin-right: 10px;
}
.socials a{
    padding: 0;
    margin: 0;
}
.socials img{
    width: 3rem;
    aspect-ratio: 1;
    align-self: flex-start;
    margin: 10px 2px;
}
.top{
    margin-top: 10px;
    height: 2px;
    background-color: darkgray;
    border: none;
}
#backToTop{
    position: fixed;
    display: none;
    bottom: 15px;
    right: 15.5%;
    background-color: #93dfe7;
    border-radius: 100%;
    width: 3em;
    aspect-ratio: 1;
    justify-content: center;
    z-index: 1000;
    border: 1px solid black;
    cursor: pointer;
}
#backToTop img{
    margin: auto;
    text-align: center;
}
hr{
    margin-top: 1em;
    margin-bottom: 1em;
}
p a{
    font-weight: bold;
    text-decoration: none;
}
.rit{
    border-color: #F76902;
    color: #F76902;
}
.classlink{
    color: #171493;
}
.gso {
    border-color: #000000;
    color: #000000;
}
.rrbb {
    border-color: #393b3d;
    color: #393b3d;
}
.toga {
    color: #171493;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes spinBack {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-720deg);
    }
}
@keyframes slideout {
    0% {
        transform: translateX(0px);
    }
    100% {
        transform: translateX(-100%);
    }
}
@keyframes slidein {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0px);
    }
}
/* Smaller Screen */
@media (max-width:1300px){
    *{
        font-size: calc(1.5vw);
    }
    body{
        max-width: 100%;
        border: none;
        box-shadow: none;
    }
    #backToTop{
        right: 5px;
    }
}
/* Smaller Screen */
@media (max-width:960px){
    *{
        font-size: calc(2vw);
    }
}
/* Mobile */
@media (max-width:480px){
    *{
        font-size: calc(3vw);
    }
    nav{
        overflow: visible;
    }
    .burger{
        font-size: calc(6vw);
        margin-top: .5rem;
        cursor: pointer;
        background: #cce3e6;
        aspect-ratio: 1;
        color: black;
        z-index: 10; 
        background-color: #93dfe7;
        user-select: none;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        width: min(5vh, 5vw);
        height: min(5vh, 5vw);
        padding: 2%;
        border-radius: 50%;
    }
    .links{
        position: absolute;
        top: 3.5rem;
        display: block;
        width: 50%;
        margin-top: 1em;
        z-index: 5;
        border: 2px solid black;
        border-top: none;
        transform: translateX(-100%);
    }
    .navLink{
        padding: 1%;
        margin: 1rem;
        width: 100%;
    }
}