html {
    --light-font-color: #f4f4f9;
    --light-gray-font-color: #989898;
    --global-background: #0d1425;
    --content-background: #172542;
    --content-background-light: #233862;
    --desaturated-content-background: #29324b;
    --accent-background: #65c3ff;
    --desatured-accent-background: #94c0e0;
    --warning-color: #e57c7c;
    margin: 0;
    padding: 0;
    color: var(--light-font-color);
    font-size: 1em;
}

body {
    margin: 0 auto;
    font-family: Helvetica, Arial, sans-serif;
    background-color: var(--global-background);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100vh;
}

a {
    text-decoration: none;
}

ul {
    margin: 0 15px;
    list-style-type: disclosure-closed;
}

li {
    margin-top: 2px;
    margin-bottom: 2px;
    line-height: 2.5;
}

h1 {
    font-size: 2.6em;
    margin: 0;
    text-align:center;
}

h2 {
    font-size: 2em;
    line-height: 1.6em;
    margin: 0;
}

h3 {
    margin: 0;
}

label {
    font-size: 1.4em;
}

.content {
    background-color: var(--content-background);
    margin: 9vh;
    border-radius: 1em;
    padding: 1.3rem;
    overflow-wrap: break-word;
    width: 70%;
    box-sizing: border-box;
}

.small-center {
    width: 30% !important;
    justify-self: center;
    align-self: center;
}

iframe{
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    border-color: #00000000;
}

.textinput {
    box-sizing: border-box;
    padding: 10px 6px;
    margin-bottom: 16px;
    border: 1px solid var(--light-font-color);
    border-radius: 1em;
    background-color: var(--content-background);
    color: var(--light-font-color);
    font-size: 1.2em;
    outline: none;
    transition: border-color 0.3s ease;
}

.textinput:disabled, .textinput:read-only {
    border: 1px solid var(--light-gray-font-color);
    color: var(--light-gray-font-color);
    background-color: var(--desaturated-content-background);
}

.note{
    font-size: 1.2em;
}

.date{
    display: inline;
}

.textinput:focus {
    border-color: var(--accent-background);
}

.button {
    padding: 0.5em 0.7em;
    background-color: var(--light-font-color);
    border: 1px solid var(--light-font-color);
    color: var(--content-background);
    font-weight: bold;
    font-size: 1.2em;
    border-radius: 2vh;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.warning-button {
    color: var(--warning-color) !important;
    border-color: var(--warning-color) !important;
}

.warning-button svg {
    stroke: var(--warning-color);
}

.column {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 5px;
}

.row {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.button:hover {
    background-color: var(--accent-background);
    border: 1px solid var(--light-font-color);
    color: var(--light-font-color);
}

.warning-button:hover{
    background-color: var(--warning-color) !important;
    border-color: var(--light-font-color) !important;
    color: var(--light-font-color) !important;
}

.warning-button:hover svg {
    stroke: var(--light-font-color);
    filter: none;
}

.square{
    aspect-ratio: 1;
    width: auto;
    height: 72%;
}

.button:active {
    transform: scale(0.98);
}

.button:disabled {
    background-color: var(--light-font-color) !important;
    transform: scale(1) !important;
    border: 1px solid var(--light-font-color) !important;
    color: var(--content-background) !important;
    opacity: 0.5;
}

@media screen and (max-aspect-ratio: 3/4) {
    body {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 1rem;
    }

    h1 {
        font-size: 2em;
    }

    .content {
        margin: 1rem;
        padding: 1.2rem;
        width: 80%;
    }

    p {
        font-size: 1.4em;
    }

    .textinput {
        font-size: 1.3em;
        padding: 14px 18px;
    }

    .button {
        font-size: 1.3em;
        padding: 14px 18px;
    }
}

#deck {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
}

.play {
    width: 100%;
    text-align: center;
}

.card {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 5px;
}

.play:hover + img {
    transform: scale(0.95);
}

.play:disabled + img {
    transform: none !important;
}

.wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.pile {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.controls {
    flex: 6;
}

#turn {
    font-size: 1.4em;
}

.center{
    text-align: center;
}

.flex-center {
    align-items: center;
    justify-content: center;
}

.space-between {
    align-items: center;
    justify-content: space-between;
}

.link-button {
    border-radius: 1.3rem;
    font-size: 2rem;
    font-weight: bold;
    background-color: var(--light-font-color);
    color: var(--content-background);
    padding: 0.2em;
    width: 70%;
    margin: 5px;
}

.link-button:hover {
    background-color: var(--accent-background);
    color: var(--light-font-color);
}

.link-button img {
    filter: invert();
}

.link-button:not(:disabled):hover svg {
    filter: invert();
}

.link-button:not(:disabled):hover img {
    filter: none;
}

.icon-button:not(:disabled):hover img {
    filter: invert();
}

.icon-button {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2em;
}

.icon{
    height: 3vh;
}

#back{
    position: absolute;
    top: 0.5em;
    left: 0.5em;
    width: fit-content;
    background-color: var(--content-background);
    color: var(--light-font-color);
    padding: 5px 15px;
    border-radius: 1em;
    font-size: 1.7em;
}

#back:not(:disabled):hover {
    background-color: var(--accent-background);
    border: 1px solid var(--light-font-color);
    color: var(--light-font-color);
}

.multi-select {
    position: relative;
    width: 200px;
    font-family: sans-serif;
}

.select-box {
    border: 1px solid #ccc;
    padding: 8px;
    background: white;
    cursor: pointer;
}

