/* General Styling rules */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Fonts */
@font-face {
    src: url(/resources/fonts/PixulBrushExtended.ttf);
    font-family: pixul-brush;
}

@font-face {
    font-family: 'NeueMachina';
    src: url('/resources/fonts/PPNeueMachina-InktrapLight.otf');
    font-weight: 100 300;
    font-display: swap;
    font-style: normal;
}
@font-face {
    font-family: 'NeueMachina';
    src: url('/resources/fonts/PPNeueMachina-InktrapRegular.otf');
    font-weight: 301 600;
    font-display: swap;
    font-style: normal;
}
@font-face {
    font-family: 'NeueMachina';
    src: url('/resources/fonts/PPNeueMachina-InktrapUltrabold.otf');
    font-weight: 601 900;
    font-display: swap;
    font-style: normal;
}
@font-face {
    font-family: 'NeueMachina';
    src: url('/resources/fonts/PPNeueMachina-InktrapLightItalic.otf');
    font-weight: 100 300;
    font-display: swap;
    font-style: italic;
}
@font-face {
    font-family: 'NeueMachina';
    src: url('/resources/fonts/PPNeueMachina-InktrapRegularItalic.otf');
    font-weight: 301 600;
    font-display: swap;
    font-style: italic;
}
@font-face {
    font-family: 'NeueMachina';
    src: url('/resources/fonts/PPNeueMachina-InktrapUltraboldItalic.otf');
    font-weight: 601 900;
    font-display: swap;
    font-style: italic;
}

/* Document wide-formatting*/
html {
    overflow-x: hidden;
}
body {
    margin: 0;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    /*Fontface*/
    font-family: 'NeueMachina', sans-serif;
    color: hsl(0, 0%, 0%);
    /*Background*/
    background-color: hsl(0, 0%, 5%);
    backdrop-filter: blur(6px);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-image: url("/resources/images/ShaderPFPBGResized.png");
    background-position: center;
    background-size: cover;
}

/* General formatting for base elements */
p, label, a{
    font-family: 'NeueMachina', sans-serif;
    color: hsl(0, 0%, 60%);
}
input {
    font-family: 'NeueMachina', sans-serif;
}
button {
    font-family: 'NeueMachina', sans-serif;
    color: hsl(0, 0%, 20%);
    cursor: pointer;
}

/* Website header*/
header {
    margin-inline-start: 0;
    background-color: hsl(0, 0%, 5%);
    box-shadow: 5px 10px 12px rgba(0, 0, 0, .5);
}
header h1 {
    margin: 0;
    padding-top: 15px;
    padding-left: 25px;
    color: darkgreen;
    font-size: 4rem;
}
/* Navigation bar, goes along with header */
nav ul {
    list-style-type: none;
    background-color: hsl(0, 0%, 5%);
    padding: 0px;
    margin: 0px;
    overflow: hidden;
}
nav a {
    color: darkgreen;
    text-decoration: none;
    font-size: 1.5rem;
    padding: 15px;
    display: block;
    text-align: center;
}
nav a:hover {
    background-color: hsl(0, 0%, 10%);
}
nav li {
    float: left;
}
/*Used for a dropdown element in the navigation bar*/
.dropdown {
    display: inline-block;
}
.dropdown button {
    color: darkgreen;
    padding: 15px;
    border: none;
    background-color: hsl(0, 0%, 5%);
    font-size: 1.5rem;
    display: block;
    text-align: center;
}
.dropdown a {
    color: darkgreen;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 1.35rem;
}
.dropdown .content {
    display: none;
    position: absolute;
    background-color: hsl(0, 0%, 5%);
    min-width: 100px;
    box-shadow: 2px 2px 5px hsla(0, 0%, 0%, 0.8);
    padding: 0;
    z-index: 5;
}
.dropdown:hover .content {
    display: block;
}
.dropdown:hover button {
    background-color: hsl(0, 0%, 10%);
}
.dropdown a:hover {
    background-color: hsl(0, 0%, 15%);
}

