html, body {
    background-color: #242124;
}

h1 {
    margin-bottom: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid #5e5e5e;
    text-align: center;
    width: 100%;
    font-weight: 700;
}

h3 {
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #5e5e5e;
    font-weight: 700;
}

.sep {
    width: 100%;
    border-bottom: 1px solid #5e5e5e;
}
    
table {
    border-collapse: collapse;
}
    
th {
    cursor: pointer;
}
    
td.detailsColumn {
    padding-inline-start: 2em;
    text-align: end;
}
    
a.icon {
    padding-inline-start: 1.5em;
    text-decoration: none;
    user-select: auto;
}
    
a.icon:hover {
    text-decoration: underline;
}
    
html[dir=rtl] a {
    background-position-x: right;
}

.link {
    text-decoration: underline;
}
    
#parentDirLinkBox {
    margin-bottom: 10px;
    padding-bottom: 10px;
}

@keyframes rainbow_animation {
    0%,100% {
        background-position: 0 0
    }

    50% {
        background-position: 100% 0
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 260px);
    gap: 1.5rem;
}

.project-card {
    aspect-ratio: 5 / 6;
    display: flex;
    position: relative;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: #161616;
    border: 2px solid #5e5e5e;
    text-decoration: none;
}

.project-image {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.project-body h3 {
    margin: 0 0 0.5rem;
}

.project-body p {
    flex: 1;
    margin: 0 0 1rem;
    color: #ddd;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-year {
    color: #888;
    font-size: 0.9rem;
}

.source-btn {
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    z-index: 2;
}
.source-btn:link, .source-btn:visited {
    color: white!important;
}

.overlay-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.tab-radio {
    display: none;
}

.tab-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.tab-labels label {
    font-size: 1.25rem;
    background-color: #161616;
    padding: 6px 12px;
    border: 2px solid #5e5e5e;
    border-radius: 15px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s, background-color 0.15s;
}

.tab-labels label:hover {
    border-color: #aaa;
}

.tab-content {
    display: none;
    margin-bottom: 6px;
}

#tab-redt:checked ~ .tab-labels label[for="tab-redt"],
#tab-rando:checked ~ .tab-labels label[for="tab-rando"],
#tab-mc:checked ~ .tab-labels label[for="tab-mc"] {
    border-color: #2EB8F0;
    background-color: #1A1A2A;
}

#tab-art:checked ~ .tab-labels label[for="tab-art"],
#tab-tech:checked ~ .tab-labels label[for="tab-tech"],
#tab-fun:checked ~ .tab-labels label[for="tab-fun"] {
    border-color: #EF83D7;
    background-color: #2A1A2A;
}

#tab-art:checked ~ #tab-art-content,
#tab-tech:checked ~ #tab-tech-content,
#tab-fun:checked ~ #tab-fun-content,
#tab-rando:checked ~ #tab-rando-content,
#tab-redt:checked ~ #tab-redt-content,
#tab-mc:checked ~ #tab-mc-content {
    display: block;
}

button, textarea, input, input, select {
    background-color: #161616;
    border: 1px solid #5e5e5e;
}