* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    --header-bg-col: rgb(26, 52, 100);
    --dark: var(--header-bg-col);
    --light: white;
    --body-bg-col: white;

    --pos-col-light: rgb(0,200,0);
    --pos-col-dark: rgb(0,150,0);
    --warn-col-light: rgb(200, 200, 0);
    --warn-col-dark: rgb(150,150,0);
    --neg-col-light: rgb(200,0,0);
    --neg-col-dark: rgb(150,0,0);
    --content-width: 60%;
    --popup-size-factor: 0.7;
}

@media (width < 1200px) {
    html {
        --content-width: 90%;
        --popup-size-factor: 0.8;
    }

    .hide-on-medium {
        display: none;
    }
}

@media (width < 800px) {
    html {
        --content-width: 95%;
        --popup-size-factor: 1;
    }

    .hide-on-medium {
        display: none;
    }

    .hide-on-small {
        display: none;
    }
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    background-color: var(--body-bg-col);
}

.header-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 10px;
    background-color: var(--header-bg-col)
}

.header-align-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
}

.header-align-container.left {
    justify-content: flex-start;
}

.header-align-container.right {
    justify-content: flex-end;
}

.header-nav-item {
    border: none;
    background-color: transparent;
    padding: 10px;
    font-size: 1.5rem;
    text-decoration: none;
    color: white;
    transition: 0.3s;
    cursor: pointer;
    white-space: nowrap;
}

.header-nav-item:hover, .header-nav-item.highlighted {
    backdrop-filter: brightness(1.5);
}

.content-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    /* background-color: blue; */
    overflow: hidden;
    width: var(--content-width);
    padding: 10px;
}

.flex-container {
    display: flex;
    align-items: center;
}

.flex-container.col {
    flex-direction: column;
    height: 100%;
}

.flex-container.row {
    flex-direction: row;
    width: 100%;
}

.button {
    border: none;
    padding: 5px 20px 5px 20px;
    background-color: cornflowerblue;
    font-weight: bold;
    font-size: 1.5rem;
    border-radius: 5px;
    margin: 5px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    /* flex: 1; */
}

.reslulst-container {
    display: flex;
    flex-direction: column;
    margin: 5px;
}

.location-el {
    padding: 5px;
    font-size: 1.5rem;
    transition: 0.3s;
    cursor: pointer;
}

.location-el:hover {
    backdrop-filter: brightness(0.8);
}

.button:hover {
    background-color: rgb(60, 117, 223);
}

.textbox {
    border: 1px solid black;
    padding: 5px;
    background-color: white;
    font-size: 1.5rem;
    border-radius: 5px;
    margin: 5px;
    color: black;
    flex: 1;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* background-color: rgba(57, 62, 70, 0.3); */
    backdrop-filter: blur(5px);
    z-index: 300;
    animation: fade-in 0.3s;
}

.loading-overlay::after {
    content: " ";
    align-self: center;
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 5px solid cornflowerblue;
    border-color: cornflowerblue transparent cornflowerblue transparent;
    animation-name: rotate;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes rotate {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
}

.popup-container {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(57, 62, 70, 0.3);
    backdrop-filter: blur(5px);
    z-index: 100;
}

.popup-container * {
    z-index: 101;
}

.popup {
    overflow: hidden;
    padding: 10px;
    position: relative;
    border-radius: 10px;
    background-color: blue;
    width: calc(var(--content-width) * var(--popup-size-factor));
    min-height: 50px;
    background-color: var(--body-bg-col);
    animation: appear 0.5s;
}

@keyframes appear {
    0% {
        transform: scale(0.5);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0%;
    }
    100% {
        opacity: 100%;
    }
}

.popup-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    /* background-color: transparent; */
    color: var(--light);
    cursor: pointer;
    background-color: var(--neg-col-dark);
    font-size: 20px;
    padding: 5px;
    border-bottom-left-radius: 5px;
}

.popup-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.overlay-msg {
    z-index: 200;
    position: absolute;
    top: 0;
    left: 50%;
    width: fit-content;
    padding: 10px;
    border-radius: 0px 0px 10px 10px;
    background-color: var(--body-bg-col);
    border-color: var(--dark);
    border: 2px solid;
    border-top: none;
    border-left: 10px solid;
    min-width: 15%;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    transform: translateY(-100%) translateX(-50%);
    transition: 0.3s;
}

.overlay-msg.error {
    background-color: var(--body-bg-col);
    border-color: var(--neg-col-light);
}

.overlay-msg.warning {
    background-color: var(--body-bg-col);
    border-color: var(--warn-col-light);
}

.overlay-msg.correct {
    background-color: var(--body-bg-col);
    border-color: var(--pos-col-light);
}

.overlay-msg.open {
    transform: translateY(0) translateX(-50%);
}

.full-flex {
    flex: 1;
}

.list-table {
    font-size: 1.2rem;
    border-collapse: collapse;
    max-width: 100%;
}

.list-table tr {
    transition: 0.1s;
    cursor: pointer;
}
.list-table tr:nth-child(even) {
    backdrop-filter: brightness(0.8);
}

.list-table tr:hover {
    backdrop-filter: brightness(0.7);
}

.list-table th {
    text-align: left;
    padding: 5px;
}

.list-table td {
    /* border-left: 1px solid var(--dark); */
    padding: 5px;
}

.list-table td.center {
    text-align: center;
}
