/* from glenda: add standard reset */

img {
  display: block;
  height: auto;
  max-width: 100%;
}

/* from glenda: we should change this to woff, not ttf */

@font-face {
  /* 1. Name the font whatever you like */
  font-family: 'BM HANNA_TTF';
  /* 2. Specify the path to the font file relative to the CSS file */
  src: url('fonts/BM\ HANNA_TTF\ Regular.ttf') format('truetype');
  /* Optional properties: */
  /* font-weight: normal;
  font-style: normal; */
}

html {
    background-color: #75C1CF;
    overflow-x: hidden;

    /* max-width: 1600px;
    margin: 0 auto; */
}

body {
    height: 100%;
    margin: 0;

    display: flex;
    flex-direction: column;
    min-height: 100vh;

    max-width: 1600px;
    margin: 0 auto;
    background-color: #FCFCFA;
}

main, .bg, .bg-corner {
    padding-right: 25px;
    padding-left: 25px;
    padding-bottom: 25px;

    /* max-width: 1600px; */
    /* margin: 0 auto; */

    flex: 1;
}

main {
    position: relative;
    z-index: 100;
}

/* general background */
.bg-corner {
    background-repeat: no-repeat;
    background-position: right top;
    padding: 0;
}

.bg {
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    padding: 0;
}

/* p, h1, h2, etc. */
h1 , h2, p {
    margin-left: 0;
    margin-right: 0;
}

.highlight {
    position:absolute;
    margin-top: 8px;
    margin-left: 23px;
    z-index: -1;
}

h1 {
    font-family: 'roboto';
    font-weight: 900;
    font-size: 2.24875em;
    margin-bottom: 0;
    padding-left: 10px;
    padding-right: 10px;

    padding-top: 52px;
}

.h1-div {
    position: relative;
    display: inline-block;
}

.h1-underline {
    position: absolute;
    left: -5px;
    bottom: 0;
    width: 100%;
    height: 4.5px;
}

#landing-h1 {
    font-size: 1.5625em;
}

p, .splat-text, input {
    font-family: 'anybody';
    font-weight: 600;
    font-size:  0.6875em;
    /* margin-top: -5px; */
}

h2 {
    font-family: 'roboto';
    font-weight: 900;
    font-size: 1.25em;
}

.h2-div {
    position: relative;
}

.h2-underline {
    position: absolute;
    left: -10px;
    bottom: 0;
    width: 160px;
    height: 4.5px;
    transform: scale(1.2);
}

h3 {
    font-family: 'anybody';
    font-weight: 700;
    font-size:  1.125em;
}

a {
    text-decoration: none;
}

ul {
    list-style-type: none;
}

/* navigation bar */
nav {
    position: sticky;
    top: 0;
    z-index: 2000;
    background-color: #FCFCFA;
    

    height: 65px;
    width: 100%;
}

#index-nav {
    background: linear-gradient(180deg,rgb(190, 195, 238) 25%, rgb(133, 140, 215) 100%);
}

#archive-nav, #resource-nav {
    background-color: #DECBEE;
}

#events-nav-canvas, #donate-nav-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ham {
    display: block;
    position: fixed;
    top: 25px;
    right: 20px;
    
}

.nav-links-wrapper {
    position: absolute;
    display: inline-block;
    position: absolute;
    right: 0; 
    top: 65px;
    right: 0; 
    display: none;
}

.nav-outline {
    position: block;
    width: 100%;
    height: 200px;
    z-index: 1;
    pointer-events: none;
}

.nav-links-wrapper ul {
    background-color: #FCFCFA;
    position: absolute;
    right: 0;
    padding: 20px 20px 10px 20px;
    text-align: right;
    width: calc(100% - 5px);

    margin: 0;
}

.nav-links-wrapper.active {
    display: flex;
    flex-direction: column;
}

.nav-links-wrapper ul li {
    padding-bottom: 15px;
}

nav a{
    position: relative;
    font-family: 'BM HANNA_TTF';
    font-weight: 400;
    font-style: normal;
    font-size: 0.9375em;
    display: inline-block;

    color: #000000;
}

nav a::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: -4px;

  width: calc(100% + 6px);
  height: 5px;

  background-image: url("images/nav-links-underline.svg"); 
  background-repeat: no-repeat;
  background-size: 100% 100%;

  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.underline {
    position: fixed;
    top: 62px;
    width: 100%;
    max-width: 1600px;
}

