#modal {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation-name: fadeIn;
    animation-duration: 150ms;
    animation-timing-function: ease;
}

#modal > .modal-underlay {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

#modal > .modal-content {
    margin-top: 10vh;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border: solid 1px #999;
    border-radius: 8px;
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.3);
    background-color: white;
    padding: 20px;
    animation-name: zoomIn;
    animation-duration: 150ms;
    animation-timing-function: ease;
}

[data-theme="dark"] #modal > .modal-content {
    background-color: #1a1a2e;
    border-color: #444;
}

#modal > div.modal-content > table > tbody > tr > td {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

#modal > div.modal-content > table > tbody > tr.modal-lineup-sub > td {
    font-weight: 300;
    background-color: #f5efef !important;
}

#modal.closing {
    animation-name: fadeOut;
    animation-duration: 150ms;
    animation-timing-function: ease;
}

#modal.closing > .modal-content {
    animation-name: zoomOut;
    animation-duration: 150ms;
    animation-timing-function: ease;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes zoomIn {
    0% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@keyframes zoomOut {
    0% { transform: scale(1); }
    100% { transform: scale(0.9); }
}
