
:root{
  --red:#EE3B37;
  --yellow:#FABD1A;
  --teal:#02B38D;
  --blue:#11479D;
  --pink:#EE4876;
  --white:#F9F8F7;
  --black:#1A1613;
}

*{
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

.sticky {
  position: -webkit-sticky;
  position: fixed;
  top: 0;
  right:0;
  z-index:2000;
}

body {
  max-width:100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

h1{
  font-family: "Authority", "Copperplate";
  font-size:96px;
}

h2{
  font-family:"Authority";
  font-size:64px;
    margin-top:0.1em;
}

h3{
  font-family:"Kollektif-B";
  font-size:36px;
}

h6{
  font-family:"Kollektif-B";
  font-size:20px;
  margin:0;
  text-transform:uppercase;
}

p{
  font-family:"Kollektif-R";
  font-size:20px;
  margin:0;
}

.bg{
  background-size:cover
}

a{
  color:var(--blue)
}

textarea {
  max-width:100%;
}
/* HEADER and NAV **************************************************************/

.header{
    font-family: "Authority";
    font-size: 36px;
}

nav{
background-color: var(--white);
border-bottom: 1px solid var(--black);
}

nav ul{
display:flex;
list-style:none;
justify-content:center;
padding:0 10px 0 10px;
}

nav li:not(.centered-logo, #close-sidebar, #mobile-logo) {
display:flex;
text-align:center;
padding:50px;
transition: all ease-in-out 0.1s;
}

.centered-logo{
padding: 30px 0 0 0;
}

nav a{
  text-decoration:none;
  color: var(--black);
}


.home-active-link {
  border-bottom:4px solid var(--red);
}

.map-active-link{
  border-bottom:4px solid var(--teal);
}

.about-active-link{
  border-bottom:4px solid var(--pink);
}

.blog-active-link{
  border-bottom: 4px solid var(--yellow);
}

.home-li:hover,.instructions:hover{
  color: var(--red);
}

.about-li:hover, .privacy-policy:hover{
  color: var(--pink);
}

.map-li:hover, .terms-of-use:hover{
  color:var(--teal);
}

.blog-li:hover{
  color:var(--yellow);
}

/* MOBILE HEADER AND NAV **************************************************************/
/* HEADER AND NAV BAR*****/

#open-sidebar-button, #close-sidebar-button,#mobile-logo{
  display:block;
  background:none;
  border:none;
}

#open-sidebar-button{
    padding:10px
}

.mobile-nav{
  display:flex;
  justify-content:space-around;
}

.mobile-nav img{
  width:90px;
  padding:20px;
}

nav li:not(.centered-logo, #close-sidebar){
  padding:15px;
  font-size:32px;
  text-align:left;
}
  nav{
    position:fixed;
    top:0;
    right:-100%;
    height:100vh;
    z-index: 120;
    border-left: 1px solid var(--black);
    padding:0;
    transition:right 300ms ease-out;
  }

  nav.show{
    right:0%;
  }

  #overlay, #popup-overlay, .form-overlay{
  background:rgba(0,0,0,0.5);
  position:fixed;
  inset:0;
  z-index:100;
  display:none;
}

  nav.show ~ #overlay{
    display:block;
  }
  .centered-logo{
    display:none;
  }

  nav ul{
    width:100%;
    flex-direction:column;
    padding:20px;
  }

  nav a{
    width:100%;
    padding-left:1px;
  }

  .map-active-link{
    border-bottom:none;
  }

.error{
  color:var(--red)
}

.successful{
  color:var(--teal)
}


/* SIGN MAP **************************************************************/

.map-popup, .popup{
    background-color: var(--white);
    border-color:#11479D;
    border-style:solid;
    border-radius:50px;
    border-width:20px;
    width: 420px;
    padding: 20px 30px;
    position: fixed;
    transform: translate(-50%,-50%);
    left: 50%;
    top: 50%;
    z-index:3000;
    animation:fade-in 1.2s;
    text-align:left;
}

.submission-popup{
    background-color: var(--white);
    border-color:#11479D;
    border-style:solid;
    border-radius:50px;
    border-width:20px;
    width: 420px;
    padding: 20px 30px;
    transform: translate(-50%,-50%);
    left: 50%;
    top: 50%;
    z-index:3000;
    animation:fade-in 1.2s;
    text-align:left;
}

.map-popup h2{
    line-height: 0.8em; 
    margin:20px 0 20px 0;
}

#close-popup-button, #form-popup-button, #privacy-close, #terms-close{
    margin-left:auto;
    display:block;
    border:none;
    cursor:pointer;
}

.popup-instructions{
   max-height:250px;
   overflow:auto;
  text-align: left;
}

.map-popup ~ #popup-overlay{
    display:block;
  }

#popup-overlay{
    z-index:2000;
}
#map{
  height:2000px;
  max-width:100%;
}

/* SUBMIT FORM **************************************************************/
#submit-button{
  position:fixed;
  background:none;
  border:none;
  bottom:0;
  right:0;
  padding:10px;
  z-index:670;
  cursor:pointer;
}
.submit-form{
    background-color: var(--white);
    border-color:#11479D;
    border-style:solid;
    border-radius:50px;
    border-width:20px;
    padding: 20px 30px;
    max-width:600px;
    position: fixed;
    transform: translate(-50%,-50%);
    left: 50%;
    top: 50%;
    text-align: center;
    z-index:3000;  
    animation:fade-in 1.2s; 
    overflow:auto;
}

#submit-form{
  display:none;
}

.submit-form h2{
  line-height:0.90em;
}

.submit-form h6{
  padding:0.5em;
}

.submit-form form{
  padding:1em;
}

#upload{
  margin-top:1em;
}

.instructions, .privacy-policy, .terms-of-use{
cursor:pointer;
}

.popup-instructions li{
  font-family:"Kollektif-R";
  font-size:20px;
}

.text-bold{
  font-family:"Kollektif-B";
  font-size:20px;
}

#privacy-policy-popup, #terms-popup{
  display:none;
}
/* KEYFRAMES **************************************************************/
@keyframes fade-in{
    0%{
        opacity:0;
    }

    100% {
        opacity:1;
    }
}

@media screen and (max-width: 538px){
  .submit-form, .map-popup, .popup{
  width:375px;
  }

}
@media screen and (max-width: 490px){
  .submit-form, .map-popup, .popup{
  width:300px;
  }

}
@media screen and (max-width: 430px){

.submit-form, .map-popup{
    width: 250px;
    border-width:10px;
    padding: 15px 20px;
}

.popup-instructions{
   max-height:200px;
   overflow:auto;
}

h2{
  font-size:32px;
}

h6{
  font-size:20px;
}

p{
  font-size:16px;
}

.submit-form form{
  padding:0.5em;
}



}