/* Main section styling*/
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Main section container styling*/
main .mainContainer {
    background-color: hsl(0, 0%, 10%);
    margin: 40px;
    padding: 10px;
    animation: fadeInDown 2s -.6s;
    flex-direction: column;
}
@keyframes fadeInDown {
    0% {
        transform: translateY(-75px);
        opacity: 0;
    }
    30% {
        transform: translateY(-75px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}
h2 {
    font-size: 5rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: hsl(0, 0%, 60%);
    width: 98%;
}
h3 {
    font-size: 3.5rem;
    margin-top: 20px;
    margin-bottom: 0px;
    color: hsl(0, 0%, 60%);
    text-align: center;
}
h4 {
    font-size: 1.5rem;
    font-weight: normal;
    margin-top: 20px;
    margin-bottom: 30px;
    color: hsl(0, 0%, 60%);
    text-align: center;
}
h5 {
    font-size: 1.5rem;
    font-weight: normal;
    margin: 10px 0;
    color: hsl(0, 0%, 60%);
    width: 98%;
}
.mainContainer h4 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: left;
    color: darkgreen;
}
.imageParagraph {
    display: flex;
    flex-direction: row;
}
.mainContainer img {
    margin: 0px 15px;
    margin-top: 5px;
    margin-bottom: 10px;
    float: left;
    box-shadow: 3px, 3px, 5px, rgba(0, 0, 0, .5);
}
.mainContainer p {
    font-size: 1.5rem;
}
.pageContent {
    display: flex;
    justify-content: center;
}
.gallary img {
    float: none;
    object-fit: contain;
}

.iframe-container {
    margin: 0 auto;
    position: relative;
    background-position: 50% 50%;
}
.iframe-container iframe {
    height: 0;
    width: 0;
    border: 0;
    box-sizing: border-box;
    max-height: 100%;
    max-width: 100%;
    min-height: 100%;
    min-width: 100%;
}

/*Project listing stylings*/
.projects {
    width: 100%;
    margin: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.projectCard {
    border-radius: 25px;
    border: none;
    padding: 15px;
    margin: 15px 0px;
    background-color: hsl(0, 0%, 10%);
    width: 95%;
    animation: fadeInDown 2s calc(-.6s + var(--i) * 0.05s);
    text-align: left;
    flex-direction: column;
}
.projectCard h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: left;
    color: darkgreen;
}
.projectCard img {
    margin: 0px 15px;
    margin-top: 5px;
    float: left;
    width: 256px;
    box-shadow: 3px, 3px, 5px, rgba(0, 0, 0, .5);
}
.projectCard p {
    font-size: 1.5rem;
}

/*Contributors styling*/
.profiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 20px;
}
.profiles .profile {
    background-color: hsl(0, 0%, 10%);
    margin: 10px;
    padding: 20px;
    animation: fadeInDown 2s calc(-.6s + var(--i) * 0.1s);
    flex-direction: column;
}
.profile img {
    margin-right: 20px;
    margin-top: 5px;
    margin-bottom: 15px;
    float: left;
    box-shadow: 3px, 3px, 5px, rgba(0, 0, 0, .5);
}
.profile p {
    font-size: 1rem;
}
.profile h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: left;
    color: darkgreen;
}
.profileSocialLine {
    padding: 0; 
    padding-left: 2.5%;
    display: flex;
    align-items: center;
}
.profileSocialLine a {
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
}
.profileSocialLine button {
    width: 48px;
    height: 48px;
    margin: 5px;
    margin-right: 15px;
    border-radius: 10px;
    background-color: hsl(0, 0%, 20%);
}
.profileSocialLine i {
    color: white;
}

