@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /* --lightred: hsl(0, 100%, 32%); */
    --lightblue: rgb(0, 0, 191);
    /* --lightestred: hsl(0, 94%, 87%); */
    --lightestblue: hsl(191, 94%, 87%);
}

body {
    /* background-color: rgb(36, 36, 36); */
    /* color: antiquewhite; */
    font-family: Montserrat;
    justify-content: center;
    text-align: center;
    margin: 0%;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 1366px) {
    body {
        font-size: 1.2em;
    }
}
@media (min-width: 1367px) {
    body {
        font-size: 1.3em;
    }
}
@media (min-width: 1464px) {
    body {
        font-size: 1.45em;
    }
}
@media (min-width: 1465px) {
    body {
        font-size: 1.68em;
    }
}

#content {
    /* filter: invert(1); */
    height: 100%;
    margin-top: 1%;
    align-items: center;
    justify-content: center;
}

sub {
    font-size: 1.65em;
    color: rgb(149, 149, 149);
}

#text-body {
    border-radius: 10px;
    text-align: justify;
    max-width: 43%;
    padding: 1%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5%;
    /* background-color: #eeeeee; */
    background-color: #e4fbfd;
}
@media (max-width: 768px) {
    #text-body {
        max-width: 90%;
    }
}

#text-body h1 {
    margin-left: auto;
    margin-right: auto;
}

#text-body h3 {
    margin-left: 2%;
    margin-right: 2%;
    margin-bottom: 0em;
}

#text-body sub {
    color: rgb(117, 117, 117);
    margin-left: 2%;
    margin-right: 2%;
    margin-top: 0.15em;
    font-size: 0.75em;
}

#text-body p {
    margin-left: 2%;
    margin-right: 2%;
    font-size: 0.85em;
}

nav {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    /* background-color: darkred; */
    background-color: darkblue;
    height: 1in;
    top: 0px;
    position: sticky;
    z-index: 3;
}

.navbar-elem {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-decoration: none;
    /* color: antiquewhite; */
    color: aqua;
    padding-left: 0.5em;
    padding-right: 0.5em;
    transition: background-color 200ms;
}

.drop-down {
    display: flex;
}

.drop-down:hover {
    cursor: pointer;
    background-color: var(--lightblue);
}

.mobile-drop-down {
    position: fixed;
    width: 100%;
    z-index: 2;
    animation: 500ms 1 ease-out mobile-drop-down-drop;
    animation-fill-mode: both;
}
@keyframes mobile-drop-down-drop {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0%);
    }
}

.drop-down-elems-wrapper {
    position: relative;
    z-index: -4;
}

.drop-down-elems {
    position: absolute;
    width: 230px;
    height: 100px;
    top: 0px;
    left: 0px;
    display: none;
    border-style: solid;
    border-color: darkblue;
    border-radius: 8px;
    flex-direction: column;
    animation: 4000ms 1 linear drop-down-drop;
    animation-fill-mode: both;
}
@keyframes drop-down-drop {
    from {
        transform: translateY(0%);
    }
    to {
        transform: translateY(100%);
    }
}

.drop-down-elem {
    background-color: darkblue;
    width: 100%;
    /* height: 100%; */
    justify-content: left;
    text-align: left;
    align-items: left;   
    transition: background-color 200ms;
}

.drop-down-elems .drop-down-elem:hover {
    background-color: var(--lightblue);
}

.drop-down-elem.mobile {
    min-height: 40px;
}

nav a:hover {
    /* NOTE: I want to use the `from` relative
    color syntax, but it doesn't seem to be
    supported by Firefox?? */
    background-color: var(--lightblue);
}

nav a.mobile {
    display: none;
    background-color: red;
}

#site-logo {
    width: 30px;
    height: auto;
    float: left;
    filter: invert(1);
}

#site-title {
    text-decoration: none;
    color: aqua;
    padding-left: 0.5em;
    padding-right: 0.5em;
    min-width: 250px;
    max-height: 72px;
}
@media (max-width: 768px) {
    #site-title {
        margin-right: -2%;
    }
}
@media (min-width: 769px) {
    #site-title {
        margin-right: 2%;
    }
}
@media (min-width: 1040px) {
    #site-title {
        margin-right: 10%;
    }
}
@media (min-width: 1700px) {
    #site-title {
        margin-right: 30%;
    }
}

