:root {
    --real100vh: 100vh;
}

body {
    margin: 0;
    width: 100%;
}

@font-face {
    font-family: 'Switzer Variable';
    src: url(../resources/fonts/Switzer-Variable.ttf);
}

@font-face {
    font-family: 'Switzer Light';
    src: url(../resources/fonts/Switzer-Light.otf);
}

/* Intro */
#intro {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    height: var(--real100vh);
    position: fixed;
}

#intro img, video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    clip-path: inset(0px);
}

/* Contact */
#contact {
    position: absolute;
    bottom: 2vw;
    left: 2.5vw;
    color: #666666;
    font-family: 'Switzer Variable';
    opacity: 0;
    animation-fill-mode: forwards;
    animation-name: fade-in;
    animation-duration: 2s;
    animation-delay: 7.5s;
}

@keyframes fade-in {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }

h1 {
    font-size: 1.35rem;
    font-weight: 300;
    margin-bottom: 0.1rem;
}

#contact a {
    text-decoration: none;
    color: #666666;
    font-size: 1.4rem;
    font-weight: 300;
}

/* Mailto messages */
.tooltip-container {
    position: relative;
    margin-left: 0.5rem;
    display: inline;
}

p:has(+.tooltip-container) {
    display: inline;
}

.custom-tooltip {
    position: absolute;
    font-size: 0.8rem;
    top: -34px;
    transform: none;
    display: none;
    padding: 6px 8px;
    font-weight: 600;
    background-color: #000000c2;
    border-radius: 4px;
    color: #fff;
}

@media screen and (max-width: 1400px)  {

    h1 {
        font-size: 1.25rem;
    }
    
    #contact a {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 1200px) {

    #contact {
        bottom: 2rem;
        left: 2.5rem;
    }
}

@media screen and (max-width: 576px) {

    #contact {
        bottom: 2rem;
        left: 2.25rem;
    }

    h1 {
        font-size: 1rem;
        margin-bottom: 0;
        font-weight: 300;
    }

    #contact a {
        font-size: 1.1rem;
        font-weight: 300;
    }
}