html {
    -webkit-text-size-adjust: 100%; /* Prevents iOS Safari zooming text */
    text-size-adjust: 100%; /* For non-webkit browsers */
}

.intro {
    width: 100%;
    height: 100%;
}

.intro img {
    width: 100%;
    height: 110%;
    max-width: 500px;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease-in-out;
    display: block;
    margin: auto;
    transform: translateY(-50px);
    z-index: 1;
    position: fixed;
    top: 0;
}

.intro.shrink {
    position: sticky;
    top: 100px;
}

.intro.shrink img {
    width: 50vw;
    max-width: 300px;
    height: 50vw;
    max-height: 300px;
    border-radius: 50%;
    object-fit: cover;
    transform: translateY(0);
    position: relative;
    top: 75px;
}

.intro.scrolled {
    position: relative;
    transform: translateY(9lvh);
}

#introText h1 {
    font-weight: 600;
    font-size: 25px;
    color: #434343;
}

#introText h2 {
    font-weight: 400;
    font-size: 17px;
    color: #434343;
    margin-top: -15px;
}

#introText {
    text-align: center;
    margin-top: 100px;
    display: none;
}

.shrink #introText {
    display: block;
}

#oneliner {
    color: white;
    text-align: left;
    margin-left: 50px;
    margin-right: 50px;
    background-color: rgba(255, 0, 0, 0.81);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    padding-bottom: 10px;
    padding-top: 10px;
    z-index: 20;
    bottom: 25%;
    transition: all 0.3s ease-in-out;
    position: absolute;
    max-width: 300px;
    padding-left: 5px;
    padding-right: 5px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    font-size: 0.5rem;
}

@media (min-width: 1024px) {
    #oneliner {
        font-size: 0.8rem;
    }
}

.shrink #oneliner {
    position: absolute;
    background-color: rgba(255, 0, 0, 0.9);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.scroll-indicator {
    position: fixed;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    display: block;
    filter: contrast(5);
    -webkit-filter: contrast(5);
}

.shrink .scroll-indicator {
    transform: translateX(-50%);
}

.scroll-indicator i {
    font-size: 50px;
    color: #ffffff;
    animation: bounce 1.5s infinite;
}

.shrink .scroll-indicator i {
    color: #a8a8a8;
}

#beginTest,
#dismissMessage {
    display: flex;
    height: 3.5rem;
    width: 35%;
    position: absolute;
    bottom: 7.5%;
    left: 50%;
    transform: translateX(-50%);
    color: black;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: solid;
    border-width: 0;
    filter: drop-shadow(0 0 7px rgba(0, 0, 0, 0.05));
    -webkit-filter: drop-shadow(0 0 7px rgba(0, 0, 0, 0.05));
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 20px;
    animation: beat 1.5s infinite;
    transform-origin: 25% 50%;
}
#dismissMessage {
    bottom: 25%;
    background-color: rgba(255, 255, 255, 0.8);
}
@media (min-width: 1024px) {
    #beginTest,
    #dismissMessage {
        height: 5rem;
        font-size: 1.5rem;
    }
}

#beginTest:hover,
#dismissMessage:hover {
    transform: translateX(-50%) scale(1.05);
    -webkit-filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes beat {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: scale(1) translateX(-50%);
    }
    40% {
        transform: scale(1.05) translateX(-50%);
    }
    60% {
        transform: scale(0.95) translateX(-50%);
    }
}
