@font-face {
    font-family: 'Into Dot Matrix';
    src: url('./media/intodotmatrix.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Graphik';
    src: url('./media/Graphik-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Graphik', Arial, sans-serif;
    background-color: #8b9ab1;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Text element base styles */
.text-element {
    position: absolute;
    font-weight: 300;
    line-height: 1.2;
}

/* Top Left */
.top-left {
    top: 4vh;
    left: 4vw;
    max-width: 30vw;
    font-size: 1.728vh;
    font-family: 'Graphik', Arial, sans-serif;
    font-weight: normal;
    letter-spacing: 0.01em;
}

/* Top Right */
.top-right {
    top: 4vh;
    right: 4vw;
    text-align: right;
    max-width: 30vw;
    font-size: 1.728vh;
    font-family: 'Graphik', Arial, sans-serif;
    font-weight: normal;
    letter-spacing: 0.01em;
}

/* Center - ADESA Logo */
.center {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.adesa-logo {
    display: flex;
    gap: clamp(0.5rem, 2vw, 2rem);
    justify-content: center;
    align-items: center;
    font-family: 'Into Dot Matrix', monospace;
}

.letter {
    font-size: clamp(1rem, 4vw, 3rem);
    font-weight: normal;
    position: relative;
    display: inline-block;
    color: #ffffff;
    font-family: inherit;
}

/* Dot-matrix effect for letters - more subtle like the image */
.letter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 20% 60%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 60% 60%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 25% 25%;
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.4;
}

/* Bottom Left */
.bottom-left {
    bottom: 4vh;
    left: 4vw;
    font-size: 1.728vh;
    font-family: 'Graphik', Arial, sans-serif;
    font-weight: normal;
    letter-spacing: 0.01em;
}

.bottom-left a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.6);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.3s ease;
}

.bottom-left a:hover {
    text-decoration-color: rgba(255, 255, 255, 1);
}

/* Bottom Right */
.bottom-right {
    bottom: 4vh;
    right: 4vw;
    text-align: right;
    font-size: 1.728vh;
    font-family: 'Graphik', Arial, sans-serif;
    font-weight: normal;
    letter-spacing: 0.01em;
}

.bottom-right a {
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease;
    display: inline-block;
    cursor: pointer;
}



/* Individual styles are now defined per element for better control */

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .top-left,
    .top-right {
        max-width: 40vw;
        font-size: 1.44vh;
    }
    
    .adesa-logo {
        gap: clamp(0.75rem, 2.5vw, 2.5rem);
    }
    
    .letter {
        font-size: clamp(1.2rem, 6vw, 4rem);
    }
    
    .bottom-left,
    .bottom-right {
        font-size: 1.44vh;
    }
    
    .center {
        top: 50%;
    }
}

@media (max-width: 480px) {
    .top-left,
    .top-right {
        max-width: 45vw;
        font-size: 1.7vh;
    }
    
    .adesa-logo {
        gap: clamp(1rem, 3vw, 3rem);
    }
    
    .letter {
        font-size: clamp(1.5rem, 8vw, 5rem);
    }
    
    .bottom-left,
    .bottom-right {
        font-size: 1.7vh;
        bottom: 12vh;
    }
    
    .center {
        top: 46%;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .top-left,
    .top-right {
        top: 3vh;
        font-size: 0.65rem;
    }
    
    .bottom-left,
    .bottom-right {
        bottom: 3vh;
        font-size: 0.65rem;
    }
    
    .letter {
        font-size: clamp(1.8rem, 10vh, 4.5rem);
    }
}

/* Mobile-only line break */
.mobile-break {
    display: none;
}

@media (max-width: 480px) {
    .mobile-break {
        display: inline;
    }
}

/* Remove the glow animation to match the image */
/* The dot-matrix effect is now handled by the ::before pseudo-element */ 