:root {
    --accent-color: greenyellow;
    --accent-secondary: green;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: Minecraft;
    src: url("MinecraftRegular-Bmg3.otf") format("opentype");
}

body {
    font-family: Minecraft, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: black;
    color:white;
    font-size : clamp(1.2rem, .2vw, 2rem);
}

header {
    display: flex;
}

aside {
    width: fit-content;
    min-width: 20vw;
}

a {
    text-decoration: none;
    color: var(--accent-color);
}

main {
    outline: 2px solid gray;
    margin-top: 20px;
    padding: 20px;
    background-color: black;
}

button {
    transition: .2s;
    background-color: black;
    color: white;
    padding: 10px;
    outline: 1px white;
}

button:hover {
    color: gray;
    border: 1px solid gray;
}

code {
    background-color: darkslategray;
    color: var(--accent-color);
    padding-left: .2em;
    padding-right: .2em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 2px;
    display: inline-block;
}

input, select {
    padding: .4em;
    background-color: black;
    color: white;
}

p, ul {
    padding-bottom: .6em;
}

img {
    image-rendering: pixelated;
}

#linksBox {
    padding: 10px;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: black;
    outline: 2px solid gray;
    height: fit-content;
}

#headerLinks a {
    margin-top: auto;
    margin-bottom: auto;
    padding: 0;
    padding-left: 0;
}

#everythingHelper {
    max-width: 80%;
    margin: auto;
    transform: .2s;
    display: flex;
    gap: 3em;
}

#headerLinks {
    padding: 0;
    margin-left: 10px;
}

#title {
    margin-top: auto;
    margin-bottom: auto;
    text-align: center;
}

.searchItemImage {
    height: 1em;
}

#featured {
    display: flex;
    flex-direction: column;
}

#featuredHelper {
    display: flex;
    flex-direction: row;
}


.featuredProject {
    transition: .2s;
    width: 15%;
    font-size: smaller;
    padding: 4px;
    overflow: hidden;
}

.featuredProjectName {
    margin-top: auto;
}

.featuredProject img {
    width: 100%;
    border: medium solid var(--accent-color);
}

.featuredProject p {
    margin-right: auto;
    margin-left: auto;
    text-overflow:clip;
}

#featured h2 {
    font-size: medium;
    font-weight: 100;
    margin-bottom: 10px;
}

#featuredHelper {
    gap: 10px;
    flex-wrap: wrap;
}

#projectTitleSubtitle {
    margin-top: auto;
    margin-bottom: auto;
}

#projectHeader {
    padding-top: 20px;
    gap: 20px;
    display: flex;
    margin-bottom: 1em;
}

#downloadButton {
    border: none;
    background: linear-gradient(var(--accent-color), var(--accent-secondary));
    border-radius: 2px;
    color: white;
}

#downloadLink {
    color: gray;
    height: fit-content;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: auto;
    text-align: right;
    /* text-shadow: 2px 2px black; */
}

#downloadButton:hover {
    cursor: pointer;
}

#projectHeader img {
    outline: 2px solid gray;
    height: 5em;
    image-rendering: pixelated;
}

li {
    margin-left: 20px;
    list-style-type: "> ";
    margin-bottom: .4em;
}

h1, h2, h3 {
    margin-bottom: .4em;
}

#projectTitleAuthor {
    display: flex;
}

#projectAuthor {
    margin-left: 10px;
    margin-top: auto;
    margin-bottom: 6px;
}

#projectImageCarrousel {
    outline: 2px solid gray;
    padding: 1rem;
    height: 12em;
    display: flex;
    flex-direction: column;
}

#projectCarrouselImageHolder {
    height: 100%;
    gap: 1em;
    overflow: auto;
    scroll-margin-left: 10px;
    overflow-x: scroll;
    white-space: nowrap;
}

.projectImage {
    transition: .4s;
    height: 95%;
    max-width: 10em;
    object-fit: cover;
    /* filter: grayscale(); */
}

.projectImage:hover {
    filter: none;
    opacity: .8;
    max-width: 100%;
    /* object-fit: unset; */
}

#credits {
    margin-left: auto;
}

.searchItemTagHolder {
    display: flex;
    padding-top: .2em;
    gap: .4em;
}

.searchItemTagHolder div {
    border: thin solid greenyellow;
    padding: .1em .2em .1em .2em;
}

.searchItemDescription {
    margin-bottom: 0px;
}

.errorQuote {
    color: gray;
}

@media only screen and (max-width: 1280px) {

    #everythingHelper {
        max-width: 80%;
    }

    #linksBox {
        flex-direction: column;
    }

    #linksBox * {
        margin-left: auto;
        margin-right: auto;
    }

    #projectHeader {
        flex-direction: column;
        text-align: center;
    }

    #projectHeader * {
        margin-left: auto;
        margin-right: auto;
    }

    #projectHeader img {
        width: 10vh;
        height: 10vh;
    }

    #projectTitleAuthor {
        flex-direction: column;
    }

    /* #featuredHelper {
        flex-direction: column;
    } */

    #featuredHelper * {
        margin-right: auto;
        margin-left: auto;
    }

    header {
        text-align: center;
    }
}

@media only screen and (max-width: 300px) {

    #everythingHelper {
        max-width: 90%;
    }

    #projectAuthor {
        margin: 0;
    }
    
}