@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');

*{
     font-style: normal;
}
body{
    height: auto;
    margin:0;
    overflow-x:hidden;
    overflow-y: scroll;
    font-family: "EB Garamond", serif;
}
main{
    background-color: white;
    z-index: 1;
    position: relative;
    width: 100%;
    display: block;
    font-family: "EB Garamond", serif;
    padding-bottom: 5rem;
}

video{
    position: fixed;
    top: 0;
    left: 0;
    object-fit: cover;
    width: 100vw;
    height: 100%;
    z-index: -1;
}

/* Fullscreen overlay */
#overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 1s ease;
}

#overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

#revealBtn {
    font-size: var(--fs-2xl);
    font-family: "EB Garamond", serif;
    padding: 1rem 2rem;
    background: #002FA7;
    color: black;
    border: none;
    cursor: pointer;
    transition: background 0.5s ease-in-out, color 0.5s ease-in-out;
}

#revealBtn:hover{
    background: white;
}

main .text-wrapper{
    margin: 25vh auto 0 auto;
    width: 80%;
    z-index: 2;
    max-width: 70ch; /* desktop cap (~640px) */
    box-sizing: border-box;
}

@media (min-width: 769px){
  main .text-wrapper{
    margin: 30vh auto 0 auto;
  }
}

@media (max-width: 769px), (max-height: 900px) {
  main .text-wrapper {
    max-width: 100%; /* never cap on tablets/phones */
  }
}

.text-wrapper h1{
    font-weight: 500;
    font-size: var(--fs-4xl);
   /* transform: scale(0.4, 1.3);*/
    width: 80vw;
    color: white;
    margin: 0 0 1rem 0;
    text-wrap: nowrap;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}
@media (min-width: 481px) and (max-width: 768px) {
  .text-wrapper h1 {
    font-size: calc(var(--fs-4xl) - 8px);
  }
}

.text-wrapper p{
    color: white;
    /*transform: scale(1, 2);*/
    font-size: var(--fs-lg);
    font-weight: 600;
    text-align: justify;
}


.stretch {
  display: inline-block;          /* necessary for transform */
}
h1 .stretch{
    transform: scale(1,2); 
    transform-origin: left center;
}

p .stretch{
    transform: scale(1, 1.8);
    transform-origin: left top;
}