:root {
    font-family: Inter, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1;
}
@supports (font-variation-settings: normal) {
    :root { font-family: InterVariable, sans-serif; }
}

body {
    background: linear-gradient(75deg, rgb(1, 1, 1), rgb(3, 3, 3));
    margin: 0px 25% 0px 25%;
    color: whitesmoke;
}

header {
    padding: 20px 0px 12px 0px;
    position: relative;
}

header h2 {
    display: inline;
    margin: 0;
}

nav {
    text-align: center;
    width: fit-content;
    position: absolute;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
}

nav ul {
    padding: 0px;
    margin: 0;
    list-style-type: none;
}

nav ul li {
    display: inline;
}

nav ul li a, nav ul li select {
    color: whitesmoke;
    text-decoration: underline;
    text-decoration-color: transparent;
    padding: 6px;
    transition-duration: 0.3s;
}

nav ul li select {
    font-size: 16px;
    font-family: "Inter", sans-serif;
    background: transparent;
    border: 0;
    outline: 0;
}

nav ul li select option {
    background: #111;
}

nav ul li a:hover {
    text-decoration: underline;
    text-decoration-color: whitesmoke;
    font-weight: bold;
}

section {
    padding: 6px 12px;
    background: rgb(28, 28, 28);
}

section h2, article h2 {
    margin-top: 10px;
    text-align: center;
}

article {
    padding: 4px 6px;
    margin-top: 10px;
}

section, article {
    border: 2px solid rgb(30, 30, 30);
    border-radius: 10px;
}

.tools {
    padding: 0;
    margin: 0;
    list-style-type: none;
    text-align: center;
}

.tools li {
    padding: 6px;
    background: rgb(22, 22, 22);
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
    margin-bottom: 5px;
    gap: 6px;
    transition-duration: 0.4s;
    text-decoration: underline;
    text-decoration-color: transparent;
}

.tools li.lang:hover {
    cursor: pointer;
    text-decoration-color: whitesmoke;
    font-weight: bold;
}

.tools li svg, 
.tools li img {
    height: 16px;
    width: 16px;
    flex-shrink: 0;
}

.projects {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.projects li {
    border: 2px solid #111;
    border-radius: 10px;
    background: #222;
    padding: 12px;
    text-align: center;
    width: 70%;
    display: inline-grid;
    height: 200px;
    margin: 10px;
}

.projects li a {
    color: whitesmoke;
    transition-duration: 0.3s;
}

.projects li a:hover {
    color: white;
    font-weight: bold;
}

footer {
    text-align: center;
    padding-bottom: 12px;
}

.gallery-wrapper {
    position: relative;
    width: 100%;
}

.gallery-container {
    overflow: hidden;
    width: 100%;
}

ul#project-list {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    transition: transform 0.4s ease;
    width: 100%;
}

ul#project-list li {
    flex: 0 0 100%;
    margin: 0;
}

ul#project-list li {
    border: 2px solid #111;
    border-radius: 10px;
    background: #0c0c0c;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: inline-block;
}

ul#project-list-small {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 10px;
}

ul#project-list-small li {
    flex: 0 0 49%;
    box-sizing: border-box;
    border: 2px solid #111;
    border-radius: 10px;
    background: #0c0c0c;
    overflow: hidden;
    display: inline-block;
    padding: 12px 10px;

    transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

ul#project-list-small li:hover {
    background: #1a1a1a;
    cursor: pointer;
}

ul#project-list li .image-container {
    width: 100%;
    display: block;
}

ul#project-list li img {
    width: 100%;
    height: auto;
    display: block;
    filter: blur(4px) brightness(0.7);
    transition: all 0.4s ease;
    transform: scale(1.05);
}

ul#project-list li .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 1;
}

ul#project-list li:hover img {
    filter: brightness(0.9);
    transform: scale(1.01);
}

ul#project-list li .image-container:hover {
    cursor: pointer;
}

ul#project-list li:hover .content {
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #3d3d3d;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    color: whitesmoke;
    border: 0;
    padding: 5px;
    border-radius: 25%;
}

#prev-btn {
    left: 10px;
}

#next-btn {
    right: 10px;
}

.project-site h2, .project-site h1 {
    text-align: left;
}

.project-site>#project-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 10px;
}

.project-site>ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: inline-block;
}

.project-site>ul li {
    margin: 10px 0;
    padding: 10px;
    background: #222;
    border-radius: 10px;
    width: fit-content;
    float: left;
    margin-right: 10px;
}

.project-site img {
    max-width: 100%;
    height: auto;
}	