/* footer */
footer {
    background-color: #A5D3DB;
    padding-top: 40px;
    padding-bottom: 40px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 9px;
    position: relative;
    z-index: 5;
}

footer ul {
    list-style-type: none;
}

footer ul li a, .footer-contacts p {
    color: #000000;
    font-family: 'BM HANNA_TTF';
    font-size: 0.9375em;
}

.footer-contacts a {
    color: #000000;
}

.footer-contacts p a {
    text-decoration: underline;
}

.footer-contacts p {
    text-align: center;
    margin: 0;
    max-width: 400px;
}

.footer-logo {
    max-width: 200px; 
    margin: auto;
    width: 100%;
    height: auto;
    order: 1;
}

.footer-links {
    text-align: center;
    padding: 0;
    order: 3;
}

.footer-contacts {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 7px;    
    flex-direction: column; 
    order: 2;          
}

.footer-content {
    display: flex;
    gap: 11px;
 }

.footer-content div {
    /* max-width: 40px; */
    min-width: 30px;
    height: auto;
    width: 100%;
    aspect-ratio: 1/1;
    text-align: center;
    border: #000000 solid 3px;
    border-radius: 5.8px;

    display: flex;
    align-items: center;
    justify-content: center;
    
}

.footer-content div a {
    font-family: 'anybody';
    font-weight: 700;
    font-size:  0.453125em;
    height: auto;
}

/*  --------------- specific backgrounds --------------- */
#landing-bg-container, #archive-bg-container, #resource-bg-container, #events-bg-container, #donate-bg-container, #resource-form-bg-container, #event-form-bg-container {
    position: relative;
}

#landing-bg, #archive-bg, #donate-bg {
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

#landing-bg {
    background-image: url("images/landing-bg-m.svg");
    background-position: center top 50px;
}

#archive-container {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100vh;
}

#archive-bg {
    background-image: url('images/archive-bg-m.svg');
    background-position: right -10% top 5%; 
    background-size: 60%;
    /* min-height: 110%; */
}

#landing-bg-canvas, #archive-bg-canvas, #resource-bg-canvas, #events-bg-canvas, #donate-bg-canvas, #resource-form-bg-canvas, #event-form-bg-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ----------------- index page ----------------- */
/* index page: hero section */
.hero-m {
  width: 100%;
  height: auto;
  display: block;
  z-index: -1;
}

.hero-wrap {
    position: absolute;
    top: 50%;
    left: 49%;
    transform: translate(-50%, -50%);
    width: 55%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.home-logos-m {
    display: block;
    width: 235px;
    height: auto;
    z-index: 5;
}

#hero {
    position: relative;
    width: 100%;
    aspect-ratio: 400 / 251;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('images/hero-m.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.90;
    z-index: 0;
}

#hero > * {
    /* position: relative; */
    z-index: 1;
}

#hero > img {
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    aspect-ratio: 65 / 37;
    width: 7%;
    height: auto;

    animation: float-up-down 2s ease infinite;
}

.larger{}

@keyframes float-up-down {
    0% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, -5px);
    }
    100% {
        transform: translate(-50%, 0);
    }
}

.splat-text {
    z-index: 10;   
    width: 90%;
    text-align: center;
    margin: 0;
}

/* index page: welcome section */
.h1-highlight {
    position: absolute;
    left: -30px;
    bottom: 0;
    width: 200px;
    height: 21px;
    z-index: 0;
}

.h1-div #landing-h1 {
    position: relative;
    z-index: 1;
}

/* buttons*/
.button-archive {
    position: relative; 
    display: inline-block;
    width: 90px; 
    height: 33px; 
}

.button-contact, .button-learn {
    position: relative; 
    display: inline-block;
    width: 120px; 
    height: 38px; 
}

.archive-btn-outline, .btn-outline {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 1;
}

.archive-shape, .btn-shape {
    fill: transparent;
    stroke: #000000;
    stroke-width: 1.5;
    z-index: -10;
}

.button-archive:hover, .button-contact:hover, .button-learn:hover {
    cursor: pointer;
}

.button-archive:hover .archive-shape {
    fill: #A5D3DB;
}

.button-contact:hover .btn-shape, .button-learn:hover .btn-shape {
    fill: #E69D38;
}

.btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-family: 'BM HANNA_TTF';
    font-size: 1em;
    white-space: nowrap;
    color: #000000;
    margin: 0;
    padding: 0;

    z-index: 10;
}

/* index page: pttv, httv section & welcome section*/
#landing-pttv, #landing-ddtv, #landing-welcome {
    padding-bottom: 50px;

    display: flex;
    flex-direction: column;
    /* justify-content: flex-end; */
}

.section-content {
    z-index: 10;
}

#landing-welcome .about{
    position: relative;
    z-index: 2;
}

.section-img {
    position: relative;
    display: inline-block;
    width: 50%;
    aspect-ratio: 528/482;
    flex: 0 0 auto;
    margin-left: auto;
    z-index: 2;
}

.section-img .img-content {
    position: absolute;
    width: 89%;
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

}

.section-img .img-frame {
    position: relative;
    width: 100%;
    height: 100%;
}

#section-ddtv .section-img .img-content {
    width: 89%;
}

#tv-m {
    width: 50%;
    height: auto;
    margin-left: auto;
    margin-right: -30px;
    z-index: 2;
}

/* --------------learn-dd & learn-pt --------------- */
.gallery {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;

    padding-top: 30px;
    padding-bottom: 30px;
}

/* .dd-archives, .pt-archives {
    position: relative; 
    display: inline-block;
    width: 145px; 
    height: 59px; 
}

.dd-archives .btn, .pt-archives .btn {
    white-space: normal;
    text-align: center;
}

.dd-archives:hover, .pt-archives:hover {
    transform: scale(1.1);
} */

/* learn-dd.html page */
#learn-dd-bg, #learn-pt-bg {
    background-image: url('images/learn-dish.svg');
    background-size: 25%;
}

/* learn-pt.html page */
#learn-pt-bg {
    background-image: url('images/learn-tiger.svg');
    background-size: 20%;
}

/* -----------------donate page ----------------*/
#donate-bg {
    background-image: url('images/donate-bg-m.svg');
    background-position: center;
    background-size: 120vw auto;
}

#donate-big-btn {
    /* display: inline-block; */
    display: block;
    width: fit-content;
    position: relative;

    margin: 44px auto 0 auto;
}

#donate-big-btn img {
    /* width: 300px; */
    /* width: calc(50%); */
    /* min-width: 300px; */
    width: 50vw;
    max-width: 500px;
    height: auto;
    display: block;
}

#donate-big-btn-text-top, #donate-big-btn-text-bottom {
    position: absolute;
    font-family: 'roboto';
    font-weight: 900;
    font-size: 2.5em;
    text-align: center;
    color:#000000;
}

#donate-big-btn-text-top {
    top: -5%; 
    left: 50%; 
    transform: translate(-50%);
}

#donate-big-btn-text-bottom {
    bottom: -5%; 
    left: 50%; 
    transform: translate(-50%);
}

#donate-big-btn:hover {
    transform: scale(1.05);
}

/* ---------------- archive page ----------------*/
#archive-btn-wrapper {
    display: flex;
    /* justify-content: space-between;  */
    gap: 37px;
}

#archive-pt-btn, #archive-dd-btn {
    flex: 1;
    position: relative;
    display: inline-block;
    aspect-ratio: 157/143;
    max-width: 360px;
}

#archive-pt-btn:hover, #archive-dd-btn:hover {
    transform: scale(1.05);
}

#archive-pt-btn .btn, #archive-dd-btn .btn{
    align-items: flex-start;
    padding-top: 5%;
}

#archive-pt-btn .btn p, #archive-dd-btn .btn p{
    width: 70%;
    font-family: 'BM HANNA_TTF';
    font-size: 1.2em;
    white-space: nowrap;
    color: #000000;
    text-align: center;
    white-space: normal;
    line-height: 0.9em;
    margin-bottom: 10px;
}

.archive-btn-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -30%); 

    width: 50%;
    max-width: 180px;
    height: auto;
}

#archive-pt-btn .archive-btn-logo {
    transform: translate(-50%, -18%);
}

.description-p {
    position: relative;
    z-index: 2;
}

/* ---------------- resource page ----------------*/
#resource-bg {
    background-image: url('images/resource-bg-m.svg');
    background-position: right top; 
}