/*Featured project gallery styling*/
.projectGallery {
    animation: fadeInDown 2s -.5s;
    margin-bottom: 30px;
}
/*Project slider specific styling*/
.slider {
    position: relative;
    width: 100%;
    margin: auto;
    overflow: hidden; 
    height: 800px;
}
.slides {
    width: 100%;
}
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    padding: 10px 15px;
    background-color: hsl(0, 0%, 0%, 0.5);
    color: white;
    border: none;
    z-index: 5;
}
.card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    offset-anchor:middle;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    background-color: hsl(0, 0%, 5%);
    border-radius: 15px;
    height: 750px;
    width: 20%;
    padding: 5px;
    margin: 15px;
    border: none;
    transition: ease-in-out 0.5s;
    z-index: 1;
    overflow: hidden;
}
.card a {
    text-align:center; 
    text-decoration:none;
}
.card * {
    opacity: 1;
    transition: ease-in-out 0.5s;
}
.card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    padding: 0px 30px;
    overflow: hidden;
}
.card h1 {
    color: hsl(0, 0%, 60%);
    text-align: center;
    font-size: 2.75rem;
    padding: 5px 0px;
    text-wrap: nowrap;
}
.card p {
    color: hsl(0, 0%, 60%);
    text-align: center;
    font-size: 1.25rem;
    width: 90%;
    overflow: hidden;
}
.unfocused, .unfocusedOut {
    height: 450px;
    width: 12.5%;
    background-color: hsl(0, 0%, 5%, 0.5);
    cursor: default;
    transition: none;
    z-index: -1;
}
.unfocusedOut {
    transition: ease-in-out 0.5s;
}
.unfocused *, .unfocusedOut *, .hide * {
    opacity: 0;
}
.hide {
    visibility: hidden;
    transition: none;
}
.tags {
    float: none;
    display: flex; 
    flex-direction: column;
    margin: 0px, 15px;
}
.tags ul {
    list-style-type: none; 
    padding-left: 5px; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    overflow: hidden;
}
.tags p {
    font-weight: bold;
    margin-top: 0px;
    margin-bottom: 0px;
}
.tags li {
    background-color: hsl(0, 0%, 15%);
    border-radius: 25px; /* Rounded corners */
    padding: 5px 10px; /* Padding inside the tag */
    font-size: 0.8rem; /* Smaller font size */
    color: hsl(0, 0%, 60%); /* Darker text color */
}
.tag-bullet {
    display: inline-block;
    width: 10px; /* Adjust the size of the bullet */
    height: 10px; /* Adjust the size of the bullet */
    background-color: #ff0000; /* Set your desired color */
    border-radius: 50%; /* Make the bullet round */
    margin-right: 5px; /* Space between the bullet and the tag name */
}
.tags span {
    display: inline-block;
    color: #ff0000;
}
.projectCard .tags li {
    padding: 10px 15px;
    font-size: 1.5rem;
}
.projectCard .tag-bullet {
    width: 18px;
    height: 18px;
}
.projectCard .tags p {
    font-weight: bold;
    margin-top: 0px;
    font-size: 1.75rem;
}
.prev {
    left: 0;
}
.next {
    right: 0;
}

/*Image slider styling*/
.artSlides {
    animation: fadeInDown 2s -.4s;
}
.images {
    position: relative;
    height: 575px;
    margin-bottom: 25px;
}
.artSlides h3 {
    margin-bottom: 0;
}
.images img {
    position: absolute;
    width: 512px;
    animation: slideLeft 45s linear calc((var(--i) - 1) * -1.363636s) infinite; /* Reminder if more images are added: (n / animation-length)s of delay */
    transition: 0.3s ease;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(8448px); /* Reminder if more images are added: ((n * 512px) / 2) of offset */
    z-index: 1;
}
.images img:hover {
    width: 600px;
    box-shadow: 12px 12px 5px rgba(0, 0, 0, .5);
    z-index: 3;
}
@keyframes slideLeft {
    0% {
        transform: translate(-50%, -50%) translateX(8448px); /* Reminder if more images are added: ((n * 512px) / 2) of offset */
    }
    100% {
        transform: translate(-50%, -50%) translateX(-8448px); /* Reminder if more images are added: -((n * 512px) / 2) of offset */
    }
}
@keyframes mobileSlideLeft {
    0% {
        transform: translate(-50%, -50%) translateX(4224px); /* Reminder if more images are added: ((n * 512px) / 4) of offset */
    }
    100% {
        transform: translate(-50%, -50%) translateX(-4224px); /* Reminder if more images are added: -((n * 512px) / 4) of offset */
    }
}

