/* variables */
:root {
    --gray-offset: rgba(0, 0, 0, 0.03);
    --gray-border: rgba(0, 0, 0, 0.15);
    --gray-light: rgba(0, 0, 0, 0.4);
    --gray-mid: rgba(0, 0, 0, 0.7);
    --gray-dark: rgba(0, 0, 0, 0.9);
    --body-color: var(--gray-mid);
    --accent-color: rgb(68, 92, 116);
    --headline-color: var(--accent-color);
    --body-font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 6px;
    --form-width: 600px;
    --logo-image: url("../logo.png");
}

/* Base */
html {
  font-size: 62.5%;
  height: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
}

body {
  font-family: var(--body-font-family);
  font-size: 1rem;
  font-weight: 500;
  color: var(--body-color);
  -webkit-font-smoothing: antialiased;
  text-align: center;
  height: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--body-color);
  margin-top: 2px;
  margin-bottom: 4px;
}

h1 {
  font-size: 2.7rem;
  color: var(--headline-color);
}

h2 {
    color: var(--headline-color);
    margin: 1rem;
    font-size: 2rem;
}

h3 {
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--gray-light);
}
h4 {
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--gray-light);
}

header {
    height: 15%;
    position: relative;
    align-items: center;
}

.navbar {
    height: auto;
    display: flex;
    justify-content: flex-end;
    padding: 3% 5%;
}

.nav-mobile {
    display: none;
}

.logo {
    cursor:  pointer;
    margin-right: auto;
    width: 339px;
}

.nav_links {
    list-style: none;
}

.nav_links li {
    display: inline-block;
    padding: 0rem 1rem;
    font-size: 1.4rem;
}

.nav_links li a {
    transition: all 0.3s ease 0s;
    color: var(--gray-light);
    border-radius: var(--radius);
    border: 1px solid;
    padding: 10px 15px;
    font-weight: 600;
    cursor: pointer; 
    display: block;

}

#partner-page {
    background: var(--accent-color);
    border-radius: var(--radius);
    color: white;
    border: 0;
    padding: 11px 16px;
    cursor: pointer; 
    display: block;
}

.nav_links li a:hover {
    color: var(--accent-color); 
}

.nav_links li a:active {
    transform: translateY(0px) scale(0.98);
    filter: brightness(0.9);
}

#partner-page:hover {
    filter: contrast(1.4); 
}

.logo-link {
    cursor:  pointer;
    margin: auto;
    margin-left: 0;
    width: auto;
}

.logo-link:active {
    transform: translateY(0px) scale(0.98);
}

.toggle {
    position: absolute;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 31px;
    height: 21px;
}

.toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--accent-color);
    border-radius: 20px;
}

/* Footer */

footer {
    width: 100vw;
    display: block;
    overflow: hidden;
    padding: 30px 0;
    background-color: var(--accent-color);
    z-index: 1;
}

.inner-footer {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    margin: 0 10rem;
    width: auto;
    height: 100%;
    z-index: 2;
    
}

.inner-footer .footer-logo {
    width: 13rem;
    height: 13rem;
    margin: auto;
    margin-left: 2rem;
    background-color: white;
    border-radius: 50%;

}

.inner-footer .footer-logo img {
    height: 5rem;
    margin: 4rem 0;
    z-index: 4;
}

.inner-footer .footer-third {
    width: 23rem;
    margin-right: 10px;
    height: 100%;
    text-align: left;
}

.inner-footer .footer-third:last-child {
    margin-right: 0;
}

.inner-footer .footer-third h2 {
    font-size: 2.2rem;
    color: white;
    display: block;
    width: 100%;
    margin: 0;
    margin-bottom: 2rem;
}

.inner-footer .footer-third a {
    font-size: 1.8rem;
    color: white;
    display: block;
    font-weight: 300;
    width: 100%;
    padding-bottom: 0.5rem;
}

.inner-footer .footer-third h3 {
    font-size: 1.8rem;
    color: white;
    display: block;
    font-weight: 100;
    width: 100%;
    padding-bottom: 0.5rem;
}

.inner-footer .footer-third h4 {
    font-size: 1.8rem;
    color: white;
    display: block;
    font-weight: 300;
    width: 100%;
    padding-bottom: 0.5rem;
}

/* coming soon */
.coming-soon {
    margin-top: 10%;
}

.coming-soon h1 {
    text-transform: uppercase;
    color: var(--gray-mid);
    margin-top: 2rem;
}

/* Privacy Policy */
.priv {
    text-align: left;
    margin: 7rem 15%;
    max-width: 120rem;
}

.pol {
    margin-top: 3rem;
}

.pol-item h3 {
    color: black;
    margin-left: 3rem;
}

.pol-line {
    margin: 1rem 0;
    margin-left: 4rem;
}

.pol-line p {
    font-size: 1.5rem;
}

.pol-line a {
    text-decoration: underline;
}

.pol-line a:hover {
    cursor: pointer;
}
/* About */

.about {
    height: 100%;
    max-height: 50rem;
    display: flex;
}

.rootedLogo {
    width: 40%;
}