.resource {
    position: relative;
    display: inline-block;
    width: 356px;
    height: 208px;
    flex: 0 0 auto;
    /* flex: 0 0 auto;
    margin-left: auto; */
}

.resource .img-content {
    position: absolute;
    width: 90%;
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

}

.resource .img-frame {
    position: relative;
    width: 100%;
    height: 100%;
}

.search {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    height: clamp(40px, 5vw, 50px);
    display: inline-block;
}

.filter-btn .btn-shape {
    stroke-width: 1.5px;
}

#print {
    aspect-ratio: 103/42;
}

#audio-visual {
    aspect-ratio: 105/39;
}

#rAll {
    aspect-ratio: 111/39;
}

/* resource and event cards */
#resource-cards article:nth-child(odd) .corner svg path, #event-cards article:nth-child(odd) .corner svg path {
  stroke: #F18D00;
}

#resource-cards article:nth-child(even) .corner svg path, #event-cards article:nth-child(even) .corner svg path {
  stroke: #75C1CF;
}

.corner {
  position: absolute;
  width: 25px;
  height: 24px;
  z-index: 10;
}

.top-left {
  top: -5px;
  left: -7px;
}

.top-right {
  top: -5px;
  right: 4px;
}

.bottom-left {
  bottom: 1px;
  left: -7px;
}

.bottom-right {
  bottom: 0;
  right: 3px;
}

#resource-cards, #event-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    justify-content: center;
    margin-top: 28px;
}

.r-btn, .e-btn {
    position: relative; 
    display: inline-block;
    aspect-ratio: 150/47;
    width: clamp(150px, 5vw, 183px);
}

.r-print-card, .r-audio-card, .r-visual-card, .e-card {
    aspect-ratio: 338/382;
    max-width: 426px;
    min-width: 300px;
    flex: 1 1 300px;
    border: #000000 solid 3px;
    background-color: #FFFFFF;

    display: flex;
    flex-direction: column;
    position: relative;
}

.r-img, .e-img {
    aspect-ratio: 338/203;
    width: 100%;
    max-width: 426px;
    position: relative;
    background-color: #786e61;
    flex: 0 0 auto;
}

.r-info, .e-info {
    padding: 20px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.r-content h3 {
    position: absolute;
    bottom: 0;
    padding: 15px;
    margin: 0;
    width: 100%;
    background-color: #000000B3;
    font-family: 'anybody';
    font-weight: 700;
    font-size:  1.25em;
    color:#FCFCFA;
    text-align: center;
}

.e-content {
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    width: 100%;
    background-color: #000000B3;
}

.e-content h3 {
    margin: 0;
    font-family: 'anybody';
    font-weight: 700;
    font-size:  1.25em;
    color:#FCFCFA;
}

.e-description, .r-description {
    margin: 0;
}

.r-btn:hover .btn-shape, .e-btn:hover .btn-shape {
    fill: #E69D38;
}

.filter-btn-selected {
    fill: #A5D3DB;
}

/* ---------------- events page ----------------*/
#upcoming, #past, #eAll, #print, #audio-visual, #rAll {
    position: relative; 
    display: inline-block;
}

#upcoming:hover, #past:hover, #eAll:hover, #print:hover, #audio-visual:hover, #rAll:hover {
    cursor: pointer;
}

#upcoming:hover .btn-shape, #past:hover .btn-shape, #eAll:hover .btn-shape, #print:hover .btn-shape, #audio-visual:hover .btn-shape, #rAll:hover .btn-shape {
    fill: #A5D3DB;
}

#upcoming {
    aspect-ratio: 133/43;
}

#audio-visual {
    aspect-ratio: 216/52;
}

#audio-visual .btn-shape {
    vector-effect: non-scaling-stroke;
    stroke-width: 3;
}

#past, #print {
    aspect-ratio: 98/39;
}

#eAll, #rAll {
    aspect-ratio: 88/38;
}


/* search function */
.resources-search, .events-search {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 8px 8px;

    background-image: url('images/search-highlight.svg');
    background-size: cover;
    box-sizing: border-box;
    z-index: 2;
    position: relative;
}

.resources-search img, .events-search img {
    margin-top: 10px;
    width: 15px;
    /* height: 15px;
    object-fit: contain; */
}

.resources-search input, .events-search input {
    margin-top: 10px;
    width: 100%;
    height: auto;
    background-color: transparent;
    border-color: transparent;
}