/*Contact styling*/
.contactContainer {
    background-color: hsl(0, 0%, 10%);
    width: 95%;
    margin: 40px;
    padding: 20px;
    animation: fadeInDown 2s -0.3s;
    flex-direction: column;
}
.contactContainer h4 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: left;
    color: darkgreen;
}
.contactContainer p {
    font-size: 1.5rem;
}
.socialLine {
    padding: 10px 0px; 
    padding-left: 2.5%;
    display: flex;
    align-items: center;
}
.socialLine a {
    text-decoration: none;
    font-size: 1.75rem;
    cursor: pointer;
}
.socialLine div > a {
    word-break: break-all;
}
.socialLine button {
    width: 96px;
    height: 96px;
    margin: 5px;
    margin-right: 15px;
    border-radius: 10px;
    background-color: hsl(0, 0%, 20%);
}
.socialLine i {
    color: white;
}

/* Icon styling */
#discord {
    background-color: hsl(236, 90%, 65%);
    border-color: hsl(236, 90%, 55%);
}
#discord:hover {
    background-color: hsl(236, 90%, 55%);
    border-color: hsl(236, 90%, 45%);
}
#discord:active {
    background-color: hsl(236, 90%, 45%);
    border-color: hsl(236, 90%, 35%);
}
#email {
    background-color: hsl(209, 100%, 55%);
    border-color: hsl(209, 100%, 45%);
}
#email:hover {
    background-color: hsl(209, 100%, 45%);
    border-color: hsl(209, 100%, 35%);
}
#email:active {
    background-color: hsl(209, 100%, 35%);
    border-color: hsl(209, 100%, 25%);
}
#linkedin {
    background-color: hsl(219, 100%, 55%);
    border-color: hsl(219, 100%, 45%);
}
#linkedin:hover {
    background-color: hsl(219, 100%, 45%);
    border-color: hsl(219, 100%, 35%);
}
#linkedin:active {
    background-color: hsl(219, 100%, 35%);
    border-color: hsl(219, 100%, 25%);
}
#handshake {
    background-color: hsl(91, 100%, 55%);
    border-color: hsl(91, 100%, 45%);
}
#handshake:hover {
    background-color: hsl(91, 100%, 45%);
    border-color: hsl(91, 100%, 35%);
}
#handshake:active {
    background-color: hsl(91, 100%, 35%);
    border-color: hsl(91, 100%, 25%);
}
#steam {
    background-color: hsl(214, 23%, 20%);
    border-color: hsl(214, 23%, 17%);
}
#steam:hover {
    background-color: hsl(214, 23%, 15%);
    border-color: hsl(214, 23%, 12%);
}
#steam:active {
    background-color: hsl(214, 23%, 10%);
    border-color: hsl(214, 23%, 7%);
}
#github {
    background-color: hsl(213, 13%, 16%);
    border-color: hsl(213, 13%, 13%);
}
#github:hover {
    background-color: hsl(213, 13%, 11%);
    border-color: hsl(213, 13%, 8%);
}
#github:active {
    background-color: hsl(213, 13%, 6%);
    border-color: hsl(213, 13%, 3%);
}
#itch-io {
    background-color: hsl(350, 100%, 70%);
    border-color: hsl(350, 100%, 60%);
}
#itch-io:hover {
    background-color: hsl(350, 100%, 60%);
    border-color: hsl(350, 100%, 50%);
}
#itch-io:active {
    background-color: hsl(350, 100%, 50%);
    border-color: hsl(350, 100%, 40%);
}
#wiki {
    background-color: hsl(251, 81%, 60%);
    border-color: hsl(251, 81%, 50%);
}
#wiki:hover {
    background-color: hsl(251, 81%, 50%);
    border-color: hsl(251, 81%, 40%);
}
#wiki:active {
    background-color: hsl(251, 81%, 40%);
    border-color: hsl(251, 81%, 30%);
}
#email {
    background-color: hsl(209, 100%, 55%);
    border-color: hsl(209, 100%, 45%);
}
#email:hover {
    background-color: hsl(209, 100%, 45%);
    border-color: hsl(209, 100%, 35%);
}
#email:active {
    background-color: hsl(209, 100%, 35%);
    border-color: hsl(209, 100%, 25%);
}
#x-twitter {
    background-color: hsl(0, 0%, 25%);
    border-color: hsl(0, 0%, 15%);
}
#x-twitter:hover {
    background-color: hsl(0, 0%, 15%);
    border-color: hsl(0, 0%, 5%);
}
#x-twitter:active {
    background-color: hsl(0, 0%, 5%);
    border-color: hsl(0, 0%, 0%);
}
i.fa-2x {
    display: none;
}
i.fa-4x {
    display: block;
}
.profileSocialLine i.fa-2x {
    display: block;
}

