:root {
    --gray: #373737;
    --elblue: #00596b;
    --span: 100%;
    --unit: 0.1px;
    --header-height: 70px;
    --footer-height: 258px;
    --nav-width: min(22vw, 250px);
}

@font-face {
    font-family: "Inter";
    src: url('/static/fonts/Inter-Bold.woff') format('woff');
    font-weight: Bold;
}
@font-face {
    font-family: "Inter";
    src: url('/static/fonts/Inter-Medium.woff') format('woff');
    font-weight: Normal;
}

html{
    margin: 0;
    padding: 0;
    height: auto;        
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    overflow-x: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    font-family: "ExpresswaySoftBk", "helvetica", sans-serif;
    color: var(--gray);
}

body{
    background: var(--main-color);
    height: auto;
    width: auto;
    margin: 0;
    padding: 0;
}

h3{
    font-size: 18px;
}

h2{
    font-size: 17px;
    margin: 5px 5px 5px 5px;
}
h3{
    font-size: 14px;
    margin: 5px 5px 5px 5px;
}
p{
    font-size: 15px;
}

address{
    position: absolute;
    bottom: 0;
    right: 0;
    color: rgba(255,255,255,0.5);
    margin-right: 2em;
    padding-right: env(safe-area-inset-right);
    padding-bottom: 1em;
}

/* Slideshow */

.slideshow-container{
    position: fixed;
    top: 0;
    height: 100vh;
    width: 100vw;
    display: none;
    opacity: 0;
    transition: opacity 1s ease-out;
    z-index: 20;
    background-color: white;
    text-align: center;
        
}

.slide {
    display: block;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity ease-out 2s;
}

.slide :nth-child(0){
    opacity: 1;
}