/* ---------------- contact page ----------------*/
#contact-bg {
    background-image: url('images/contact-bg-m.svg');
    z-index: -10;
}

#contact-content {
    position: relative;
    display: flex;
    align-items: center;
    /* justify-content: center; */
    /* justify-content: center; */
    /* display: inline-block; */
    /* min-width: 316px; */
    max-width: 480px;
    width: 100%;
    height: auto;
    aspect-ratio: 310/255;

    margin: 0 auto;
    margin-top: 20px;
}

#contact-content > img {
    position: absolute;
    inset: 0;
    z-index: -1;
    max-width: 100%;
}

#info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* max-width: 414px; */
    width: calc(100% - 100px);
    aspect-ratio: 310/250;
    height: auto;
    margin: 0 auto;
}

#contact-phone, #contact-address {
    margin-top: 30px;
}

#info p, #info a {
    font-family: 'anybody';
    font-weight: 400;
    font-size:  0.75em;

    color:#000000;
    margin: 0;
}

#contact-mail p:first-child, #contact-phone p:first-child, #contact-address p:first-child {
    font-weight: 700;
}

#contact-phone, #contact-mail, #contact-address {
    display: flex;
    gap: 30px;
}

#contact-phone img, #contact-mail img, #contact-address img, #contact-additional img  {
    width: 29px;
    height: auto;
}

#contact-additional {
    display: flex;
    justify-content: space-between;
}

#contact-main-img {
    position: relative;
    max-width: 575px;

    margin: 0 auto;
    margin-top: 50px;
}

#contact-main-img img:first-child {
    max-width: 100%;
    height: auto;
}

#contact-main-img img:nth-child(2) {
    position: absolute;

    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); 
    
    max-width: 110%;
}

/* ------------------------ form pages ------------------------*/
* {
    box-sizing: border-box;
}

#form-nav {
    height: auto;
    background-color: #BBDBEE;
}

#form-nav div .underline {
    position: relative;
    top: 0;
}

#form-nav ul {
    display: flex;
    /* padding: 0 32px; */
    margin: 70px 32px 32px 32px;
    gap: 47px;
    padding: 0;
}

#form-nav a {
    font-family: 'roboto';
    font-weight: 900;
    font-size: 1.375em;

    display: inline-block;
    position: relative;

}

#form-nav a .nav-highlight {
    /* display: none; */
    position: absolute;
    bottom: 0;
    left: -10px;
    width: 120%;
    height: auto;
    z-index: -1;
}

#event-form-main, #resource-form-main {
    padding: 32px;
}

#event-form-main form, #resource-form-main form {
    padding: 32px 25px;
    display: flex;
    flex-direction: column;

    gap: 20px;

    position: relative;

    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
}

#resource-form-main form {
    gap: 70px;
    height: 900px;
}

#event-form-main form {
    height: 1000px;
}

#form-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#form-content {
    display: flex;
    flex-direction: column;
    gap: 65px;
    position: relative;
    z-index: 2;
}

#event-form-main form #fields-wrapper > div, #resource-form-main form #fields-wrapper > div {
    display: flex;
    flex-direction: column;
}

#fields-wrapper {
    display: flex;
    flex-direction: column;
}

form h1 {
    font-family: 'roboto';
    font-weight: 900;
    font-size: 2.625em;
    padding: 20px 0 0 0;
    margin: 0;
    text-align: center;
}

#resource-form-main form h1 {
    width: calc(120%);
    margin-left: -25px;
}

form p {
    font-family: 'BM HANNA_TTF';
    font-size: 1.125em;
    text-align: center;
}

label {
    font-family: 'roboto';
    font-weight: 900;
    font-size: 1em;
    padding-bottom: 4px;
}

#event-form-main input, #event-form-main select, #resource-form-main input, #resource-form-main select, #eventDescription {
    font-family: 'anybody';
    font-size: 0.875em;
    color: #000000;
    font-weight: 400;

    /* height: 18px; */
    border: #000000 solid 2px;
    border-radius: 10px;
    margin-bottom: 15px;

    padding: 10px;
    min-height: 48px;
    background-color: transparent;
}

#event-form-main select, #resource-form-main select {
    min-height: 48px;
}

#event-form-main input::placeholder, #resource-form-main input::placeholder, #eventDescription::placeholder {
    color: #000000;
}

