:root {

    --universalSpacer: 1.5rem;
    --fontSizeDesktop: 16px;
    --fontSizeMobile: 4vw;
    --desktopNavbarHeight: 3rem;
    --mobileNavbarHeight: 15vw;
    --navbarColor: #2a4263;
    --blueLightHighlight: #3985ab;
    --backgroundColor: #ffffff;
    --textLightColor: #ffffff;
    --boxColor: #2a4263;
    /* home button size is wrong again on thin window */
}

* {
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: var(--fontSizeDesktop);
    box-sizing: border-box;
}

html,
body {
    max-width: 100vw;
    min-height: 100vh;
}

body {
    background-color: var(--backgroundColor);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--textLightColor);
    line-height: 1.3;
}

.mobile {
    display: none;
}

.desktop {
    display: initial;
}

.grid-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: var(--universalSpacer);
    margin-top: var(--desktopNavbarHeight);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--universalSpacer);
    width: 85vw;
}

main {
    gap: 4rem;
}

#schedule li {
    margin-bottom: 0.25rem;
}

section {
    scroll-margin-top: calc(var(--desktopNavbarHeight) + (var(--universalSpacer) / 2));
}

header {
    height: var(--desktopNavbarHeight);
}

footer {
    display: flex;
    flex-direction: column;
    position: relative;
}

footer>* {
    margin: auto;
}

p,
a,
address,
div,
h1,
h2,
h3 {
    /* line-height: 1.5rem; */
}

h1,
h2 {
    line-height: 2rem;
}

h1 {
    font-size: calc(var(--fontSizeDesktop) * 2.25);
}

h2 {
    font-size: calc(var(--fontSizeDesktop) * 1.75);
}

h3 {
    font-size: calc(var(--fontSizeDesktop) * 1.1);
}

p,
li,
a,
address {
    font-size: calc(var(--fontSizeDesktop) * 1);
}

a {
    color: white;
}

ul,
ol {
    list-style: none;
}

.box h1,
.box h2,
.box h3,
a,
p,
address,
div {
    font-weight: normal;
}

img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    height: auto;
}

address {
    font-style: normal;
}

.box .heading-addon,
.box .date {
    margin: auto 0 0 auto;
    font-size: calc(var(--fontSizeDesktop) * 0.8);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2rem;
}

#copyright address>p {
    padding-bottom: 0;
    margin-bottom: 0;
}

.dropdown-group a:hover {
    background-color: white;
    color: black;
}

.grid-sub {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--universalSpacer);
}

.no-grid {
    gap: var(--universalSpacer);
    display: flex;
    flex-direction: column;
}

.full-width-row {
    grid-column: 1 / -1;
}

#logo-time-address {
    display: flex;
    flex-direction: column;
}

#logo-time-address p {
    width: 40rem;
    margin: auto;
    padding-top: 1.5rem;
    font-size: 1.3rem;
}

#logo,
#logo-big {
    width: auto;
    height: 10rem;
    margin: auto;
}

#logo-big {
    height: 20rem;
}


#footer-logo {
    width: 15rem;
    margin: 3rem auto;
    margin-bottom: 0.75rem;
    filter: invert(100%);
}

#hero {
    width: 100%;
    height: 30vw;
    object-position: center;
}

#how-do-i-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

#how-do-i-grid>* {
    min-height: 25rem;
}

#signature {
    margin-bottom: 0;
}

#navbar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    position: fixed;
    width: 100%;
    height: var(--desktopNavbarHeight);
    background-color: hsl(208, 72%, 30%);
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    z-index: 999;
}

.navbar-tab {
    display: flex;
    align-items: center !important;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.navbar-tab>* {
    font-size: calc(var(--fontSizeDesktop) * 1);
}

.navbar-tab img {
    height: 100%;
    width: auto
}

.navbar-tab:hover>.dropdown-group {
    display: flex;
    z-index: 999;
}

.navbar-tab:hover {
    background-color: var(--blueLightHighlight);
}

.dropdown-header {
    display: flex;
    margin-left: 1rem;
}

.dropdown-header img {
    padding-left: 0.3rem;
}

.dropdown-group {
    display: none;
    flex-direction: column;
    position: absolute;
    left: 0;
    top: var(--desktopNavbarHeight);
    width: 100%;
    background-color: hsl(208, 72%, 30%);
}

.dropdown-group>a {
    height: 3rem;
    padding: 0 0.75rem;
    font-size: calc(var(--fontSizeDesktop) * 0.9);
}

#navbar,
.dropdown-group>a {
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

#side-by-side-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
    background: white;
    gap: 3rem;
}

.square {
    aspect-ratio: 1/1;
}

#footer-link-group {
    display: flex;
    justify-content: space-around;
    width: 80%;
    margin: 0 auto;
}

#footer-link-group a {
    text-decoration: underline;
    margin-bottom: 0.5rem;
}

#footer-link-group h3 {
    padding: 1rem 0;
}