.slide-img{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.slide-bg{
    position: absolute;
    top: -5%;
    left: -5%;
    height: 110%;
    width: 110%;
    object-fit: cover;
    filter: blur(20px) brightness(0.8) saturate(70%);
    -webkit-filter: blur(20px) brightness(0.8) saturate(70%);
}

.super-container{
    display: block;
    position: relative;
    width: 100vw;
    margin: 0;
    padding: 0;
    max-width:100%; 
}

.logo-background{
    position: sticky;
    top: 0;
    height: var(--header-height);
    width: var(--nav-width);
    background: rgba(255,255,255,1);
    border-bottom: var(--elblue) solid 6px;
    transition: 0.3s ease-out; 
    z-index: 10;
}

.logo-container{
    position: absolute;
    top: 0;
    height: 100%;
    padding-left: env(safe-area-inset-left);
}

.logo{
    position: sticky;
    top: 0;
    height: var(--header-height);
    width: var(--nav-width);
    z-index: 100;
    transition: 0.3s ease-out !important; 
}

.logo img{
    object-fit: contain; 
    width: 100%;
    z-index: 100;
    height: 100%;
}

.logo-large{
    height: min(min(15vw,15vh), 150px);
    width: min(min(35vw,35vh), 500px);
    margin: 0px;
    transition: 0.6s 2s ease-out !important; 
}

.cover{
    min-height: 100vh;
    position: relative;
    height: fit-content;
    width: 100%;
    margin: 0;
    padding: 0;
    -webkit-scroll-snap-coordinate: 0% 0%;
}

.header{
    position: sticky;
    top: 0;
    z-index: 9;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    background: rgb(255,255,255);
    align-items: center;
    text-align: center;
    border-bottom: var(--elblue) solid 6px;
    font-weight: bold;
    font-size: 18px; 
    padding-right: env(safe-area-inset-right);   
}

.header :nth-child(1) {
    flex: 0 0 100px;
}

.header :nth-child(2) {
    flex: 1;
}

.hero-container{
    position: relative;
    overflow: hidden;
    display: block;
    height: calc(100vh - var(--header-height) - var(--footer-height));
    transition: height 0.2s ease-out;
    width: 100%;
    background: url(media/christmastree.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.some{
    width: calc(100% - 25px);
    top: 0;
    height: 50px;
    justify-content: flex-end;
    display: flex;
}

.some img{
    height: 100%;
    object-fit: cover;
}

.some a{
    height: 40px;
    width: 40px;
    margin: 5px;
}

.hero-container video {
    height: 100%;
    width: 177.77777778vh; /* 100 * 16 / 9 */
    min-width: 100%;
    min-height: 56.25vw; /* 100 * 9 / 16 */
    position: absolute;
    left: 50%; /* % of surrounding element */
    top: 50%;
    transform: translate(-50%, -50%); /* % of current element */
    background: black;
}

.footer{
    margin-right: 30px;
    margin-left: 30px;
    position: relative;
    bottom: 0;
    height: fit-content;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: rgb(255,255,255);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.footer-left{
    flex: 0.8 0 350px;
    height: 100%;
    display: table;
}

.collapsible{
    margin-left: 5px;
    display:flex;
    justify-content: space-between;
    width:150px; 
    height:22.7px;
    background: #fff;
}

.collapsible img{
    object-fit: contain;
    height:25px;
    width: 8px;
    margin-right: 5px;
    transition: transform  0.2s ease-out;
}

.contact-list-container{
    display: table-row;
    vertical-align: bottom;
    width: 100%;
    height: fit-content;
    margin: 5px;
}

.contact-list{
    width: 100%;
    position: relative;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: hidden;
    transition: height 0.2s ease-out;
}

.contact-card{
    margin: 15px;
    height: 90px;
    margin: 10px 20px 10px 15px;
    padding: 0;
    display: flex;
    display: -webkit-flex;
    flex-direction: row;
}

.contact-card .portrait{
    height: 100%;
    width: 65px;
    border-radius: 15px 0 0 0;
    overflow: hidden;
}

.contact-card img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.contact-card .info h2, h3, p{
    margin: 0;
    margin-left: 5px;
}

.contact-card p:nth-child(1){
    margin-top: -2px;
    margin-bottom: 0;
    font-size: 15px;
    font-weight: 600;
}

.contact-card p:nth-child(2){
    font-size: 14px;
}
.contact-card a, p:nth-child(3){
    font-size: 13px;
    margin-top: -1px;
}
.contact-card a, p:nth-child(4){
    font-size: 13px;
    padding: 0;
    margin-top: 3px;
    margin-bottom: -1px;
}

a{
    text-decoration: none;
    color:inherit;
}

.contact-card a:hover{
    text-decoration: underline !important;
}

.contact-us{
    margin:5px 10px 10px 0;
    flex: 0 0 200px;
}

#contact-form{
    margin-left: 5px;
}

button{
    width: 207px;
    margin: 10px 0 0 0;
    height: 30px !important;
    font-family: "ExpresswaySoftBk", "helvetica", sans-serif;
    font-size: 14px;
    border-radius: 3px;
    border: rgb(150,150,150) 1.5px solid;
    padding-bottom: 3px;
    color: var(--gray);
}

button:hover{
    color: #111;
    background: #aaa;
}

.form-wrap button{
    width: 100% !important;
    margin: 0;
    height: 25px !important;
    font-family: "ExpresswaySoftBk", "helvetica", sans-serif;
    font-size: 14px;
    background: #ffffff;
    color: #757575;
    outline: none;
}

/* Form */

.form-wrap{
    transition: all 0.5s ease;
    height: fit-content;
}

.form-wrap input{
    border: rgb(150,150,150) 1.5px solid;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    height: 20px;
    width: 100%;
    resize: none;
    background: none;
    outline: none;
    transition: border 0.2s;
    margin-bottom: 5px;
    font-size: 14px;
    padding: 0;
}

.form-wrap textarea{
    height: 45px;
    text-align: start;
    resize: none;
    width: 100%;
    border: rgb(150,150,150) 1.5px solid;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    font-size: 14px;
    margin-bottom: 1px;
    font-family: "ExpresswaySoftBk", "helvetica", sans-serif;
    font-size: 14px;
    padding: 0;
}

.valid input, .valid textarea, button.valid{
    border: solid 1.5px rgb(16, 193, 42);
    box-shadow: 0px 0px 1px rgb(82, 199, 99);
}

.invalid input, .invalid textarea,button.invalid{
    border: solid 1.5px rgb(240, 102, 102);
    box-shadow: 0px 0px 1px rgb(234, 116, 116);
}

.form-wrap input:focus,
.form-wrap input:hover,
.form-wrap textarea:focus,
.form-wrap textarea:hover,
.form-wrap button:hover{
    border: solid 1.5px rgb(116, 143, 234) !important;
    box-shadow: 0px 0px 1px rgb(116, 143, 234) !important;
    outline: none;
}

/* Gallery */

.gallery-container{
    position: relative;
    top: 0;
}

.gallery{
    display: block;
    position: relative;
    height: fit-content;
}

.navbar-container{
    position: absolute;
    top: 0;
    display: block;
    width: var(--nav-width);
    height: 100%;
    transition: 0.3s ease-out; 
    margin: 0;
    left: 0;
    padding: 0;
}

.navbar{
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    background: rgba(0,89,107,0.35);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar:nth-child(1){
    flex: 0 0 100px;
}

.navbar-box{
    height: 100vh;
    width: 100%;
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.navbar a{
    font-family: Inter, "arial", sans-serif;
    font-weight: bold;
    text-decoration: none;
    color: rgb(255,255,255,0.3);
    font-size: min(3vw, 25px);
    padding-left: 2vw;
    transition: 0.3s;
}

.nav-focus a{
    color: white;
}

.some-wrap{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.section-container{
    height: fit-content;
    width: 100vw;
    display: block; 
    position: relative;
    top: 0;
}

section{
    pointer-events: none;
    scroll-snap-align: start;
    -webkit-scroll-snap-coordinate: 0% 0%;
    display: block;
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    box-shadow:  inset 0 -15px 15px -15px rgba(0,0,0,0.3);

}

section .clip{
    position: absolute;
    margin: auto;
    width: 100vw;
    height: 100%;
    clip: rect(0, auto, auto, 0);
}

section img{
    z-index: -1;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    transform: translate(0, 0);
    transition: transform 20ms linear;
}

.box{
    position: fixed;
    display: block;
    top: 65vh;
    height: fit-content;
    max-height: 25vh;
    overflow-y: hidden;
    width: 60vw;
    margin: 5vh;    
    margin-left: calc(((40vw - var(--nav-width)) / 2) + var(--nav-width));
    border: solid 3px rgba(255,255,255,0);
    background: rgba(0,89,107,0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    font-family: "inter";
    text-align: center;
    color: rgba(255,255,255,0);
    transition: background 1s 0.15s ease-out,
        border 1s 0.15s ease-out,
        backdrop-filter 1.5s 0.15s ease-out,
        -webkit-backdrop-filter 1s 0.15s ease-out,
        color 1s 0.15s ease-out,
        width 0.3s,
        margin 0.3s;
}

.box p{
    margin: 5px 15px;
    padding: 0;
    text-align: left;
    font-size: clamp(1vw, 10px, 3vw);
    line-height: 20px;
    color: rgba(255,255,255,0);
    transition: color 0.4s 0.15s ease-out;
}

.box h1{
    font-size: clamp(2.5vw, 20px, 5vw);
    width: 100%;
    margin: 0;
    padding: 0;
    color: white;
}

.box h2{
    font-size: clamp(1.5vw, 17px, 3.5vw);
    margin: 0.5vw;
    padding: 0;
    color: white;
}

.enhance{
    border: solid 3px rgba(255,255,255,1);
    background: rgba(0,89,107,0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.enhance p{
    color: rgba(255,255,255,1);
}