:root {
    /* Light theme variables */
    --background: rgb(221, 234, 242);
    --text: rgb(36, 39, 45);
    --theme: rgb(86, 111, 124);
    --link: rgb(34, 142, 200);
    --code: #c8d5df;
}

@font-face {
    font-family: "Computer Modern";
    src: url("./Fonts/cmunrm.ttf") format("truetype"); /* Regular */
}

@font-face {
    font-family: "Computer Modern";
    src: url("./Fonts/cmunbx.ttf") format("truetype"); /* Bold */
    font-weight: bold;
}

@font-face {
    font-family: "Computer Modern";
    src: url("./Fonts/cmunti.ttf") format("truetype"); /* Italic */
    font-style: italic;
}
@font-face {
    font-family: "CMU typewriter text";
    src: url("./Fonts/cmuntt.ttf") format("truetype"); /* Typewriter */
}
body {
    background-color: var(--background);
    font-family: "Computer Modern";
    color: var(--text);
    font-size: max(1vw, 10px);
    box-sizing: border-box;
}
h1 {
    font-size: max(3vw, 30px);
    font-weight: bold;
}
h3 {
    font-size: max(1.8vw, 18px);
    font-weight: normal;
    margin-bottom: 1vw
}
.predmet {
    font-size: max(2vw, 20px);
    font-weight: bold;
    margin-bottom: max(1vw, 10px);
    margin-top: max(2.5vw, 25px);
    position: relative;
    cursor: pointer;
}
.hidden {
    display: none;
}
.abstract {
    font-size: max(1.5vw, 15px);
    font-style: italic;
    margin-bottom: 3vw;
}
.komentar {
    width: 85%;
    text-align: center;
    margin: 0 auto;
    padding-bottom: 1vw;
}
.razlaga {
    width: 80%;
    margin: 0 auto;
    padding-bottom: 1vw;
    font-size: max(1.3vw, 13px);
    text-align: justify;
}
#maincontent {
    position: relative;
    min-height: 93vh;
    margin-left: 1wv;
    margin-right: 1vw;
}
#body {
    padding-bottom: 25pt;
    text-align: center;
}
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
}
a {
    display: inline-block;
    font-size: max(1.5vw, 15px);
    transition: color 0.3s ease;
    text-decoration: none;
    color: var(--link);
}
a:hover {
    color: var(--theme);
}
.column-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-left: 5vw;
    margin-right: 5vw;
    margin-bottom: max(2vw, 20px);
    flex-wrap: wrap;
}
.two-column {
    padding: 5px;
    flex: 40%;
    text-align: center;
    align-self: flex-start;
    overflow: hidden;
}

.three-column {
    padding: 5px;
    flex: 30%;
    text-align: center;
    align-self: flex-start;
}
.four-column {
    padding: 5px;
    flex: 20%;
    text-align: center;
    align-self: flex-start;
}
ul, ol {
    padding-left: max(2vw, 20px);
    padding-bottom: max(1vw, 10px);
}
li {
    width: 100%;
    padding-bottom: max(0.5vw, 5px);
}
.paket {
    font-family: "CMU typewriter text";
}
.list-container {
    width: 80%;
    margin:0 auto;
}
.in-item {
    width: 100%;
    margin: 0 auto;
    padding-bottom: 1vw;
    font-size: max(1.3vw, 13px);
    text-align: justify;
}
code {
    font-family: "CMU typewriter text";
    font-size: inherit;
    align-items: baseline;
}
#povezave-content {
    text-align: left;
    margin: 0 auto;
    width: 80%;
}
i {
    font-size: inherit;
    color: inherit;
}
button {
    background-color: var(--background);
    color: var(--link);
    font-size: max(1.5vw, 15px);
    font-family: "Computer Modern";
    padding: 10px 20px;
    border: 2px solid var(--link);
    border-radius: 5px;
    cursor: pointer;
    transition: color 0.3s ease-in-out, border-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    margin: 10px auto;
}

button:hover {
    color: var(--theme);
    border-color: var(--theme);
    transform: scale(1.05);
}
.galerija-naslov {
    width: 80%;
    margin: 0 auto;
    padding-bottom: 1vw;
    padding-top: 4vw;
    font-size: max(1.3vw, 13px);
    text-align: center;
}
@media (max-width: 900px) {
    .four-column {
        flex: 40%;
    }
}
@media (max-width: 750px) {
    #astro-container {
        margin: 0 auto;
        gap: 0;
    }
    #astro-container > .three-column {
        align-self: center;
        flex: 100%;
    }
}
@media (max-width: 600px) {
    .column-container {
        margin: 0 auto;
        gap: 0;
    }
    .three-column, .four-column, .two-column {
        flex: 100%;
        margin: 0 auto;
        padding: 0;
    }
}
.img-light {
    display: block;
}
.img-dark {
    display: none;
}
pre {
    text-align: left;
    border: var(--theme) solid 1px;
    max-width: 100%;
    overflow: auto;
}
pre > code {
    display: block;
}
img {
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}
.mjx-chtml {
    font-size: inherit !important;
}
.code {
    background-color: var(--code);
}
.tiny-link {
    font-size: max(1vw, 10px);
}
@media (prefers-color-scheme: dark) {
    :root {
        /* Dark theme variables */
        --background: rgb(26, 33, 35);
        --text: rgb(180, 200, 205);
        --theme: rgb(112, 129, 136);
        --link: rgb(57, 141, 186);
        --code: #404950;
    }
    .img-light {
        display: none;
    }
    .img-dark {
        display: block;
    }
}