*{
    transition: background-color 0.2s ease;
}

body {
    margin: 0;
    background-color: #0d181c;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    scrollbar-width: thin;
}

nav {
    position: relative;
    width: 100%;
    height: 50px;
    background-color: #0d181c;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: #0093F3 1px solid;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 5px 0;
    padding: 0;
    font-weight: normal;
}

nav img {
    margin: 0;
    padding: 0 10px;
    font-size: 1.5rem;
}

button {
    padding: 10px;
    background-color: #0d181c;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background-color: #404B4F;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    text-align: left;
    padding: 10px;
    border-bottom: #fff 1px solid;
}

table td {
    padding: 10px;
    border-bottom: #fff 1px solid;
}

select {
    padding: 10px;
    background-color: #0d181c;
    color: #fff;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 6px;
}

.page-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-container .page-list {
    position: relative;
    width: 20%;
    height: calc(100vh - 51px);
    background-color: #0d181c;
    overflow-y: auto;
}

.page-container .page-list .page-item {
    position: relative;
    width: 100%;
    min-height: 50px;
    background-color: #273236;
    margin-bottom: 5px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: background-color 0.2s ease-in-out;
}

.page-container .page-list .page-item p {
    margin-left: 10px;
}

.page-container .page-list .page-item:hover {
    background-color: #404B4F;
}

.search-page-list {
    height: 50px;
    width: 100%;
    border: none;
    margin-bottom: 5px;
    padding:0;
    text-align: center;
    background-color: #273236;
    color: #fff;
}

.box-green{
    background-color: #25ff79;
    color: #fff;
    margin-left: 10px;
    padding: 10px;
    border-radius: 6px;
}

.box-red{
    background-color: #ff2525;
    color: #fff;
    padding: 10px;
    margin-left: 10px;
    border-radius: 6px;
}

.page-container .page-info {
    position: relative;
    width: 80%;
    height: calc(100vh - 51px);
    overflow-y: auto;
}

.page-container .overview {
    margin: 10px;
}

.infobox {
    width: calc(100% - 20px);
    background-color: #273236;
    border-radius: 6px;
    margin: 10px 0;
    padding: 10px;
}

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

.overlay-window{
    padding: 10px;
    position: relative;
    width: 80%;
    height: 80%;
    background-color: #273236;
    border-radius: 6px;
    overflow-y: auto;
    border: #fff 1px solid;
}

.startup-window{
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background-color: #273236;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.startup-window-glow{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border-radius: 6px;
    padding: 10px;
    background: linear-gradient(45deg, rgb(0, 119, 255) 0%, rgb(35, 0, 82) 100%);
    background-size: 400% 400%;
    filter: blur(10px);
    animation: glow 5s ease infinite;
}

.loader{
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 10px solid #fff;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

.free-list{
    list-style: none;
    padding: 5px;
}

.free-list li{
    padding: 0;
    margin: 0;
    margin-bottom: 5px;
}

.error{
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 10px solid #ff2525;
    border-top-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.error p {
    color: #ff2525;
    font-size: 5rem;
    font-weight: bold;
}


/*
################################################
Keyframes
################################################
*/

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

@keyframes glow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/*
################################################
Media Queries
################################################
*/

@media (prefers-color-scheme: light) {
    body {
        background-color: #ffffff;
        color: #000;
    }
    nav {
        background-color: #e3e9ec;
        color: #000;
    }
    nav img {
        filter: invert(1);
    }
    table th {
        border-bottom: #000 1px solid;
    }
    table td {
        border-bottom: #000 1px solid;
    }
    button{
        background-color: #fff;
        color: #000;
    }
    button:hover{
        background-color: #fafafa;
    }
    select{
        background-color: #fff;
        color: #000;
    }
    .page-container .page-list {
        background-color: #fff;
    }
    .page-container .page-list .page-item {
        background-color: #e3e9ec;
        color: #000;
    }
    .page-container .page-list .page-item:hover {
        background-color: #e6e6e6;
    }
    .search-page-list {
        background-color: #e3e9ec;
        color: #000;
    }
    .page-container .page-info {
        background-color: #fff;
    }
    .infobox {
        background-color: #e3e9ec;
        color: #000;
    }
    .overlay {
        background-color: rgba(255, 255, 255, 0.5);
    }
    .overlay-window{
        background-color: #e3e9ec;
        color: #000;
        border: #000 1px solid;
    }
    .startup-window{
        background-color: #fff;
        color: #000;
    }
    .startup-window-glow{
        background: linear-gradient(0deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 100%);
    }
}