#eventDescription {
    height: 100px;
    resize: none;
}

#eventImage, #resourceImage {
    display: none;
}

#upload-box {
    border: solid #000000 2px;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 15px;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;

    height: 120px;

    position: relative;
    overflow: hidden; 
}

#upload-box img.upload-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

#upload-box h4 {
    margin: 0;
    padding: 0;
    font-family: 'anybody';
    font-size: 0.875em;
    color: #000000;
    font-weight: 400;
}

#date-range {
    display: flex;
    /* width: 100%; */
    gap: 10px;
}

#date-range > div {
    /* flex: 0 0 auto; */
    min-width: calc(50% - 17px);
    /* flex: 1; */
}

#date-range div input {
    /* width: calc(100% - 23px); */
    width: 100%;
}

#date-range h4 {
    width: 15px;
    text-align: center;
    flex-shrink: 0;
}

#form-submit {
    z-index: 0;
}

#submit-event-btn, #submit-resource-btn {
    width: calc(100% - 20px);
    height: 90px;
    /* margin-left: -20px;
    margin-right: -20px; */

    font-family: 'BM HANNA_TTF';
    font-size: 1.75em;
    color: #000000;
    border: none;

    background-color: #c1c1c1;
    cursor: not-allowed;

    position: absolute;
    left: 10px;
    bottom: 3px;
}

#submit-event-btn.enabled, #submit-resource-btn.enabled {
    background-color: #75c2cf9c;
    cursor: pointer;
}

#form-decoration {
    position: absolute;
    top: -10px;
    left: -20px;
    width: 110%;
    height: auto;
    pointer-events: none;
    z-index: 3;
}

#form-decoration-bottom {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 110%;
    height: auto;
    pointer-events: none;
    z-index: 3;
    transform: scaleY(-1);
}

/* loader for content */
#loading {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}
.loader {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite
}

.loader::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 5px solid #F18D00;
    animation: prixClipFix 2s linear infinite ;
}

@keyframes rotate {
    100%   {transform: rotate(360deg)}
}

@keyframes prixClipFix {
    0%   {clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}
    25%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}
    50%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}
    75%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)}
    100% {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}
}


@media only screen and (min-width: 600px) {
    .hero-wrap {
        gap: 20px;
    }

    #landing-bg {
        background-position: center -200px;
    }

    #learn-dd-bg {
        background-size: 18%;
    }

    #learn-pt-bg {
        background-size: 15%;
    }

    #archive-bg {
        background-size: 50%;
    }
}

@media only screen and (min-width: 700px) {
    #archive-pt-btn .btn p, #archive-dd-btn .btn p {
        font-size: 2.1875em;
    }
}


