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

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

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

.camera{
    width: 25%;
    max-width: 150px;
    aspect-ratio: 1;
    position: fixed;
    z-index: -1;
}
#camera1{
    top:0;
    left:0;
}
#camera5{
    top:0;
    right:0;
}
#camera2{
    bottom:0;
    right:0;
}
#camera4{
    top:0;
    left: 50%;
    transform: translateX(-50%);
}
#camera3{
    bottom:0;
    left:0;
}
#audio{
    display:none;
}



/* 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);
    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: 4;
    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: red;
    margin: 0 0 2rem 0;
}
.text-wrapper p{
    color: red;
    /*transform: scale(1, 2);*/
    font-size: var(--fs-md);
    font-weight: 600;
    line-height: 1rem;
    text-align: justify;
    padding-bottom: 7rem;
}

@media (max-width: 769px), (max-height: 900px) {
 .text-wrapper p{
    padding-bottom: 9rem;
 }
}

.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;
}