:root {
    --main-color: #275317;
    --complementary-color: #213e17;
    --gray: #353535;
}

body {
    display: flex;
    flex-flow: column;
    min-height: 100vh;
    margin: 0;
    font: 120%/1.5 'JetBrains Mono', system-ui, sans-serif;
}

a {
    color: #4A6B1D;
}

a:where(:visited) {
    color: #4A6B1D;
}

pre,
code {
    font-family: 'JetBrains Mono', Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

input,
select,
textarea {
    font: inherit;
}

body>header,
nav,
main,
body>footer {
    padding: 1.5rem clamp(1rem, 50vw - 20rem, 20vw);
}

body>header {
    background: var(--main-color);
    color: white;
    text-align: center;
}

body>header h1 {
    margin: 0;
    font-size: 500%;
}

body>header h1::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 1.4em;
    height: 1.4em;
    margin-right: .1em;
    background: url(logo.svg) center / contain no-repeat;
    transition: .4s;
    filter: drop-shadow(0 0 white);
}

body>footer {
    background: #489154;
}

body>footer a {
    color: inherit;
}

nav {
    display: flex;
    padding-top: 0;
    padding-bottom: 0;
    background: var(--complementary-color);
}

nav>a {
    flex: 1;
    padding: .4em .5em;
    color: white;
}

nav>a:hover {
    background: linear-gradient(to right, var(--main-color), var(--complementary-color));
}

footer {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
}

html, body {
    height: 100%; 
    margin: 0; 
    padding: 0;
}

#materials-list ul {
    list-style-type: none;
    padding: 0;
}

#materials-list li {
    margin-bottom: 10px;
}

#materials-list a {
    color: #4A6B1D;
    text-decoration: none;
}

#materials-list a:hover {
    text-decoration: underline;
}

.file-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.file-box {
    width: 100px;
    height: 100px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-box:hover {
    background-color: #f0f0f0;
}

.file-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.folder-icon {
    background: url('folder-icon.png') no-repeat center center / contain;
}

.file-icon {
    background: url('file-icon.png') no-repeat center center / contain;
}