/*FIX*/
#site-title:hover + #site-logo {
    animation: 750ms 2 alternate logo-rotate;
}
@keyframes logo-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(90deg);
    }
}

#site-title:hover {
    background-color: darkblue;
}

#hamburger {
    z-index: 4;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    padding: 2px;
}

#hamburger:checked {
    animation: 750ms 2 alternate hamburger-rotate;
}
@keyframes hamburger-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(45deg);
    }
}

.hamburgerSlice {
    z-index: 5;
    margin: 4px;
    width: 100%;
    height: 5px;
    background-color: antiquewhite;
    border-radius: 15px;
}

#hamburger-menu {
    display: flex;
    flex-direction: column-reverse;
}

.slider-wrapper {
    width: 55%;
    height: auto;
    margin: auto;
}
@media (max-width: 768px) {
    .slider-wrapper {
        width: 75%;
    }
}

.slider-wrapper * {
    z-index: 1;
}

.animate-enter-from-left {
    animation-duration: 1s;
    animation-name: enter-from-left;
    animation-timing-function: cubic-bezier(.09,.08,.19,.96);
}
@keyframes enter-from-left {
    0% {
        translate: 100%;
        opacity: 0%;
    }
    75% {
        opacity: 40%;
    }
    100% {
        translate: 0%;
        opacity: 100%;
    }
}

.animate-enter-from-bottom {
    opacity: 0%;
    animation-duration: 1s;
    animation-name: enter-from-bottom;
    animation-timing-function: cubic-bezier(.09,.08,.19,.96);
    animation-fill-mode: forwards;
}
@keyframes enter-from-bottom {
    0% {
        transform: translateY(100%);
        opacity: 0%;
    }
    75% {
        opacity: 40%;
    }
    100% {
        transform: translateY(0%);
        opacity: 100%;
    }
}

table {
    border-style: solid;
    border-color: #b1b1b1;
    border-width: 2px;
    border-spacing: 0px;
    border-collapse: separate;
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
}

table.mobile {
    width: 100% !important;
    /* min-height: 100% !important; */
}

table#schedule {
    width: 46em;
}

table#tuition {
    width: 16.5em;
}

th {
    border-bottom: solid;
    border-color: #b1b1b1;
}

#schedule th {
    width: 7em;
}

#calendar th {
    border-top-width: 2px;
    background-color: #dfdfdf;
}

/* https://stackoverflow.com/a/47318412 */

#schedule tr:first-of-type {
    border-top-left-radius: 12px;
}
#schedule tr:last-of-type {
    border-top-right-radius: 12px;
}
#schedule tr:last-of-type td:last-of-type {
    border-bottom-right-radius: 12px;
}

th.currentDay {
    background-color: var(--lightblue);
    color: antiquewhite;
}

tr:nth-child(odd) {
    background-color: #ebebeb;
}

tr:nth-child(even) {
    background-color: #dfdfdf;
}

#calendar tr {
    background-color: #ebebeb;
}

td {
    padding: 10px;
}

.mobile td {
    padding: 5px;
}

td.currentDayOdd {
    background-color: var(--lightestblue);
}

td.currentDayEven {
    background-color: hsl(224, 80%, 90%);
}

hr {
    width: 75%;
    color: rgb(182, 36, 36)
}

#sidebar {
    width: 25%;
    height: 100%;
    background-color :rgb(149, 72, 72);
    float: left;
    border-radius: 8px;
    margin-right: 1%;
    padding-bottom: 100%;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
}

#gallery {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 768px) {
    #gallery {
        margin-top: 20px;
    }
}

.gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.gallery-photo {
    display: flex;
    margin: 1%;
}
@media (max-width: 768px) {
    .gallery-photo {
        margin: 7%;
    }
}

.gallery-photo img {
    height: 200px;
}

