:root {
    --h: 100vh;
    --c-a: #9c0d11;
    --c-b: #850001;
    --c-c: #bd1920;
    --c-d: #F5EA62;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(var(--h) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    background-color: #fff;
    background: url(bg.png) no-repeat center;
    background-position-y: bottom;
    background-size: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

body.loaded {
    opacity: 1;
}

.container {
    flex: 1;
    width: calc(100vw - 40px);
    max-width: 600px;
    background-color: var(--c-b);
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 600px) {
    .container {
        border-radius: 8px;
    }
}

.logo {
    max-width: 100%;
    max-height: 10vh;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    transform: translateY(-20px);
    opacity: 0;
    animation: slideDownFadeIn 0.5s ease-in-out forwards;
}

@keyframes slideDownFadeIn {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.announcement {
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    background-color: var(--c-c);
    color: var(--c-d);
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
    animation-delay: 1.5s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.announcement-text {
    display: inline-block;
    padding-left: 100%;
    animation: scroll 10s linear infinite;
    position: relative;
}

.announcement:hover .announcement-text {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

li {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--c-d);
    padding: 10px;
    border-radius: 5px;
    transition: border-color 0.3s, box-shadow 0.3s;
    opacity: 0;
    background: var(--c-c);
}

li:nth-child(odd) {
    transform: translateX(-20px);
    animation: slideInLeft 0.8s ease-in-out forwards;
    animation-delay: 0.8s;
}

li:nth-child(even) {
    transform: translateX(20px);
    animation: slideInRight 0.81s ease-in-out forwards;
    animation-delay: 0.8s;
}

li:hover {
    box-shadow: 0px 0px 10px rgba(245, 234, 98, .8);
}

.link-container {
    display: flex;
    align-items: center;
}

.link-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    fill: #fff;
}

a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.3s;
}

a:hover {
    color: rgba(255, 255, 255, .8);
}

.visit-btn {
    padding: 8px 16px;
    font-size: 16px;
    background-color: var(--c-a);
    color: var(--c-d);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.visit-btn:hover {
    background-color: var(--c-a);
}

.footer {
    margin-top: 20px;
    color: rgba(255, 255, 255, .8);
    ;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFadeIn 0.5s ease-in-out forwards;
    animation-delay: 1.5s;
}

@keyframes slideUpFadeIn {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(20px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}