@font-face {
    font-family: 'Nimbus Sans';
    src: url('fonts/NimbusSansNarrow-Bold.woff');
}

@font-face {
    font-family: 'Blunt';
    src: url('fonts/Blunt Regular.otf');
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    margin: 0;
    background-image: url('backgrounds/kworks-bg.jpg'); /* fallback */
    background-attachment: fixed;
    background-size: cover;
    margin-bottom: auto;
    backdrop-filter: blur(4px) grayscale(30%);
    min-height: 100vh;
    padding-bottom: 10vh;
}

.kwlogo {
    float: left;
    padding-right: 20%;
}

header {
    z-index: 100;
    position: sticky;
    top: 0px;
    width: 100%;
    height: 120px;
    padding: 1rem 0;
    background-image: url('images/navbar_bg.png');
    background-repeat: repeat-x;
    background-position: 50%;
}

strong {
    color: hsl(49, 90%, 47%);
}

.footer {
    position: fixed;
    bottom: 0px;
    left: 0px;
    font-family: 'Nimbus Sans';
    font-size: 0.75rem;
    color: hsla(0, 0%, 90%, 0.533);
    padding-left: 2rem;
    padding-bottom: 1rem;
    text-shadow: 2px 2px 4px hsla(0, 0%, 100%, 0.298);
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.deco {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
}

.corner {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translate(55%, 45%);
  pointer-events: none;
}

.content h1 {
    font-family: 'Blunt';
    font-size: 4rem;
    color: hsl(0, 0%, 90%);
    padding: 0.5rem 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 20);
}

.content h2 {
    font-family: 'Blunt';
    font-size: 3rem;
    color: hsl(0, 0%, 90%);
    padding: 0.5rem 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 20);
}

.content .welcome {
    text-align: center;
}

.content .welcome,
.content .project,
.content .socials,
.content .credits,
.content .discord,
.content .faq,
.content .mod {
    position: relative;
    font-family: 'Nimbus Sans';
    font-size: 20px;
    color: hsl(0, 0%, 79%);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 20);
    padding: 0rem 1.2rem;
    border: 15px solid;
    border-image: url('images/box_border.png');
    border-image-width: 8px 15px;
    border-image-slice: 15 20 fill;
    border-image-repeat: stretch repeat;
    filter: drop-shadow(0 0 0.25rem rgba(0, 0, 0, 0.757));
}

.short_page_uh_oh {
    height: 50vh;
}

.content .mods {
    display: flex;
    flex-direction: column;
    max-width: 60rem;
    min-width: 60rem;
    gap: 1rem;
}

.content .dlcs {
    align-items: flex-start;
    /* add this */
    display: flex;
    flex-direction: column;
    max-width: 60rem;
    min-height: fit-content;
    gap: 1rem;
}

.dlcs .mod {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
}

.dlc-thumb {
    width: 500px;
    height: 100px;
    object-fit: contain;
    align-self: center;
    flex-shrink: 5;
}

.dlc-text {
    display: flex;
    align-items: center;
    align-self: center;
    flex-direction: column;
}

.dlc-text .info {
    display: flex;
}

.screenshot {
    width: 100%;
    height: auto;
    display: block;
}

.content .mod {
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}

.mod .info.stats {
    font-size: 1.2rem;
    padding: 0.25rem;
    display: flex;
    justify-content: space-between;
    background-size: cover;
    background-image: url('images/stat_bg.png');
}

.mod .grid {
    display:grid;
    align-items: center;
}

.mod .stat {
    text-align: right;
    float: right;
}

.mod ul {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 1rem;
}

.mod a {
    text-decoration: underline;
}

.mod-logo {
    filter: drop-shadow(0 0 0.75rem black);
    display: flex;
    object-fit: contain;
    width: 20%;
    padding-bottom: 1rem;
}

#dlc-logo {
    width: 40%;

}

.content .faqs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 75rem;
}
.content .faq {
    display: flex;
    flex-direction: column;
}

.content .faq .h3 {
    margin: 0;
    padding: 0;
}
.content .faq .q {
    text-transform: uppercase;
    font-size: 1.5rem;
    color: hsl(49, 90%, 47%);
}

.discord {
    width: 90%;
    height: 600%;
}

.socials a {
    display: block;
    text-decoration: underline;
    margin: 0.5rem 0;
    color: hsl(204, 2%, 50%);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 50);
    transition: color 0.3s ease;
}

.socials a:hover {
    color: hsl(49, 90%, 47%);
    text-shadow: 0 0 10px hsla(49, 65%, 58%, 0.417);
}

.social {
    display:flex;
    align-items: center;
}

.social .social-icon {
    width: 64px;
    height: 64px;
    margin-right: 10px;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;    
    gap: 1rem;
}

.project {
    display: flex;
    flex-direction: column;
    flex: 0 0 15%;
    margin: 10px;
}

.button {   
    cursor: pointer;
    display: grid;
    padding: 10px;
    align-self: center;
    min-width: 15rem;
    justify-content: center;
    align-items: center;
    border: 5px solid;
    color: rgba(0, 0, 0, 0.869);
    text-shadow: none;
    border-image: url('images/button_bg.png');
    border-image-slice: 0 0 0 0 fill;
    margin-top: auto;
    margin-bottom: 1rem;
}

.button:hover {
    filter: grayscale(10)
}

