* {
    margin: 0;
    padding: 0;
}

html {
    overflow: hidden;
}

body {
    font-family: "Open Sans", sans-serif;
    background: #8d99ae;
    display: flex;
    flex-direction: column;
}

#box-container {
    height: 90vh;
}

#entry-fields-container {
    overflow: hidden;
    background: white;
    border-width: 0px;
    position: absolute;
    box-sizing: border-box;
    right: -40vw;
    top: 10vh;
    z-index: 1001;
    border: 10px solid rgb(0,33,165);
    box-shadow: 0 2px 5px 0 black;
    border-radius: 0px;
    height: 90vh;
    width: 34vw;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: baseline;
    gap: 3vh;
}

#entry-fields-container h1{
    text-align: center;
    height: fit-content;
    margin: auto;
}

.btn1-class{
    z-index: 1000;
    height: fit-content;
    width: fit-content;
    min-width: calc(2vw + 15px);
    padding: 15px;
    border: none;
    font-size: 1vw;
    font-weight: 600;
    font-family: Helvetica;
    color: white;
    background: rgba(0,33,165, .8);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.7);
    border-radius: 25px;
    transition: transform .4s ease;
    transform: scale(1);
    position: absolute;
    top: 2.5%;
    right: 3.5%;
}

.help-container-class{
    padding: 15px;
    height: 80%;
    width: 80%;
    background-color: white;
    border: 8px solid rgba(0,33,165, .8);
    border-radius: 50px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.7);
    z-index: 1002;
    position: absolute;
    top: 10%;
    right: -110%;
    transition: right .4s ease;
}

.help-container-shift{
    right: 6%;
}

.double-input-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.double-input-container > div{
    width: 48%;
}

#entry-fields-container > div{
    width: 80%
}

#entry-fields-container h1{
    margin: 3vh auto 0 auto;
    color: rgb(0,33,165);
}

#entry-fields-container label{
    font-size: 2vh;
    font-weight: 500;
    color: rgb(0,33,165);
}

.sort-button {
    z-index: 1000;
    height: fit-content;
    width: fit-content;
    min-width: calc(2vw + 15px);
    padding: 15px;
    margin: 20px 0 25px 0;
    border: none;
    font-size: 1vw;
    font-weight: 600;
    font-family: Helvetica;
    color: white;
    background: rgba(0,33,165, .8);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.7);
    border-radius: 25px;
    transition: transform .4s ease;
    transform: scale(1);
}

.sort-button-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 8px solid rgba(0,33,165, .8);
    border-radius: 40px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.7);
    height: 20vh;
    width: 42% !important;
}

.sort-output{
    border-bottom: 1.5px solid lightgray;
    width: 55%;
    text-align: center;
}

.operations-label{
    text-align: center;
    display: block;
}

.button-loading {
    opacity: 0.5;
    position: relative;
}
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid rgb(255, 255, 255);
    border-radius: 50%;
    border-top: 4px solid rgb(0,33,165);
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

#entry-fields-container input {
    font-size: 2.5vh;
    font-family: Helvetica;
    margin: .5vh 0;
    display: block;
    width: 100%;
    border: none;
    border-bottom: 1.5px solid lightgray;
    transition: border-bottom .5s ease;
}

#entry-fields-container input:focus {
    outline: none;
    border-bottom: 1.5px solid black;
}

body.menu-open #entry-fields-container {
    right: 0;
}

#map-and-input-container {
    display: flex;
    width: 100%;
}

body.menu-open #map {
    width: 66vw;
}

#map {
    height: 90vh;
    width: 100vw;
    z-index: 1;
    transition: width 0.3s ease;
}

#header {
    height: 10vh;
    width: 100%;
    background: linear-gradient(to right, rgb(0,33,165) 60%, rgb(203, 199, 252) 100%);
    display: flex;
    flex-direction: row;
    justify-content: baseline;
    gap: 0;
    align-items: center;
    color: #ffffff;
    position: relative;
    box-shadow: 0 2px 5px 0 black;
    z-index: 1000;
}

#uf-logo{
    margin-left: auto;
    margin-right: 2vh;
    height: 80%;
}

#about-link,
#time-complexity-link {
    text-decoration: none;
    font-weight: 500;
    color: #cfcfcf;
    padding: 10px;
    text-align: center;
    margin: 0 .75vw 0 .75vw;
    transition: color .75s ease, transform .75s ease, text-decoration .75s ease;
}

#about-link:hover,
#time-complexity-link:hover {
    color: white;
    transform: scale(1.05);
    text-decoration: underline;
}

#title {
    margin: 0 1.75vw .5vh 2vw;
    text-align: center;
}

#non-address-inputs {
    display: block;
    transition: display 1s ease;
}

#address-container {
    margin: 30px auto;
    text-align: center;
}

#map{
    z-index: 1;
    display: flex;
}

#menu-toggle {
    z-index: 1000;
    height: fit-content;
    width: fit-content;
    min-width: calc(2vw + 15px);
    margin: 2vh .5vw 2vh auto;
    padding: 15px;
    border: none;
    font-size: 1vw;
    font-weight: 600;
    font-family: Helvetica;
    color: white;
    background: rgba(0,33,165, .8);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.7);
    border-radius: 25px;
    transition: transform .5s ease;
}

#menu-toggle:hover{
    cursor: pointer;
    transform: scale(1.05);
}

.top-left-buttons{
    z-index: 1000;
    height: fit-content;
    width: fit-content;
    min-width: calc(2vw + 15px);
    margin: 2vh .5vw;
    padding: 15px;
    border: none;
    font-size: 1vw;
    font-weight: 600;
    font-family: Helvetica;
    color: white;
    background: rgba(0,33,165, .8);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.7);
    border-radius: 25px;
    transition: transform .4s ease;
    transform: scale(1);
}

.top-left-buttons-clicked{
    padding: 11px;
    background: rgba(255, 255, 255, .8);
    color: rgb(0,33,165);
    border: 4px solid rgba(0,33,165, .8);
}


.custom-zoom-control {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-radius: 25px;
    color: white;
    background: rgba(0,33,165, .8);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.7);
    height: fit-content;
    width: fit-content;
}
.custom-zoom-control button {
    text-align: center;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    border-radius: 4px;
    font-size: 2vw;
    font-weight: 600;
    font-family: Helvetica;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    transition: transform .4s ease;
}
.custom-zoom-control button:hover {
    transform: scale(1.15);
}

.custom-zoom-control button:active {
    color: lightgray;
    transform: scale(0.87);
}

@media (max-width: 800px) {
    #header > * {
        font-size: 30px;
        max-height: 100%;
    }
}