.options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--light-font-color);
    border: 1px solid var(--light-font-color);
    border-radius: 1em;
    color: var(--content-background);
    max-height: 150px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.options label {
    display: block;
    padding: 5px 10px;
    cursor: pointer;
    color: var(--content-background);
}

.options label:hover {
    background-color: #f0f0f0;
}

.multi-select.open .options {
    display: block;
}

.vert-center {
    align-items: center;
    margin-bottom: 5px;
}

.vert-center .textinput,button {
    margin-bottom: 0;
}

.error{
    color: #FF5555;
    font-size: 1.2em;
}

.card-icon {
    height: 100%;
    aspect-ratio: 2/3;
}

.pile div {
    margin-bottom: 0 !important;
}

.card-overview {
    justify-content: space-between;
    font-size: 1.4em;
    padding: 2px;
}

.bold {
    font-weight: bold;
}

.center-items{
    align-items: center;
}

.joined-input{
    width: 72%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    box-sizing: border-box;
    padding: 0;
    gap: 0;
}

.joined-input-left,.joined-input-right {
    border-radius: 1.3rem;
    margin: 0;
    font-size: 1.6rem;
    padding: 0.2em 0.5em;
    line-height: 2.4rem;
    text-align: center;
}

.joined-input-left {
    flex: 2 1;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.joined-input-right{
    flex: 1 1;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.profile-link{
    position: absolute;
    right: 2vh;
    top: 2vh;
    border-radius: 3vh;
    background-color: #172542AA;
    color: var(--light-font-color);
    gap: 0;
}

.profile-link:hover {
    background-color: var(--content-background);
}

.profile-pic {
    border-radius: 50%;
    height: 6vh;
    aspect-ratio: 1;
}

.profile-link span {
    padding: 1em;
    cursor: pointer;
}

.h80 {
    height: 80vh;
}

.h80p {
    height: 80%;
}

.w80 {
    width: 80vw;
}

.w80p {
    width: 80%;
}

.grow {
    flex-grow: 1;
}

.shrink {
    flex-shrink: 1;
}

.side-bar {
    flex: 1 1; /* will shrink because content is 70% width */
    gap: 5vh;
}

.no-margin {
    margin: 0 !important;
}

.no-margin-tl {
    margin-top: 0 !important;
    margin-left: 0 !important;
}

.no-padding {
    padding: 0 !important;
}

.player-card {
    background-color: var(--content-background-light);
    border-radius: 3vh;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5vh;
    margin-bottom: 0.5vh;
    font-size: larger;
    cursor: grab;
}

.setting {
    justify-content: space-between;
    align-items: center;
}

.setting * {
    font-size: 1em;
}

.setting > span {
    height: fit-content;
}

.switch {
    position: relative;
    display: inline-block;
    width: 3.75em;
    height: 2.125em;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light-gray-font-color);
    transition: 0.1s;
    border-radius: 2.125em;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.625em;
    width: 1.625em;
    left: 0.25em;
    bottom: 0.25em;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--content-background-light);
}

input:disabled:checked + .slider {
    background-color: var(--desatured-accent-background);
}

input:disabled + .slider {
    background-color: var(--light-gray-font-color);
}

input:focus + .slider {
    box-shadow: 0 0 0.0625em var(--accent-background);
}

input:checked + .slider:before {
    transform: translateX(1.625em);
}

.disabled {
    cursor: not-allowed;
}

.dragging {
    opacity: 0.25;
}

.player-card {
    padding-right: 0.3em;
}

.hide {
    display: none !important;
}

.chat-icon {
    background-color: var(--light-font-color);
    display: flex;
}

.chat-icon img {
    height: 4vh;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: var(--content-background-light);
    border: 1px solid var(--content-background);
    border-radius: 1vh;
    padding: 1vh;
    margin-top: 0.2rem;
    z-index: 100;
    font-size: 1.2rem;
    min-width: 10vw;
    line-height: 2rem;
}

.dropdown-menu.show {
    display: flex;
    flex-direction: column;
}

.dropdown-option{
    border: none;
    display: flex;
    flex-direction: row;
    background: #0000;
    color: inherit;
    align-items: center;
    gap: 1em;
    padding: 0.2vw;
    font-size: 1.2rem;
    line-height: 2rem;
}

.dropdown-option:hover {
    background: var(--accent-background);
    color: var(--content-background);
    border-radius: 0.5em;
}

.dropdown-option img {
    aspect-ratio: 1;
}

.chat {
    display: flex;
    border: 1px solid var(--light-font-color);
    border-radius: 1em;
    align-items: center;
    padding-left: 0.4em;
    gap: 0.2em;
}

.chat div {
    padding: 0.4em 0.4em 0.4em 0;
}

.chats{
    display: flex;
    gap: 0.2em;
}

.highlight {
    background-color: var(--accent-background);
    color: var(--content-background);
    border-radius: 1vh;
}

#notification {
    visibility: hidden;
    min-width: 20vw !important;
    width: fit-content !important;
    margin-left: -10vw;
    background-color: var(--content-background);
    color: var(--warning-color);
    text-align: center;
    border-radius: 2vh;
    padding: 16px;
    position: fixed !important;
    z-index: 1;
    left: 50%;
    bottom: 2vh;
    border: 3px solid var(--warning-color);
}

#notification-icon{
    width: 10vw;
}

#notification-content{
    font-size: 1.5rem;
}

#notification.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 5s;
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 2vh; opacity: 1;}
}

@keyframes fadeout {
    from {bottom: 2vh; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}