/*** VARIABLES ***/

:root {
    --blue: #75d8ff;
    --blueTransp: #75d8ff75;
    --darkGreen: #41bf6b;
    --green: #91DFAB;
    --greenTransp: #91DFAB75;
    --red: #F0553F;
}

/*** FONTS ***/

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Regular.ttf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Bold.ttf');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Italic.ttf');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-BoldItalic.ttf');
    font-weight: bold;
    font-style: italic;
}

/*** TAGS ***/

a {
    text-decoration: none;
    display: inline-block;
    margin: auto;
}

body {
    line-height: 1.75;
    background-color: var(--greenTransp);
}

button {
    margin: 10px auto;
    padding: 10px 20px;
    border-radius: 40px;
    background-color: var(--blue);
    border: none;
    color: black;
    transition: all 0.3s;
}

button:active {
    color: white;
    transition: all 0.3s;
}

button:hover {
    cursor: pointer;
}

details {
    padding: 10px 30px 0px 30px;
}

h1 {
    font-size: 32px;
    padding-top: 60px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4, p, b, i, input, textarea, select, label, button {
    font-size: 16px;
}

header {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 900;
    padding: 1rem 1rem 0 1rem;
    background-image: linear-gradient(white, white, white, rgba(255,255,255,0));
    width: 100%;
    height: 70px;
}

iframe {
    display: block;
    margin: 20px auto;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
    width: calc(100% - 100px);
    min-height: 300px;
    border: none;
    border-radius: 12px;
}

label {
    font-weight: bold;
}

li {
    padding: 5px;
}

main {
    padding: 0 32px 32px 32px;
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
}

section {
    max-width: 700px;
    margin: 0 auto;
}

section div {
    display: flex;
    flex-direction: column;
}

select {
    margin: 10px 0;
}

small {
    font-size: 13px;
}

summary {
    list-style-position: outside;
    padding: 0px 0px 10px 20px;
}

summary:hover {
    cursor: pointer;
}

textarea {
    width: calc(100% - 30px);
    height: 200px;
    padding: 15px;
    margin: 10px 0;
    resize: vertical;
}

video {
    width: 100%;
    margin: 20px auto;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
    border-radius: 12px;
    background: black;
}

body, html {
    margin: 0px;
    padding: 0px;
    min-height: 100%;
    width: 100%;
    overscroll-behavior: auto;
    overflow-x: hidden;
}

body, h1, h2, h3, h4, p, a, button, input, select, textarea, b, i {
    font-family: 'Poppins', BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

button:hover, .dropdown:hover, .resource:not(.highlight):hover, video:hover, section.video iframe:hover, section.slides iframe:hover {
    box-shadow: 2px 4px 3px 2px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
    will-change: transform;
    transition: all 0.3s;
}

h1, h2, h3, h4, button, p.center {
    text-align: center;
}

input, select {
    width: 100%;
    padding: 8px;
    color: black;
    background-color: white;
}

input, select, textarea {
    box-shadow: 0 2px 14px rgba(0,0,0,0.2);
    border: 1px solid #dddddd;
    border-radius: 10px;
}

label, input {
    margin: 5px 0px;
}

ul, ol {
    margin: 0;
}

/*** CLASSES ***/

body.doc {
    background-color: white;
}

body.references p {
    overflow-wrap: break-word;
    width: 100%;
}

button.inline {
    box-shadow: none;
    cursor: default;
    padding: 5px 20px;
    font-size: 14px;
    margin: 0;
}

button.inline:hover {
    transform: none;
}

div.btn {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

div.btns button, button.btns {
    width: 225px;
    height: 50px;
}

div.centered-link {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 0px 10px;
}

div.li {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

div.li img.inline.line-start {
    width: 30px !important;
}

h2.subcategory, h2.home-cats {
    background-color: var(--red);
    color: white;
    scroll-margin-top: 100px; /* adds vertical offset for anchor links */
}

h2.home-cats {
    margin: 50px auto 20px auto;
    width: calc(100% - 100px);
}

iframe.doc {
    width: 100vw;
    height: 100vh;
    margin: 0px;
    padding: 0px;
    border-radius: 0px;
    overscroll-behavior: none;
    overflow: hidden;
}

iframe.sitemap {
    height: 500px;
    margin: 0px auto;
}

img.external-icon {
    height: 15px !important;
}

img.inline {
    height: 30px;
    object-fit: contain;
}

img.inline.line-start {
    margin: 0 10px 0 0px !important;
}

img.inline.line-end {
    margin: 0 0 0 20px !important;
}

img.inline.text {
    margin: 5px 0px !important;
    padding: 0 !important;
}

p.btn {
    color: black;
    padding: 0;
    margin: 0;
    text-align: center;
}

section.cat-btns {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
}

section.cat-btns a {
    display: inline-block;
    width: fit-content; /* or maybe max-content? */
}

section.equal-btns {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

section.equal-btns button {
    display: block;
    width: 200px;
    margin: 10px auto;
}

section.hor-scroll {
    display: flex;
    flex-direction: row;
    flex-wrap: no-wrap;
    overflow-x: auto;
}

section.hor-scroll div.resource {
    width: 100%;
}

section.references {
    text-indent: -36px;
    padding-left: 36px;
}

small img.inline, button.inline img {
    height: 24px;
}

.btns div.centered-link, .btns div.centered-link a, .btns button, .btns div.btn {
    width: calc(100% - 10px) !important;
}

.card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: auto;
    height: 100%;
}

.card div.site-img {
    width: 100%; /* parent width: calc(100% - 64px) */
    aspect-ratio: 2920 / 1654; /* width / height */
    object-fit: cover;
    border-radius: 0px 0px 12px 12px; /* top-left top-right bottom-right bottom-left */
}

.card div.text {
    background-color: var(--blueTransp) !important;
    width: 100%;
    padding: 10px 40px;
    border-radius: 12px 12px 0px 0px;
}

.card div.text > * {
    text-align: left !important;
    margin: 5px 0px;
}

.card img:not(button img) {
    width: 300px;
    display: block;
    margin: 0 auto;
    padding: 30px 20px;
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none;
}

.inline {
    display: inline;
    margin: 0px 5px !important;
    vertical-align: middle;
}

.leaflet-container {
    background-color: var(--darkGreen) !important;
}

.leaflet-marker-icon {
    width: 200px;
    height: 200px;
}

.popup {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.popup button {

    width: 175px;
}

.resource {
    width: calc(100% - 64px);
    background-color: white;
}

.resource a {
    display: block;
    width: 100%;
    height: 100%;
}

.resource div.text > * {
    color: black;
}

.resource, .dropdown {
    border-radius: 12px;
    margin: auto;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
    transition: all 0.3s;
}

.resource.highlight, .resource.highlight div.text, .resource.highlight div.site-img {
    border-radius: 0px;
}

.resources {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/*** IDS ***/

#date-time {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background-color: white;
    border: none;
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.2);
    padding: 10px;
    opacity: 0.7;
}

#highlights {
    margin: 0px auto;
}

#map {
    height: 100vh;
    width: 100vw;
}

#map-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

#map-nav img {
    width: 50px;
    height: 50px;
    opacity: 0.7;
    transition: all 0.3s;
}

#map-nav img:hover {
    opacity: 1;
    transform: scale(1.1);
    transition: all 0.3s;
}

/*** MEDIA QUERIES ***/

@media screen and (max-width: 865px) {
    main {
        width: calc(100vw - 64px);
    }
}