#overlay {
    display: none;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    opacity: 0.5;
}

#overlay.visible {
    display: flex;
}

.modal {
    width: 520px;
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #FFFFFF;
    border-radius: 8px;
    color: #000;
    flex-direction: column;
    padding: 32px;
    gap: 32px;
}

.modal.visible {
    display: flex;
}

.modal .title {
    font-family: 'Oswald';
    font-weight: 700;
    font-size: 28px;
    line-height: 110%;
    text-align: center;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.modal#popup-odds .title #name {
    margin-top: 4px;
    font-family: 'Oswald';
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    text-transform: uppercase;
    color: #000000;
    opacity: 0.5;
}

.modal#popup-odds .info {
    display: flex;
    justify-content: space-around;
}

.modal#popup-odds .info .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 1px;
}

.modal#popup-odds .info .team img {
    width: 40px;
    height: 40px;
}

.modal#popup-odds .info .team img.default {
    opacity: 0.2;
}

.modal#popup-odds .info .team .name {
    font-family: 'Oswald';
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    text-transform: uppercase;
}

.modal#popup-odds .score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Oswald';
    font-weight: 700;
    font-size: 26px;
    line-height: 32px;
    text-align: center;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.modal#popup-odds .odds {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.modal#popup-odds .odds .odd {
    padding: 12px 16px;
    width: 98px;
    height: 40px;
    background: #EEEEEE;
    border-radius: 4px;
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
}

.modal#popup-odds .odds .odd .type {
    font-family: 'Oswald';
    font-weight: 600;
    font-size: 12px;
    line-height: 100%;
    opacity: 0.5;
}

.modal#popup-odds .odds .odd .value {
    font-family: 'Oswald';
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    color: #1141FF;
}

.modal#popup-odds .score .score-delimiter {
    opacity: 0.5;
}

.modal #btn-close {
    position: absolute;
    top: 16px;
    right: 16px;
    cursor: pointer;
}

.modal .divider {
    width: 100%;
    height: 1px;
    background: #000000;
    opacity: 0.1;
}

.modal .button {
    width: 100%;
    height: 56px;
    background: #1A57DF;
    border-radius: 4px;
    padding: 0 24px;
    font-family: 'Oswald';
    font-weight: 600;
    font-size: 18px;
    line-height: 56px;
    text-transform: uppercase;
    color: #FFFFFF;
    text-align: center;
    cursor: pointer;
}

#popup .text, #popup-title-button .text {
    font-family: 'Segoe UI';
    font-weight: 400;
    font-size: 24px;
    line-height: 24px;
    text-align: center;
    color: #000000;
    margin-top: 16px;
}

@media screen and (max-width: 1439px) {
    .modal {
        width: 100%;
    }

    #popup .text {
        font-size: 16px;
        line-height: 18px;
    }
}
