:root {
    --circle-outline: #505050; /* Fixed typo */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #181818;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.counter {
    position: absolute; /* Changed from fixed to absolute */
    bottom: 2rem; /* Aligns the counter to the bottom */
    right: 2rem;  /* Aligns the counter to the right */
    color: var(--circle-outline);
    padding: 0; /* Removed padding */
    font-size: 10vw;
    font-family: 'Saol Display';
    font-weight: lighter;
    font-style: italic;
    z-index: 1000;
}

.site-teaser span {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2rem 4rem;
    color: var(--circle-outline); /* Updated the variable */
    font-size: 1rem;
    font-family: 'Saol Display';
    font-weight: lighter;
    font-style: italic; /* Fixed font-style */
}

.circles {
    position: absolute;
    left: 5rem;
    bottom: 5rem;
    width: 400px;
    height: 400px;
    border-radius: 100%;
}

.circle {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: none;
    border: 1px solid var(--circle-outline); /* Updated the variable */
    border-radius: 100%;
}

.circle-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
}

.circle-inner-rotator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 162.5px;
    height: 162.5px;
    background: none;
    border: 1px solid var(--circle-outline); /* Updated the variable */
    border-radius: 100%;
}

.block {
    position: absolute;
    top: -100px;
    left: 200px;
    width: 0px;
    height: 0px;
    display: none;
    background: none;
    border: 1px solid var(--circle-outline); /* Updated the variable */
    transform-origin: bottom;
}

.container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #d8d8d8); 
}

.container h1 {
    font-family: 'Saol Display';
    font-weight: 400;
    font-size: 7.5rem;
    letter-spacing: -0.5rem;
}

.container h1 span {
    font-style: italic;
}

.hi-link {
    text-decoration: none;
    color: inherit; /* Inherits the text color from the parent */
}

.hi-link:hover {
    text-decoration: underline; /* Optional hover effect */
}

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
    .counter {
        font-size: 15vw; /* Adjust font size for smaller screens */
    }

    .site-teaser span {
        font-size: 0.75rem; /* Adjust text size for better readability */
        padding: 1rem 2rem;
    }

    .circles {
        width: 250px;
        height: 250px;
        left: 2rem; /* Adjust the position */
        bottom: 2rem;
    }

    .circle-inner {
        width: 250px;
        height: 250px;
    }

    .circle-inner-rotator {
        width: 100px;
        height: 100px;
    }

    .container h1 {
        font-size: 5rem; /* Adjust header font size */
        letter-spacing: -0.25rem;
    }

    .container h1 span {
        font-size: 3rem; /* Adjust the span size */
    }
}

@media (max-width: 480px) {
    .counter {
        font-size: 20vw; /* Further reduce font size for very small screens */
    }

    .site-teaser span {
        font-size: 0.5rem;
        padding: 1rem;
    }

    .circles {
        width: 200px;
        height: 200px;
        left: 1rem; /* Adjust the position */
        bottom: 1rem;
    }

    .circle-inner {
        width: 200px;
        height: 200px;
    }

    .circle-inner-rotator {
        width: 80px;
        height: 80px;
    }

    .container h1 {
        font-size: 4rem; /* Further adjust header font size */
        letter-spacing: -0.2rem;
    }

    .container h1 span {
        font-size: 2rem;
    }
}
