:root {
    --rounded-light-color: white;
    --rounded-dark-color: #171D26;

    --input-margin-top: 1.4vh;
    --input-margin-left: auto;
    --input-padding-left: 0.7vw;
    --input-width: auto;

    --div-margin-top: auto;
    --blin-yellow: #F8C024;
}

html {
    background-color: #F7F7F7;
    height: 100%;
}

body {
    height: 100%;
    min-height:100%;
}

textarea {
    font-family: "Lato", sans-serif;
}

input[type=text] {
    font-family: "Lato", sans-serif;
}

.edit-table {
    border-collapse: collapse;
    width: 90%;
    margin-left: 3vw;
    margin-top: 3vh;

    font-size: 2.2vh;
}

.edit-table td {
    padding-top: 1.9vh;
    padding-bottom: 1.9vh;
}

.edit-table td:first-child {
    width: 80%;
}

.edit-table td:nth-child(2) {
    cursor: pointer;
    width: 10%;
    text-align: center;
}

.edit-table td:nth-child(2):hover {
    color: green;
}

.edit-table td:last-child {
    cursor: pointer;
    border-left: 1px solid black;
    text-align: center;
}


.edit-table td:last-child:hover {
    color: red;
}

.edit-table tr {
    border-bottom: 1px solid black;
}

.hover:hover {
    cursor: pointer;
}

input.rounded {
    border-radius: 25px;
    background-color: var(--rounded-light-color);
    height: 3.7vh;
    width: var(--input-width);
    margin-top: var(--input-margin-top);
    margin-left: var(--input-margin-left);
    padding-left: var(--input-padding-left);
}

textarea.rounded {
    border-radius: 25px;
    background: transparent;
    padding-top: 10px;
    padding-left: var(--input-padding-left);
}

div.rounded {
    background-color: var(--rounded-light-color);
    color: #5E6A65;
    border-radius: 15px;

    width: var(--width, 80vw);
    height: var(--height, 56vh);
    margin-right: 1.5vw;
    margin-left: 2.5vw;
    margin-top: var(--div-margin-top);

    overflow: auto;
}

button.blin {
    border-radius: 25px;
    color: black;
    background-color: var(--blin-yellow);
    font-weight: bold;
    cursor: pointer;
}

button.neutral {
    border-radius: 25px;
    color: black;
    background-color: var(--rounded-light-color);
    font-weight: bold;
    cursor: pointer;
}

input[type=submit].blin {
    border-radius: 25px;
    color: black;
    background-color: var(--blin-yellow);
    font-weight: bold;
    cursor: pointer;
}

input[type=submit].neutral {
    border-radius: 25px;
    color: black;
    background-color: var(--rounded-light-color);
    font-weight: bold;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    padding-top: 37vh;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    border-radius: 25px;
    background-color: var(--rounded-light-color);
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 33.7vw;
    min-height: 25.6vh;
    text-align: center;
    font-weight: bold;
    font-size: 25px;
}

input.edit {
    background: url("/static/imgs/edit.svg") no-repeat scroll 95% 0.8vh;
    background-size: 1vw;
    padding-left: 2vw;
}

label.edit {
    margin-top: var(--margin-top, 2vh);
    margin-left: var(--margin-left, 2vw);
    padding-left: var(--padding-left, 2vw);
    display: inline-block;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    appearance: textfiedl;
    -moz-appearance: textfield;
}

img.background-upload {
    position: relative;
    top: 0;
    left: 0;
    width: 40vw;
    height: 40vh;
    border: 1px blue solid;
}

.mcolumn {
    float: left;
    padding: 10px;
}

.mcolumn {
    float: left;
    width: 50%;
    padding: 10px;
    box-sizing: border-box;
}

.mcolumn.left {
    width: 55%;
    padding-left: 2.5vw;
}

.mcolumn.right {
    width: 45%;
    float: right;
}

.upload-div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    border: 1px dashed #ccc;
    border-radius: 8px;
    overflow: hidden;
}

.upload-div img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.info-icon {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.2em;
}

.tooltip {
    display: none;
    position: absolute;
    top: -10px;
    right: 25px;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    white-space: nowrap;
}

.info-icon:hover + .tooltip {
    display: block;
    top: 30px;
}

@media only screen and (max-width: 800px) {
    div.rounded {
        width: 95vw;
    }
}

@media (prefers-color-scheme: dark) {
    html {
        background-color: #060D16;
    }

    div.rounded {
        background-color: var(--rounded-dark-color);
        color: white;
    }

    input.rounded {
        color: #fff;
        background-color: var(--rounded-dark-color);
    }

    textarea.rounded {
        color: #fff;
        background-color: var(--rounded-dark-color);
    }

    button.neutral {
        color: white;
        background-color: var(--rounded-dark-color);
    }

    input[type=submit].neutral {
        color: white;
        background-color: var(--rounded-dark-color);
    }

    img.dark-mode {
        filter: invert(100%);
    }

    .modal-content {
        background-color: var(--rounded-dark-color);
        color: white;
    }

    .edit-table {
        color: white;
    }

    .edit-table tr {
        border-bottom: 1px solid white;
    }

    .edit-table td:last-child {
        border-left: 1px solid white;
    }
}

.add-btn{
  border-radius: 25px;
  color:  black;
  background-color: var(--rounded-light-color);
  font-weight: bold;
  cursor: pointer;
}