@font-face {
    font-family: 'Triakis-Regular';
    src: url('Font.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Triakis-Heavy';
    src: url('Font-Heavy.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
:root {
    --bgColor: #223344;
    --bgColor2: #090a0f;
    --accentColor: #FFF;
    --font: 'Triakis-Regular', sans-serif;
    --delay: .3s;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--font);
    animation: 1s ease-out var(--delay) 1 transitionAnimation; /* duration/timing-function/delay/iterations/name */
    animation-fill-mode: forwards;
    background: #000 url('bg.jpg') no-repeat center;
    background-size: cover;
}

#container {
    display: flex;
    flex-direction: column;
    justify-content: center; /* centers horizontally */
    align-items: center; /* centers vertically */
    height: 100vh; /* full height of the viewport */
    max-width: 675px;
    position:relative;
    margin: 0 auto;
    padding: 10px; /* Add some padding to prevent content from touching the edges */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

#userName {
    color: var(--accentColor);
    font-size: 1.5rem;
    line-height: 1.25;
    font-family: var(--font);
    text-align: center;
    text-decoration: none;
    word-wrap: break-word; /* Allow text to wrap and prevent overflow */
}

#userName span {
    font-family: "Triakis-Heavy", sans-serif;
    font-size: 3rem;
}

#links {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 27px auto;
    box-sizing: border-box; /* Ensure padding and borders are included in the total width */
}

.link {
    max-width: 100%;
    background-color: transparent;
    color: var(--accentColor);
    border: solid var(--accentColor) 2px;
    border-radius: 10px;
    font-size: 1.5rem;
    text-align: center;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 10px; /* 17px */
    text-decoration: none;
    /* transition: all .25s cubic-bezier(.08, .59, .29, .99); */
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 600px) {
    #container {
        padding: 20px; /* Increase padding for smaller screens */
    }

    #userName span {
        font-size: 2rem; /* Reduce font size for smaller screens */
    }

    .link {
        font-size: 1.2rem; /* Reduce font size for smaller screens */
    }
}

@media (hover: hover) {
    .link:hover {
        background-color: var(--accentColor);
        color: var(--bgColor);
    }
}

.link:active {
    background-color: var(--accentColor);
    color: var(--bgColor);
}

/*-------------------------animations-----------------------*/
@keyframes transitionAnimation {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes animate {
    0% {
      background-position: -500%;
    }
    100% {
      background-position: 500%;
    }
}

@keyframes animStar {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-2000px);
    }
}

