@font-face {
    font-family: DyslexieFont;
    src: url(./font/DyslexieFont.woff2)
}

body {
    background: #000;
    margin: 0px;
    padding: 0px;
    overflow: hidden;
    font-family: 'DyslexieFont', sans-serif;
}


.background {
    position: absolute;
    inset: 0px;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: splash-background-pan 30s ease-in-out alternate infinite;
}

.main {
    position: absolute;
    inset: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;

    .logo {
        width: 100%;
        animation: splash-logo-bounce 10s 5s ease-in-out infinite;
        flex-grow: 1;
        background-image: url('./img/logo.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .info {
        .loading {
            filter: .3;
            width: 100px;
            height: 100px;
            margin: -10px 0px 30px 0px;
        }
    }
}

.wifi-notice {
    position: absolute;
    inset: 0px;
    z-index: 2;
    display: none;
    justify-content: center;
    align-items: center;

    .wifi-panel {
        width: min(400px, calc(100% - 40px));
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        border: 8px solid #c70e00;
        background: #ffc4c48c;
        border-radius: 48px;
        box-sizing: border-box;
        padding: 20px;
        backdrop-filter: brightness(0.6);
        -webkit-backdrop-filter: brightness(0.6);

        .wifi-header {
            color: #c70e00;
            font-size: 30px;
            font-weight: 900;
        }

        .wifi-description {
            text-align: center;
            color: #c70e00;
        }

        .wifi-details {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;


            .wifi-details-row {
                display: flex;
                justify-content: flex-start;
                align-items: center;
                width: 260px;

                .wifi-details-key {
                    display: inline-block;
                    width: 130px;
                    font-weight: 600;
                }

                .wifi-details-value {
                    display: inline-block;
                    width: 130px;
                    text-align: right;
                }
            }
        }
    }
}


@keyframes splash-background-pan {
    0% {
        transform: scale(1.1) translate(-4%, 0%);
    }

    100% {
        transform: scale(1.1) translate(4%, 0%);
    }
}

@keyframes splash-logo-bounce {
    0% {
        transform: scale(1);
    }

    5% {
        transform: scale(1.05);
    }

    10% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes notice-bounce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}