#footer-link-group nav {
    display: flex;
    flex-direction: column;
}

#copyright {
    display: flex;
    flex-direction: column;
    gap: 1rem;

}

#copyright>div {
    text-align: center;
}

#dev-info {
    margin: var(--universalSpacer);
}

.pair {
    display: flex;
}

.pair>* {
    display: flex;
    flex: 1;
    flex-direction: column;
}

#bulletin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}

#bulletin-grid img {
    object-fit: cover;
    object-position: center top;
}

.pair {
    display: flex;
    align-items: stretch;
}

.populated-list li {
    padding-left: 0;
    list-style-type: none;
    margin-bottom: calc(var(--universalSpacer) * 1.5);
}

.box .title {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid white;
    padding-bottom: 0.2rem;
}

/* .box .date,
.box .more-info-in-bulletin {
    align-content: center;
    padding-bottom: 0.1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);

} */

.wrapper-arrow {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
}

.wrapper-arrow a {
    display: flex;
    width: 100%;
    height: 100%;
}

.wrapper-arrow img {
    width: 5rem;
}

.navbar-link {
    width: 100%;
    height: 100%;
    align-content: center;
    text-decoration: none;
}

/* BOX-CONTENT */

.box {
    padding: var(--universalSpacer);
    background-color: var(--boxColor);
}

.box a {
    text-decoration: underline;
    font-weight: bold;
}

.box>h1,
.box h2 {
    margin-bottom: var(--universalSpacer);
}

.box h3,
.box p {
    margin-bottom: 1rem;
}

.box-img-right {
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.box-img-right>div {
    margin-right: var(--universalSpacer);
}

.box-img-right img {
    height: 100%;
    object-fit: cover;
    object-position: center top;
    aspect-ratio: 1;
}

#about-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.grid-item {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.grid-item img {
    position: absolute;
    left: 0;
    top: 0;
    transition: transform 0.1s ease;
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
}

.grid-item:hover img {
    transform: scale(1.1);
}

.hidden {
    display: none;
}

#lightbox {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3;
}

#lightbox-content {
    position: absolute;
    left: 50%;
    top: 50%;
    width: auto;
    height: 75vh;
    transform: translate(-50%, -50%);
}

#lightbox-content-image {
    height: 100%;
}

.unfinished {
    display: none;
}

.wrapper {
    width: 100%;
}

.disable {
    display: none;
}

#admin {
    position: absolute;
    left: 0;
    bottom: 0;
    opacity: 50%;
    text-decoration: none;
    padding: 1rem;
}

.quote {
    font-style: italic;
}

#news-group {
    display: flex;
}

#news-group>* {
    display: flex;
    flex-direction: column;
    width: 50%;
}

#news-left>* {
    height: 100%;
}

.flex-c {
    display: flex;
    flex-direction: column;
}

.align-items-center {
    align-items: center;
}

.flex-r {
    display: flex;
    flex-direction: row;
}

/* for parents of img to prevent unexpected stretching on safari */
.safarifix {
    align-items: flex-start;
}

.text-center {
    text-align: center;
}

.text-black {
    color: black;
}

.text-bold {
    font-weight: bold;
}

li {
    padding-left: 1rem;
    list-style-position: inside;
}

section ul li {
    list-style-type: square;
}

section ol li {
    list-style-type: decimal;
}

#announcement-list li {
    /* margin-bottom: calc(var(--universalSpacer) * 1.5); */
}

#notice {
    display: flex;
    flex-direction: column;
}

.margin-top {
    margin-top: var(--universalSpacer);
}

.box ul,
.box ol {
    text-align: left;
}

.box ul li:last-of-type,
.box p:last-of-type {
    padding-bottom: 0;
    margin-bottom: 0;
}

#map {
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 !important;
}

#map>iframe {
    flex-grow: 1;
    border: none;
    width: 100%;
}

.text-bigger {
    font-size: calc(var(--fontSizeDesktop) * 1.25);
}

.grid-main h2 {
    border-bottom: 3px white solid;
}

.text-left {
    text-align: left !important;
}

#announcements {
    display: flex;
    flex-direction: column;
}

#announcements>ul {
    flex: 1;
}

#announcements>a {
    padding-top: var(--universalSpacer);
}

#bulletin>h2 {
    display: flex;
    justify-content: space-between;
}

#bulletin-date {
    align-content: center;
    margin: auto 0 0 auto;
}

/* .date {
    font-size: calc(var(--fontSizeDesktop) * 1);
} */

/* .top-info>section {
    display: flex;
    flex-direction: column;
    gap: .25rem;
} */

/* .top-info h2 {
    border: none;
    margin: 1rem auto 0.25rem auto;
} */
.top-info {
    gap: var(--universalSpacer);
}

.top-info h2 {
    border-bottom: none;
}

.top-info p,
.top-info address {
    margin-top: 0.5rem;
}

.page-title {
    color: black;
    margin: var(--universalSpacer);
    margin-top: calc(var(--universalSpacer) * 2);
}