* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #8fd3f4;
    font-family: Arial, Helvetica, sans-serif;
}

.welcome-screen {
    position: relative;
    width: min(100vw, 177.68vh);
    aspect-ratio: 1672 / 941;
}

.title-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#start-adventure {
    position: absolute;
    left: 61%;
    bottom: 3%;
    transform: translateX(-50%);

    padding: 14px 30px;
    border: 4px solid white;
    border-radius: 30px;

    color: white;
    background: #613680;

    font-size: clamp(16px, 2vw, 26px);
    font-weight: bold;

    cursor: pointer;

    box-shadow:
        0 5px 0 #3f2059,
        0 8px 14px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

#start-adventure:hover {
    background: #7a4a99;
    transform: translateX(-50%) scale(1.06);
}

#start-adventure:active {
    transform: translateX(-50%) translateY(4px);
    box-shadow:
        0 2px 0 #3f2059,
        0 4px 8px rgba(0, 0, 0, 0.2);
}.parent-link {
    position: absolute;
    top: 22%;
    left: 1%;
    z-index: 10;

    padding: 9px 16px;

    color: #613680;
    background: rgba(255, 255, 255, 0.94);
    border: 3px solid #f3c83f;
    border-radius: 24px;

    font-size: clamp(12px, 1.3vw, 18px);
    font-weight: bold;
    text-decoration: none;

    box-shadow:
        0 4px 0 #d9a91c,
        0 7px 12px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.parent-link:hover {
    background: #fff8cf;
    transform: scale(1.05);
}/* Welcome screen on phones */
@media (max-width: 600px) {
    body {
        padding: 18px 0;
        overflow-y: auto;
    }

    .welcome-screen {
        width: 100%;
        aspect-ratio: auto;

        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;

        padding: 0 10px;
    }

    .parent-link {
        position: static;
        order: 1;

        font-size: 14px;
        padding: 8px 14px;
    }

    .title-image {
        order: 2;

        width: 100%;
        height: auto;
        border-radius: 12px;
    }

    #start-adventure {
        position: static;
        order: 3;

        left: auto;
        bottom: auto;
        transform: none;

        padding: 12px 25px;
        font-size: 18px;
    }

    #start-adventure:hover {
        transform: scale(1.04);
    }

    #start-adventure:active {
        transform: translateY(4px);
    }
}