/*Website footer styling*/
footer {
    margin-inline-start: 0;
    background-color: hsl(0, 0%, 5%);
    box-shadow: 5px -10px 12px rgba(0, 0, 0, .5);
}
footer p, footer a {
    font-size: 1rem;
    padding-left: 5px;
    color:hsl(0, 0%, 40%)
}

/* Phone resizing to make the fonts smaller so stuff doesnt look bad*/
@media (max-width: 767px) {
    header h1 {
        font-size: 3rem;
    }
    header a {
        font-size: 1rem;
    }
    .dropdown button {
        font-size: 1rem;
    }
    .content a {
        font-size: 1rem;
    }

    h2 {
        font-size: 3rem;
    }
    h3 {
        font-size: 1.75rem;
        margin: 0px 5px;
    }
    h4 {
        font-size: 1rem;
        margin: 5px;
    }
    h5 {
        font-size: 1.25rem;
        margin-bottom: 0px;
    }
    .mainContainer h4 {
        font-size: 2rem;
    }
    .mainContainer img {
        width: 128px;
        height: 128px;
    }
    .mainContainer p {
        font-size: 1rem;
    }

    
    .projectCard .tags li {
        padding: 7px 10px;
        font-size: 1rem;
    }
    .projectCard .tag-bullet {
        width: 10px;
        height: 10px;
    }
    .projectCard .tags p {
        margin-top: 10px;
        font-size: 1.25rem;
    }
    .projectCard {
        width: 90%;
    }
    .projectCard h1 {
        font-size: 2rem;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .projectCard img {
        width: 196px;
        float: none;
    }
    .projectCard p {
        margin-bottom: 10px;
        font-size: 1rem;
    }
    

    .profiles {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        margin: 20px;
    }
    .profile h1 {
        font-size: 2rem;
    }

    .slider {
        height: 550px;
    }

    .card {
        width: 50%;
        height: 500px;
    }
    .card img {
        width: 75%;
        padding: 0px 20px;
    }
    .card h1 {
        font-size: 1.75rem;
        padding: 0;
    }
    .card p {
        font-size: .9rem;
    }
    .unfocused, .unfocusedOut {
        height: 200px;
        width: 30%;
    }
    .tags li {
        padding: 5px 10px;
        font-size: 0.6rem;
    }
    .tag-bullet {
        width: 8px;
        height: 8px;
    }

    .images {
        height: 300px;
        margin-bottom: 10px;
    }
    .images img {
        position: absolute;
        width: 256px;
        animation: mobileSlideLeft 45s linear calc((var(--i) - 1) * -1.363636s) infinite; /* Reminder if more images are added: (n / animation-length)s of delay */
        transform: translate(-50%, -50%) translateX(4224px); /* Reminder if more images are added: ((n * 512px) / 2) of offset */
        z-index: 1;
    }
    .images img:hover {
        width: 300px;
        box-shadow: 8px 8px 5px rgba(0, 0, 0, .5);
        z-index: 3;
    }

    .contactContainer {
        width: 90%;
        margin: 40px;
        padding: 20px;
    }
    .contactContainer h4 {
        font-size: 2rem;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    .contactContainer p {
        font-size: 1rem;
    }
    .socialLine {
        padding: 10px 0px; 
        padding-left: 2.5%;
    }
    .socialLine a {
        font-size: 1rem;
    }
    .socialLine button {
        width: 48px;
        height: 48px;
    }
    i.fa-2x {
        display: block;
    }
    i.fa-4x {
        display: none;
    }
    .iframe-container {
        display: none;
    }
}