.welcome-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #eee;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11;
    transition: opacity 0.3s ease;
}

.welcome-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.welcome-elements {
    display: flex;
    flex-direction:column; 
    justify-content: center;
    align-items: center;
    transition: opacity 0.7s ease-in-out;
    width: 40%;
}

.welcome-logo {
    width: calc(50px + 3vw);
    pointer-events: none;
    padding-bottom: 10px;
}

.welcome-description {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5em;
    text-align: center;
}

.welcome-date {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1em;
    text-align: center;
}

.win-loss-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ccc;
    color: black;
    display: flex;
    align-items: center;
    z-index: 101;
    opacity: 1;
    transition: transform 0.35s ease, opacity 0.3s ease-in-out;
}

.win-loss-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-200px);
}

.win-loss-elements {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0px 80px;
}

.win-loss-close {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 20px;
    right: 20px;
    cursor: pointer;
    user-select: none;
    padding: 5px;
}

.win-loss-close-button {
    width: 12px;
    height: 12px;
}

#win-loss-heading {
    padding: 0;
}

#win-loss-desc {
    margin-top: 15px; 
    text-align: left;
    font-size: 1.2em;
    line-height: 1.3;
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
}

.modal-wrap {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 150px;
    overflow: hidden;
}

.modal-content {
    position: relative;
    max-width: 600px;
    width: 80%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
    overflow: hidden;
    border-radius: 15px;
    z-index: 10;
}

.modal-content-top {
    position: relative;
    text-align: center;
    padding: 15px;
    box-shadow: 0 1px 0 #dfdfdf;
}

.modal-content-close {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    transition: 0.3s;
    padding: 5px;
    cursor: pointer;
    user-select: none;
}

.close-modal-button {
    width: 10px;
    height: 10px;
}

.modal-content-body {
    padding: 20px 30px 30px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;

    opacity: 0.2;
    background-color: black;
}

#howto-start, #howto-dest {
    font-weight: 700;
    color: black;
    text-transform: uppercase;
    font-family: sans-serif;
}

.courier {
    font-family: 'Courier New', Courier, monospace;
}


@media screen and (max-width: 850px) {
    .welcome-elements {
        width: 70%;
    }
}

@media screen and (max-width: 580px) {
    .welcome-elements {
        width: 70%;
    }

    .win-loss-elements {
        padding: 0px 40px;
    }

    .modal-wrap {
        padding-top: 100px;
    }
}