@media only screen and (min-width: 800px) {
    p, .splat-text, input {
        font-size: 1em;
        font-size: 1.5em;
    }

    h1 {
        /* font-size: 4em; */
        font-size:  5.3125em;
        padding-top: 0;
    }

    #landing-h1 {
        font-size: 4.25em;
    }

    .h1-underline {
        height: 9px;
        left: -20px;
    }

    h2 {
        font-size: 2.8125em;
    }

    h3 {
        font-size: 1.75em;
    }

    .h2-underline {
        width: 355px;
        height: 10px;
        left: -20px;
    }

    main {
        padding-right: 50px;
        padding-left: 50px;
        padding-bottom: 50px;
    }

    .ham {
        display: none;
    }

    nav a {
        font-size: 1.375em;
    }

    nav a::after {
        left: -7.5px;
        width: calc(100% + 15px);
    }

    .nav-outline {
        display: none;
    }

    .nav-links-wrapper {
        position: absolute;
        top: 50%;              
        transform: translateY(-50%);

        display: flex;
        align-items: flex-end;
        padding: 0 50px;
    }

    .nav-links-wrapper ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 64px;
        position: relative;
        padding: 0;
        text-align: left;
        background: none;
    }

    .nav-links-wrapper ul li {
       padding-bottom: 0; 
    }

    .nav-links-wrapper ul li.donate-btn a {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        background-image: url('images/nav-btn-donate.svg');
        background-size: contain;
        background-repeat: no-repeat;

        height: 55px; 
        min-width: 135px; 
    }

    .nav-links-wrapper ul li.donate-btn a::after {
        display: none;
    }

    .nav-links-wrapper ul li.donate-btn a:hover {
        background-image: url('images/nav-btn-donate-hover.svg');
    }

    footer {
        display: flex;
        padding-right: 100px;
        padding-left: 100px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 30px;
    }

    .footer-logo {
        margin: 0;
        order: 1;
    }

    .footer-links {
        text-align: left;
        padding: 0;
        margin: 0;
        order: 2;
    }

    .footer-contacts {
        gap: 15px;  
        order: 3;
    }

    footer ul li {
        padding-bottom: 13px
    }

    footer ul li a {
        font-size: 1.25em;
    }

    footer p, .footer-contacts p {
        font-size: 1.375em;
    }

    .footer-content div a {
        font-size: 0.625em;
    }

    /* index page */
     #landing-bg {
        background-image: url('images/landing-bg-d.svg');
        background-position: left -30px top 0px;
    }
    /* hero section */
    #hero {
        aspect-ratio: 1440/740;
    }

    #hero::before {
        background-image: url('images/hero-d.jpg');
    }

    .hero-wrap {
        gap: 5px;
    }

    .splat-text {
        width: 90%;
    }

    .home-logos-m {
        width: 90%;
    }

    /* buttons*/
    /* hero section button */
    .button-archive {
        width: 144px;
        height: 53px;
    }

    .button-contact, .button-learn {
        width: 204px; 
        height: 64.63px; 
    }

    .btn {
        font-size: 1.375em;
    }

    /* welcome, pptv, httv sections */
    /* welcome section */
    .h1-highlight {
        width: 457px;
        height: 48px;

        left: -60px;
        bottom: 10px;
    }

    /* pptv section, httv section*/
    #section-welcome {
        margin-top: 100px;
    }

    .section-img {
        width: auto;
        height: 100%;
        aspect-ratio: auto;
    }

    #tv-m {
        width: 100%;
        transform: scaleX(-1);
        margin-right: 0;
        margin-left: -50px;
    }

    #landing-pttv, #landing-ddtv, #landing-welcome {
        /* display: flex; */
        flex-direction: row;
        gap: 30px;
        padding-bottom: 135px;
        align-items: center;
    }

    #landing-pttv .section-content, #landing-ddtv .section-content, #landing-welcome div {
        flex: 2;
    }

    #landing-welcome img, #landing-ddtv .section-img {
        order: -1;
    }

    #landing-pttv .section-img, #landing-welcome img, #landing-ddtv .section-img {
        flex: 1;
    }

    /*------- donate page ----------*/
     #donate-bg {
        background-image: url('images/donate-bg-d.svg');
        background-size: cover;
    }

    /* #donate-big-btn img {
        width: 400px;
    } */

    #donate-big-btn-text-top, #donate-big-btn-text-bottom {
        font-size: 3.8em
    }

    /* ------archive page ------*/
    #archive-bg {
        background-image: url('images/archive-bg-d.svg');
        background-position: right -15% top 0%; 
        background-size: 40%;
    }

    #archive-pt-btn .btn, #archive-dd-btn .btn{
        padding-top: 0%;
    }

    #archive-pt-btn .btn p, #archive-dd-btn .btn p{
        width: 89%;
    }

    .description-p {
        width: 70%;
    }

    /* -------- resource page  ---------*/
    #resource-bg {
        background-image: url('images/resource-bg-d.svg');
        background-position: right top -30%; 
    }

    /* resource, pt archive and dd archive page */
    .resources-search, .pt-search, .dd-search {
        width: 300px;
    }

    .resources-search img, .pt-search img, .dd-search img, .events-search img{
        width: 50px;
    }

    .filter-btn .btn-shape {
        stroke-width: 2px;
    }

    .filters {
        gap: 22px;
    }

    .search {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* ------------ contact page --------------*/
    #contact-bg {
        background-image: url('images/contact-bg-d.svg');
    }

    #contact-content {
        max-width: 550px;
    }

    #contact-info-wrapper {
        display: flex;
        gap: 20px;
        align-items: center;
        justify-content: space-between;
    }

    #info p, #info a {
        font-size:  1.25em;
    }

    #contact-phone img, #contact-mail img, #contact-address img, #contact-additional img  {
        width: 40px;
    }

    #contact-phone, #contact-address {
        margin-top: 10px;
    }

    /* -------------forms------------ */
    #event-form-main, #resource-form-main {
        margin: 75px 0 160px 0;
    }

    #event-form-main form, #resource-form-main form {
        padding: 32px 70px;
    }

    #submit-event-btn, #submit-resource-btn {
        width: calc(100% - 50px);
        /* margin-left: -50px;
        margin-right: -50px; */

        font-family: 'BM HANNA_TTF';
        font-size: 1.75em;
        left: 30px;
    }

    form h1 {
        font-size: 5.3125em;
    }

    #resource-form-main form h1 {
        width: 100%;
        margin-left: 0;
    }

    form p {
        font-size: 1.5625em;
        margin: 0;
    }

    #form-nav ul {
        margin-left: 70px;
    }

    #form-nav a {
        font-size: 2.5em;
    }

    #fields-wrapper {
        gap: 10px;
    }

    #event-form-main form #fields-wrapper > div, #resource-form-main form #fields-wrapper > div {
        flex-direction: row;
        gap: 20px;
    }

    #resource-form-main form {
        gap: 50px;
    }

    #event-form-main form {
        gap: 30px;
    }

    #fields-wrapper label, #date-wrapper label, #image-wrapper label {
        font-size: 1.625em;
        width: 220px;
        text-align: right;
    }

    #event-form-main input, #event-form-main select, #resource-form-main input, #resource-form-main select, #eventDescription {
        font-size: 1.5625em;
        min-height: 63.37px;
        /* width: 100%; */
        flex: 1;
        min-width: 0;

    }

    #event-form-main select, #resource-form-main select {
        min-height: 48px;
    }

    #image-wrapper > div {
        display: flex;
        flex: 1;
    }

    #upload-box {
        flex: 1;
    }

    #image-wrapper label#upload-box {
    font-size: initial;
    }

    #upload-box h4 {
        font-size: 1.5625em;
    }

    #date-range {
        flex: 1;
        min-width: 0;
    }

    #date-range > div {
        flex: 1;
        min-width: 0;
    }

    #form-footer {
        justify-content: center;
    }

    #form-decoration {
        top: -70px;
        left: -45px;
    }

    #form-decoration-bottom {
        bottom: -70px;
        left: -45px;
    }
}

