main {
    padding: 20px;
}

body {
    background-color: #141414;
    font-family: 'Trebuchet MS', cursive;
    color: #eed750;
    margin: 0;
    overflow-x: auto;
}

a {
    color: #ffdd00;
}

a:hover {
    color: #c99a3e;
    background-color: #272727;
}

.button {
    display: inline-block;
    outline: 0;
    border: 0;
    background-image: linear-gradient(45deg,#c99b3e, 35%, #272727);
    cursor: pointer;
    border-radius: 2px;
    color: #fff;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    height: 36px;
    line-height: 36px;
    padding: 0 10px;
    font-size: 14px;

    :hover {
    background-image: linear-gradient(to right,#c99a3e, #272727);
    }        
}

header {
    background-color: #272727;
    color: #ffdd00;
    padding: 2vh 0 0.1vh 0;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
}

.marquee {
    border: 2px solid #ffdd00;
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-item {
    padding: 20px 0 20px 75vw;
    font-size: xx-large;
    animation: marquee-scroll linear infinite;
}
@media (max-width: 600px){
    .marquee-item{
        animation-duration: 5s;
    }
}
@media (min-width: 601px) and (max-width:1200px){
    .marquee-item{
        animation-duration: 7s;
    }
}
@media (min-width: 1201px){
    .marquee-item{
        animation-duration: 10s;
    }
}
@keyframes marquee-scroll {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-100%);
    }
}

section {
    margin: 0;
    padding: 0;
}

.project-container {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    margin: 0 3vw 0 3vw;
    gap: 1rem;
    align-items: center;
    min-width: 65%;
    min-height: 33%;
    max-width: 100vw;
    max-height: 33%;
    overflow-x: scroll;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 0.5rem;

}
@media (max-width: 800px) {
    .project-container {
        flex-direction: column;
        margin: 0 0 0 16vw;
        min-width: 30%;
        min-height: auto;
        max-width: 65%;
        max-height: auto;
    }
}

.project-item {
    flex: 0 0 25%;
    align-self: flex-start;
    position: relative;
    padding: 0;
    margin: 1rem 0 1rem 0;
    transition:
        transform 0.3s ease-in-out;
}

.project-item .screenshot {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    display: flexbox;
    cursor: pointer;
    width: 20vw;
    height: auto;
    transition:
        filter 0.2s,
        transform 0.1s;
}
@media (max-width: 800px) {
    .project-item .screenshot {
        flex-direction: column;
        margin: 0 0 0 15vw;
        min-width: 45%;
        min-height: 45%;
        max-width: 75%;
        max-height: 45%;
    }
}

.project-item:hover .screenshot {
    transform: scale(1.1);
    filter:brightness(65%);
}

.project-item img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-dialog {
    z-index: 999;
    position: fixed;
    top: -2%;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    display: flex;
}

/*screenshot dialog viewer*/
.project-image {
    background: none;
    margin: 0;
    padding: 0;
    width: 77%;
    height: auto;
}

.project-item .screenshot h3 {
    position: relative;
    bottom: -1rem;
    display: flex;
    flex: 1;
    background: none;
    color: #eed750;
    width: 100%;
    text-align: left;
}

/*Item header text (top text)*/
.project-item .text-header {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    text-overflow: ellipsis;
    transition:
        transform 0.1s ease-in-out;
}
.project-item:hover .text-header {
    position: relative;
    text-align: center;
    background-color: #272727;
    color: #ffffff;
    transform:
        translateY(50%);
}
.project-item .text-subheader {
    z-index: 2;
    position: relative;
    padding: 0;
    margin: 0;
    font-size: smaller;
    transform: translateY(1rem);
    background-color: #272727;
    color: #ffffff;
    text-align: center;
    transition:
        transform 0.1s ease-in-out;
}
.project-item:hover .text-subheader {
    background-color: #272727;
    transform:
        translateY(0.7rem);
}

/*Item description text (bottom text)*/
.project-item .text {
    z-index: 2;
    overflow: visible;
    text-align: center;
    padding: 0;
    margin: 0;
    max-width: 100%;
    transition:
        transform .1s ease-in-out;
}
.project-item:hover .text {
    position: relative;
    background-color: #272727;
    color: #ffffff;
    transform: translateY(-1rem);
}


.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

footer {
    background-color: #808080;
    color: #fff;
    padding: 10px;
    text-align: center;
}