.accordian {
    color: var(--accent-color);
    width: 60%;
    max-width: 1000px;
    margin: auto 2rem;
    list-style: none;
    align-items: center;
}

.accordian-item {
    margin: 4rem 0;
    border: 1px solid var(--accent-color);
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease-in-out;
    transition: margin 0.2s ease-in-out;
}

.accordian-item.active {
    margin: 2rem 0;
}

.accordian-item-header {
    padding: 2.7rem 3rem 2.7rem 2rem;
    min-height: 3.5rem;
    line-height: 1.25rem;
    font-weight: bold;
    font-size: 2.75rem;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.accordian-item-header::after {
    content: "\002B";
    font-size: 4rem;
    position: absolute;
    right: 1rem;
    transition: transform 0.2s ease-in-out;
}

.accordian-item-header.active::after {
    transform: rotate(45deg);
}

.accordian-item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.accordian-item-body.active {
    max-height: 30rem;
}

.accordian-item-body-content {
    font-size: 1.5rem;
    padding: 1rem;
    line-height: 1.5rem;
    border-top: 1px solid;
    border-image: linear-gradient(to right, transparent, var(--accent-color), transparent) 1;
}

.accordian-item-body-content2 {
    font-size: 1.5rem;
    padding: 1rem;
    line-height: 1.5rem;
    border-top: 1px solid;
    color: #ffffff;
    border-image: linear-gradient(to right, transparent, #ffffff, transparent) 1;
}

/* Timeline */

.timeline {
    background-color: #ffffff;
    height: 70%;
    display: flex;
}

.timeline-line {
    width: 20%;
}

.timeline-text {
    width: 80%;
}

/* Updates */

.update-main {
    align-items: center;
    width: 65rem;
    text-align: center;
    margin: auto;
}

.update-header {
    margin-top: 4rem;
    margin-bottom: 6rem;
}

.signIn {
    margin: auto;
    max-width: 35rem;
}
.signIn button {
    margin: auto;
    margin-bottom: 5rem;
}

.create-update {
    display: block;
    margin: auto;
}

.create-update input {
    width: 85%;
    margin-bottom: 2rem;
}

.create-update button {
    margin: auto;
    margin-bottom: 5rem;
}

#uploader {
    width: 85%;
    margin-bottom: 2rem;
}

.update-container {
    margin-bottom: 5rem;
}

#posts-collection {
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 2rem;
    grid-row-gap: 2rem;
    width: 95%;
}

.update-post {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: 50% 50%;
    border-radius: var(--radius);
    position: relative;
    z-index: 1;
}

.update-post img, h2, small, a {
    display: block;
}

.update-post h2 {
    color: white;
    text-shadow: 1px 1px 4px #5555;
    position: absolute;
    margin: 0;
    bottom: 6.5rem;
    left: 3rem;
}

.update-post h4 {
    color: white;
    text-shadow: 1px 1px 4px #5555;
    position: absolute;
    margin: 0;
    bottom: 4rem;
    left: 3rem;
}

.update-post:hover {
    transform: translateY(0px) scale(1.03);
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Post */
.post {
    height: auto;
}

.post img {
    object-fit: cover;
    object-position: 50% 30%;
    height: 500px;
    width: 100%;
}

.post h2 {
    font-size: 4rem;
    text-align: left;
    margin-top: 3rem;
    margin-left: 10rem;
}

.post h3 {
    text-align: left;
    margin-left: 10rem;
}

.post h4 {
    text-align: left;
    margin-left: 10rem;
}

/* Layout */
.sr-root {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 980px;
    align-content: center;
    justify-content: center;
    height: 85%;
    margin: 0 auto;
}

.sr-header {
    margin-bottom: 32px;
}

.sr-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  width: var(--form-width);
  transform: translateY(-15%);
}

.sr-header__logo {
    background-image: var(--logo-image);
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    width: 100%;
}

.sr-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.container {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 400px;
}

.container:first-of-type {
    margin-right: 20px;
}

