body {
    padding: 0;
    margin: 0;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: row;
    font-family: 'Ubuntu', Arial, sans-serif;
    user-select: none;
}
nav, main {
    display: flex;
}
nav {
    z-index: 10;
    width: 300px;
    max-width: 50%;
    border-right: 1px solid #252525;
    box-shadow: 0 0 5px 0 #252525;
}
main {
    flex-grow: 1;
    padding: 5px 10px;
}
#nav, #main {
    overflow: auto;
    flex-grow: 1;
}
#nav {
    display: flex;
    flex-direction: column;
    margin: 5px 5px 0 5px;
}
#main {
    display: flex;
    align-items: center;
    justify-content: center;
}

.event {
    display: flex;
    flex-direction: column;
    background-color: #e7e7e7;
    margin-bottom: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: 100ms;
}
.event.urgent {
    padding: 1px 6px;
    border: 2px solid #6118df;
}
.event:hover {
    background-color: #cbcbcb;
}
.active {
    background-color: #ababab !important;
}
.name {

}
.date {
    color: #484848;
}

.results {
    display: grid;
    grid-template-rows: auto auto 1fr;
    grid-template-columns: auto 1fr;
    gap: 5px;
}
.recommendation {
    grid-row: 1 / span 2;
    grid-column: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 50px;
    border: 2px solid #484848;
    font-size: x-large;
}
.column-label {
    grid-row: 1;
    grid-column: 3 / span 7;
    text-align: center;
    font-weight: bold;
    padding: 3px;
}
.row-label {
    grid-row: 3 / span 7;
    grid-column: 1;
    writing-mode: vertical-rl;
    text-align: center;
    font-weight: bold;
    padding: 3px;
    transform: rotate(180deg); /* To rotate the text 90 degrees counterclockwise */
}
.column-header {
    grid-row: 2;
}
.row-header {
    grid-column: 2;
}
.column-header, .row-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}
.cell {
    border-radius: 2px;
    width: 52px;
    height: 52px;
    padding: 2px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #484848;
}
.probability {
    font-size: small;
    font-weight: lighter;
}
.expectation {
    font-weight: bold;
    text-align: center;
}
.s-deviation {
    font-size: small;
    font-weight: lighter;
}
.error {
    background-color: #ff8484;
    border: 1px solid #e70000;
    border-left-width: 5px;
    padding: 5px 10px;
    max-width: 200px;
}

.login {
    display: flex;
    width: 200px;
}
.login > input {
    display: block;
    flex-grow: 1;
    border: 1px solid #484848;
    margin: 0;
    padding: 2px 5px;
    min-width: 0;
    outline: none;
}
.login > input:focus {
    outline: none;
}
.login > button {
    display: block;
    flex-grow: 1;
    width: 70px;
    border: 1px solid #484848;
    border-left: none;
    min-width: 0;
    min-height: 30px;
}

.wave span {
    display: inline-block;
    animation: wave 1s ease-in-out infinite;
    font-weight: bold;
}
@keyframes wave {
    0%, 100% {
        transform: translateY(0);
        color: #000000;
    }
    50% {
        transform: translateY(-2px);
        color: #6118df;
    }
}

.gallagher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    padding: 0.5rem 1rem;
    font-weight: bold;
    border-radius: 0.3rem;
}
