@font-face {
    font-family: 'Roboto';
    src:  url('/roboto-regular.woff2') format('woff2'),
          url('/roboto-regular.woff') format('woff'),
          url('/roboto-regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Hack';
    src:  url('/hack-regular.woff2') format('woff2'),
          url('/hack-regular.woff') format('woff');
}

body {
    font-family: Roboto;
    max-width: 1200px;
    height: 100%;
    margin: auto;
    background-color: #16161C;
    color: white;
    padding: 10px;
}

.header {
    font-size: 50px;
    margin-bottom: 20px;
}

#sitetitle {
    vertical-align: middle;
    color: white;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

#sitetitle:hover {
    color: #E9436F;
}

#sitetitle:active {
    color: #E9436F;
}

#sitetitle:hover #logo {
    /* Filter to change color computed using https://codepen.io/sosuke/pen/Pjoqqp */
    filter: invert(43%) sepia(11%) saturate(5750%) hue-rotate(306deg) brightness(91%) contrast(100%);
}

#sitetitle:active #logo {
    /* Filter to change color computed using https://codepen.io/sosuke/pen/Pjoqqp */
    filter: invert(43%) sepia(11%) saturate(5750%) hue-rotate(306deg) brightness(91%) contrast(100%);
}

#sitetitle:hover::before {
    content: "[";
}
#sitetitle:hover::after {
    content: "]";
}

@media only screen and (max-width: 548px) {
    #sitetitle:hover::before {
        break-after: always;
    }
    #sitetitle:hover::after {
        break-before: always;
    }
}

#logo {
    position:fixed;
    left: 10px;
    top: 10px;
    max-width: 200px;
    height: 100px;
    vertical-align: middle;
}

pagetitle {
    font-size: 35px;
    font-family: Hack;
}

nav {
    margin-top: 10px;
    font-size: 25px;
    padding: 5px;
}

nav a:active {
    color: #E9436F;
    text-decoration: underline;
}

nav a:hover {
    color: #E9436F;
}

nav a {
    padding: 5px;
    color: white;
}

nav a#current::before {
    content: "[";
}
nav a#current::after {
    content: "]";
}

portfolio-item img {
    position: relative; 
    /* max-width: 500px; */
    width: 100%;
    opacity: 1;
    transition-duration: 200ms;
}

portfolio-item:hover img {
    opacity: 0.3;
    transition-duration: 250ms;
}

portfolio-item:hover .info {
    top: 50%;
    opacity: 1;
    transition-duration: 250ms;
}  

portfolio-item .info {
    width: inherit;
    min-width: 100px;

    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);

    text-align: center;

    color: white;
    
    opacity: 0;
    transition-duration: 200ms;
}

portfolio-item .info h1 {
    font-size: 30px;
    color: white;
}

portfolio-item .info li {
    font-size: 15px;
}

#tags {
    width: fit-content;
    text-align: center;
    position: relative;
    list-style: none;
    background-color: white;
    color: black;
    padding-left: 0px;
    padding-top: 15px;
    padding-bottom: 15px;
    opacity: 1;
}

#tags a {
    color: black;
}

#tags a:hover {
    color: #E9436F;
}

#tags li {
    padding-top: 5px;
    padding-bottom: 5px;
}

portfolio-item .info #tags {
    opacity: 0;
    width: 100%;
}

portfolio-item:hover .info #tags {
    animation: reveal .5s;
    opacity: 1;
}

portfolio-item a::after, portfolio-item a::before, #tags a::after, #tags a::before {
    content: "" !important;
}

@keyframes reveal {
    /* 0% { width:0; opacity: 0;} */
    10% { width:0; opacity: 0;}
    40% { width:100%; opacity: 1;}
    /* 100% { width:100%; opacity: 1;} */
}

@keyframes reveal-mobile {
    /* 0% { width:0; opacity: 0;} */
    10% {
        min-width: 0;
        width:0;
        opacity: 0;
    }
    40% {
        min-width: 25%;
        width:fit-content;
        opacity: 1;
    }
    /* 100% { width:fit-content; opacity: 1;} */
}

.pagination {
    padding-top: 30px;
}

a {
    font-family: Hack;
    color: #E9436F;
    text-decoration: none;
}

a:hover {
    text-shadow: 1px 1px black;
}
a:hover::before {
    content: "[";
}
a:hover::after {
    content: "]";
}

footer {
    font-size: 10px;
    padding-top: 50px;
    position: relative;
    bottom: 0px;
}

.download_button {
    background-color: #E9436F;
    border: none;
    color: white;
    padding: 12px 30px;
    font-size: 20px;
}

.download_button:hover {
    background-color: #e9436fce;
    border: none;
    color: white;
    padding: 12px 30px;
    font-size: 20px;
}

video {
    padding-bottom: 40px;
    padding-top: 20px;
}

.youtube {
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 40px;
}
.youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

img {
    width: 100%;
}

@media only screen and (max-width: 1610px) {
    .header {
        /* padding-left: 10px; */
        max-width: 97%;
        margin: auto;
        margin-bottom: 20px;
    }
    #logo {
        position: static;
        width: 130px;
        margin-right: 10px;
    }
}

@media only screen and (max-width: 600px) {
    /* #logo {
        margin-right: 100%;
    } */
    portfolio-item .info #tags {
        margin-left: auto;
        margin-right: auto;
    }
    portfolio-item:hover .info #tags, portfolio-item:active .info #tags {
        animation: reveal-mobile .5s;
        width: fit-content;
        min-width: 25%;
        padding-left: 10px;
        padding-right: 10px;
        opacity: 1;
    }
    portfolio-item:active .info {
        opacity: 1;
    }
}

h1 {
    font-size: 32px;
}