/* Forms */
label {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 8px;
    display: inline-block;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input {
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 5px 12px;
    height: 44px;
    width: 80%;
    transition: box-shadow 0.2s ease;
    background: white;
    color: #415977;
}

input.amount {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 5px 12px;
  height: 44px;
  width: 100%;
  transition: box-shadow 0.2s ease;
  background: white;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  color: #415977;
}

input::placeholder {
  color: var(--gray-light);
}

input.check-fee {
    width: 1.5rem;
}

fieldset {
    border: none;
    margin-top: 5%;
}

.field {
    margin-top: 1rem;
}

/* Buttons */
input[type="submit"] {
    background: var(--accent-color);
    border-radius: var(--radius);
    color: white;
    border: 0;
    padding: 12px 16px;
    margin-top: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

button {
    background: var(--accent-color);
    border-radius: var(--radius);
    color: white;
    border: 0;
    outline: none;
    padding: 12px 16px;
    margin-top: 16px;
    font-weight: 600;
    cursor: pointer; 
    transition: all 0.2s ease;
    display: block;
}

button:hover {
    filter: contrast(1.4);
}

button:active {
    transform: translateY(0px) scale(0.98);
    filter: brightness(0.9);
}

button:disabled {
    opacity: 0.5;
    cursor: none;
}

/* Links */
a.link {
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--gray-light);
    text-decoration: underline;
    transition: all 0.2s ease;
}
  
a.link:hover {
    filter: brightness(0.8);
    cursor: pointer;
}
  
a.link:active {
    filter: brightness(0.5);
}

.checkbox-line {
    display: flex;
    margin: 1rem 1rem 0 1rem;
}

.check-fee {
    margin-right: 1rem;
}



/* Responsiveness */
@media (max-width: 950px) {
    .inner-footer {
        margin: 0 4rem;
    }
}

@media (max-width: 720px) {

    header {
        height: auto;
    }

    .logo-link {
        text-align: center;
        margin: auto;
    }


    .navbar {
        padding: 5% 3%;
    }
    .nav-desktop {
        display: none;
    }

    .nav-mobile {
        width: 100%;
        display: block;
        background-color: white;
        margin: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 100;
    }

    .nav_links {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .nav-mobile li {
        width: auto;
        display: block;
        padding: 0;
    }

    .nav-mobile li a {
        color: var(--accent-color);
        padding: 10px 0;
        font-weight: 600;
        cursor: pointer; 
        display: block;
        border-radius: 0;
        border-color: var(--accent-color);
        border-bottom: none;
    }

    #about, #partner {
        border-right: none;
        border-left: none;
        border-bottom: none;
    }

    .nav-mobile li a.item {
        border-top: 1px solid;
        border-bottom: 1px solid;
    }
    .nav-mobile.active {
        display: flex;
    }

    .nav-mobile li a:active {
        color: var(--gray-dark);
        transform: none;
        filter: brightness(0.9);
    }

    .nav_links li a img {
        width: 3rem;
    }

    .logo {
        max-width: 85%;
    }

    .sr-root {
      flex-direction: column;
      justify-content: flex-start;
      min-width: 320px;
      margin-top: 10rem;
      height: auto;
    }

    section.login {
        width: auto;
    }

    footer {
        margin-bottom: 71px;
    }

    .inner-footer {
        flex-direction: column;
        justify-content: unset;
        align-items: center;
    }

    .inner-footer .footer-logo {
        margin: 0;
        margin-bottom: 3rem;
    }

    .inner-footer .footer-third {
        width: 23rem;
        margin: 0;
        margin-bottom: 3rem;
        height: 100%;
        text-align: center;
    }

    .inner-footer .footer-third:last-child {
        margin-bottom: 0;
    }

    #posts-collection {
        grid-template-columns: 1fr 1fr;
    }

    .post h2 {
        margin-left: 4rem;
    }

    .post h3 {
        margin-left: 5rem;
    }

    .post h4 {
        margin-left: 5rem;
    }


  }

  @media (max-width: 580px) {

    .sr-main {
        width: 100%;
    }

    .sr-container {
        flex-direction: column;
        margin: auto;
    }

    .container:first-of-type {
        margin-right: 0px;
        margin-top: 5rem;
        margin-bottom: 2rem;
    }

    section.login {
        margin-bottom: 2rem;
    }

    .coming-soon {
        margin-top: 20%;
    }

    .post h2 {
        padding: auto 0;
    }

    .post h3 {
        padding: auto 0;
    }

    .post h4 {
        padding: auto 0;
    }

  }

  @media (max-width: 450px) {
      #posts-collection {
          grid-template-columns: 1fr;
      }
  }

/* Animations */
.sr-root {
    animation: 0.4s form-in;
    animation-fill-mode: both;
    animation-timing-function: ease;
}

@keyframes field-in {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
}

@keyframes form-in {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Login */
.login {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    width: 40rem;
}

.login_div {
    display: inline-flex;

}

/* Modal */

.modal {
    display: none; 
    position: fixed; /* Stay in place */
    z-index: 101;
    text-align: center;
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    background-color: #fefefe;
    padding: 2rem;
    border: 1px solid #888;
    border-radius: var(--radius);
    width: 300px;
    max-width: 90%;
    height: auto;
}

.form1 {
    margin-top: 1rem;
}

.form2 .form3 {
    width: 25rem;
}

.modal-input {
    margin: .4rem;
    padding: .4rem;
}
  

#create-close {
    color: #aaa;
    float: right;
    background-position: right;
    font-size: 2.8rem;
    font-weight: bold;
}
  
#create-close:hover,
#create-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
#login-close {
    color: #aaa;
    float: right;
    background-position: right;
    font-size: 2.8rem;
    font-weight: bold;
}
  
#login-close:hover,
#login-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#portal-close {
    color: #aaa;
    float: right;
    background-position: right;
    font-size: 2.8rem;
    font-weight: bold;
}
  
#portal-close:hover,
#portal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#forgot-close {
    color: #aaa;
    float: right;
    background-position: right;
    font-size: 2.8rem;
    font-weight: bold;
}
  
#forgot-close:hover,
#forgot-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}