.gallery-photo img:hover {
    cursor: pointer;
}

.gallery-photo-enlarged {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.624);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /* inset: 0% 100% 100% 0%; */
    display: flex;
    align-items: center;
    opacity: 0%;
    animation-duration: 250ms;
    animation-name: open-enlarged-photo;
    animation-fill-mode: forwards;
}
@keyframes open-enlarged-photo {
    from {
        opacity: 0%;
    }
    to {
        opacity: 100%;
    }
}

.animate-close-gallery-photo-enlarged {
    opacity: 0%;
    animation-duration: 250ms;
    animation-name: close-enlarged-photo;
    animation-fill-mode: forwards;
}
@keyframes close-enlarged-photo {
    from {
        opacity: 100%;
    }
    to {
        opacity: 0%;
    }
}

.gallery-photo-enlarged .photo {
    width: auto;
    height: 75%;
    margin: auto;
}
@media (max-width: 768px) {
    .gallery-photo-enlarged .photo {
        height: 30%;
    }
}

.gallery-photo-enlarged .photo .close-button {
    color: antiquewhite;
    cursor: pointer;
    position: absolute;
    z-index: 6;
    text-align: right;
    right: 0;
    font-size: 3em;
}

.gallery-photo img {
    transition: opacity 750ms;
    background-color: black;
    border-style: dotted;
    border-width: 2px;
    border-color: antiquewhite;
    display: block;
}

.gallery-photo img.rotate1 {
    transform: rotate(4deg);
}

.gallery-photo img.rotate2 {
    transform: rotate(349deg);
}

.gallery-photo img.rotate3 {
    transform: rotate(11deg);
}

.gallery-photo:first-of-type {
    margin-left: 0;
}

.gallery-photo:last-of-type {
    margin-right: 0;
}

iframe {
    max-width: 100%;
}

footer {
    /* background-color: #eeeeee; */
    background-color: #e4fbfd;
    margin-top: 2%;
    height: 15%;
    width: 100%;
    justify-content: center;
    font-size: large;
    display: flex;
    /* flex-direction: row; */
}

footer.mobile {
    font-size: medium;

}

.footer-field {
    width: 25%;
    margin: 2%;
}

footer.mobile .footer-field {
    width: 50%;
}

.footer-text {
    margin-left: 25%;
    text-align: left;
}

footer.mobile .footer-text {
    margin-left: 0%;
}

form {
    margin-left: auto;
    margin-right: auto;
    height: 20em;
    width: 23em;
    display: flex;
    flex-direction: column;
    font-size: 1.15em;
    align-items: center;
    text-align: center;
    border-radius: 75px;
    border-style: solid;
    border-width: 2px;
    border-color: rgb(206, 206, 206);
    background-color: rgb(245, 245, 245);
    padding: 1%;
}

.field {
    text-align: left;
    margin: auto;
    margin-bottom: 5%;
    width: 75%;
}

label {
    margin-left: 1.5%;
}

input {
    font-family: Montserrat;
    padding-left: 1.5%;
    font-size: 1em;
    height: 55%;
    width: 100%;
    border-style: solid;
    border-color: rgb(206, 206, 206);
    border-radius: 20px;
}

textarea {
    padding-top: 1.5%;
    padding-left: 1.5%;
    border-style: solid;
    border-color: rgb(206, 206, 206);
    border-radius: 20px;
    font-family: Montserrat;
    font-size: 1em;
    resize: none;
    width: 100%;
    height: 7em;
}

textarea:focus, input:focus {
    outline: none;
    border-color: darkblue;
    transition: border-color 0.2s;
}

#submit {
    font-size: 1.15em;
    padding-left: initial;
    width: 5em;
    height: auto;
    margin-top: auto;
    margin-bottom: auto;
    border-radius: 10px;
    color: black;
    background-color: white;
    transition: background-color 0.2s;
}

#submit:hover {
    cursor: pointer;
    background-color: rgb(235, 235, 235);
}

#submit:after {
    cursor: pointer;
    background-color: rgb(235, 235, 235);
    transition: background-color 0.2s;
}