@media only screen and (min-width: 850px) {
    #event-form-main form {
        gap: 60px;
    }
}

@media only screen and (min-width: 900px) {
    #landing-pttv, #landing-ddtv, #landing-welcome {
        display: flex;
        gap: 95px;
    }

    .resource {
        max-width: 356px;
        height: auto;
    }

    .gallery {
        flex-wrap: wrap;
        justify-content: center; 
        /* align-content: center;   */
        /* gap: 35px; */
        gap: 75px;
        margin-top: 30px;
    }

    .blue, .orange {
        max-width: 356px;
        /* aspect-ratio: 356/208; */
        flex: 1 1 300px;
    }

    #learn-pt-bg {
        background-size: 28%;
    }


    /* ------------form----------  */
    #fields-wrapper {
        gap: 15px;
    }

    #resource-form-main form {
        gap: 65px;
    }

    #event-form-main form {
        gap: 30px;
    }
}

@media only screen and (min-width: 1000px) {
    main {
        padding-right: 100px;
        padding-left: 100px;
    }

    .nav-links-wrapper {
        padding: 0 100px;
    }

    .hero-wrap {
        gap: 15px;
    }
    
    /* #landing-bg {
        background-position: center -150px;
    } */

    #tv-m {
        margin-left: -100px;
    }

    #donate-big-btn-text-top, #donate-big-btn-text-bottom {
        font-size: 4.0625em
    }

    #contact-phone img, #contact-mail img, #contact-address img, #contact-additional img  {
        width: 55px;
    }

    #contact-phone, #contact-address {
        margin-top: 20px;
    }

    #donate-big-btn {
        margin: 0;
        /* flex: 1; */
    }

    #donate-text {
        /* flex: 1; */
        display: flex;
        justify-content: center;
        align-items: flex-start;

        gap: 47px;
    }
}

@media only screen and (min-width: 1200px) {
    #landing-bg {
        background-position: left 0 top -300px;
    }

    #contact-phone, #contact-address {
        margin-top: 30px;
    }

    #donate-text {
        align-items: center;
    }
}

@media only screen and (min-width: 1600px) {
    main, .bg-corner {
        margin: 0 auto;
    }
}