.project .info:hover {
    scale: 1.05;
}

.project .game {
    font-size: 0.9rem;
    color: hsl(0, 0%, 70%);
    vertical-align: bottom;
    justify-content: flex-end;
}

.project .project-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    width: 90%;
}

.project h3 {
    align-self: top;
    margin: 0.25rem 0 0.5rem 0;
    display: block;
    font-size: 1.5rem;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.container .header-nav{
    display: flex;
    gap: 0.25rem;
}

.container a {
    letter-spacing: -0.04em;
    font-family: 'Nimbus Sans';
    margin-left: auto;
    margin-right: 0;
    padding: 0.5rem 1rem;
    color: hsl(204, 2%, 50%);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 50);
    cursor: pointer;
    font-size: 35px;
    transition: scale 0.3s ease, color 0.3s ease;
}

.container a:hover,
.credit a:hover {
    scale: 1.2;
    color: hsl(49, 90%, 47%);
    text-shadow: 0 0 10px hsla(49, 65%, 58%, 0.417);
}

.credits {
    display: flex;
    flex-direction: column;
}

.credit {
    margin-right: 35rem;
}

.credit a {
    color: hsl(204, 2%, 50%);
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.credit span {
    float: right;
    margin-right: -35rem;
    color: hsl(0, 0%, 79%);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 20);
}

.photo-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 40px 0;
    margin-top: -2rem;
    margin-bottom: -1rem;
}

.photo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.photo {
    width: 180px;
    height: auto;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;

    background: rgba(0, 0, 0, 0.0);

    transform: rotate(var(--base-rot, 0deg));
}

.photo.p1 {
    --base-rot: -3deg;
    --hover-rot: 4deg;
}

.photo.p2 {
    --base-rot: 2deg;
    --hover-rot: -5deg;
}

.photo.p3 {
    --base-rot: -1deg;
    --hover-rot: 3deg;
}

.photo.p4 {
    --base-rot: 3deg;
    --hover-rot: -4deg;
}

.photo.p5 {
    --base-rot: -2deg;
    --hover-rot: 5deg;
}

.photo:hover {
    transform: scale(1.15) rotate(var(--hover-rot));
    z-index: 10;
}

.progress-section {
    max-width: 1100px;
    margin: 80px auto;
    padding: 1px 20px;
    text-align: center;
}

.progress-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.progress-images {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.progress-images img {
    width: 160px;
    max-width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.progress-images img:hover {
    transform: scale(1.05) translateY(-5px);
}

.progress-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 5px;
}

.progress-item {
    padding: 15px 20px;
    border-radius: 0px;
    font-family: 'Nimbus Sans';
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.progress-item.complete {
    background: linear-gradient(135deg, #1f8f4e, #28c76f);
    color: white;
}

.progress-item.incomplete {
    background: rgba(255, 255, 255, 0.08);
    color: #ff9191;
    border: 1px solid rgba(255, 255, 255, 0.15);
}


.progress-item::after {
    margin-left: 10px;
    font-weight: bold;
}

/* =========================
   MOBILE 
   ========================= */

@media (max-width: 900px) {

    body {
        padding-bottom: 15vh;
        background-attachment: scroll;
    }

    header {
        height: auto;
        padding: 0.5rem 0;
    }

    .kwlogo {
        float: none;
        padding-right: 0;
        display: block;
        margin: 0 auto;
        max-width: 80%;
    }

    .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .container a {
        font-size: 22px;
        padding: 0.4rem 0.6rem;
    }

    .content {
        padding: 0 1rem;
    }

    .content h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    .content h2 {
        font-size: 2rem;
        text-align: center;
    }

    .content .mods {
        max-width: 100%;
        min-width: 0;
    }

    .dlc-thumb {
        width: 75%;
    }

    .content .mod,
    .content .welcome,
    .content .project,
    .content .socials,
    .content .credits,
    .content .discord,
    .content .dlcs,
    .content .faq {
        font-size: 16px;
        padding: 0.5rem;
    }

    .mod {
        flex-direction: column;
        align-items: flex-start;
    }

    .mod .info.stats {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 1rem;
    }

    .mod .stat {
        float: none;
        text-align: left;
    }

    .projects {
        flex-direction: column;
        align-items: center;
    }

    .project {
        flex: 0 0 100%;
        width: 100%;
        max-width: 400px;
    }

    .button {
        min-width: unset;
        width: 100%;
    }

    .social {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .social .social-icon {
        width: 48px;
        height: 48px;
    }

    .credit span {
        float: none;
        margin-right: 0;
        display: block;
    }

    .credit {
        margin-right: 0;
    }

    .discord {
        width: 100%;
        height: auto;
    }

    .mod-logo {
        filter: drop-shadow(0 0 0.75rem black);
        display: flex;
        object-fit: scale-down;
        width: 40%;
        padding-bottom: 1rem;
    }
}

@media (max-width: 500px) {

    .content h1 {
        font-size: 2rem;
    }

    .content h2 {
        font-size: 1.5rem;
    }

    .container a {
        font-size: 18px;
    }

    .content .mod,
    .content .welcome,
    .content .project,
    .content .socials,
    .content .credits,
    .content .discord,
    .content .faq {
        font-size: 14px;
    }

    .social .social-icon {
        width: 40px;
        height: 40px;
    }
}