/* ============================================
   PIXEL ART THEME (DEFAULT)
   ============================================ */

/* ----------- HEADER / NAVIGATION ----------- */
header {
    width: 100%;
    top: 0;
    z-index: 1000;
    background: #000;
    border-bottom: 4px solid #5f5f5f;
    position: fixed;
    left: 0;
    min-height: 80px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    width: 100%;
    min-height: 80px;
}

.navbar .logo a {
    color: #e4e4e4;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
}

.navbar .nav-links li {
    margin: 0 10px;
}

.navbar .nav-links button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.navbar .nav-links a {
    color: #e4e4e4;
    text-decoration: none;
    padding: 8px 16px;
    font-size: 12px;
    background: #333;
    border-style: solid;
    border-width: 4px;
    border-color: #777 #333 #333 #777;
    box-shadow: 0 0 0 2px #000;
    transition: none;
}

.navbar .nav-links a:hover {
    background: #444;
    border-color: #888 #444 #444 #888;
}

/* ----------- MAIN / SECTIONS ----------- */
main {
    margin-top: 100px;
}

section {
    background: rgba(42, 42, 42, 0.64);
    border: 4px solid #4c4c4c;
    padding: 20px 10px;
    margin-top: 20px;
    box-shadow: 0px 0px 0px 4px #000;
}

/* ----------- HERO ----------- */
.hero {
    text-align: center;
    background: #35702c;
    border-color: #061619;
    color: white;
    text-shadow: 2px 2px #000;
    max-width: 1400px;
    margin: 20px auto;
}

.hero h1 {
    font-size: 14px;
    margin-bottom: 20px;
}

/* ----------- FEATURES ----------- */
.features {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1400px;
    gap: 20px;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

.feature {
    flex: 1;
    background: #303030;
    border-style: solid;
    border-width: 4px;
    border-color: #777 #333 #333 #777;
    margin: 0;
    padding: 12px;
    box-shadow: 0 0 0 2px #000;
}

.feature:hover {
    background: #383838;
    border-color: #888 #444 #444 #888;
}

.feature-3 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ----------- ABOUT / CONTACT / CELL ----------- */
.about-contact {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
}

.about,
.contact,
.cell {
    background: #303030;
    border-style: solid;
    border-width: 4px;
    border-color: #777 #333 #333 #777;
    padding: 12px;
    box-shadow: 0 0 0 2px #000;
    margin-bottom: 20px;
}

.about h2,
.contact h2,
.cell h2 {
    margin-bottom: 10px;
}

.about:hover,
.contact:hover,
.cell:hover {
    background: #383838;
    border-color: #888 #444 #444 #888;
}

/* ----------- FOOTER ----------- */
.foot {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000;
    border-top: 4px solid #5f5f5f;
    padding: 12px 0;
    text-align: center;
    color: #e4e4e4;
    font-size: 10px;
    box-shadow: 0 -4px 0 0 #000;
    z-index: 999;
    min-height: 60px;
}

/* ----------- BACK TO TOP BUTTON ----------- */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 16px;
    background: #333;
    color: #e4e4e4;
    border-style: solid;
    border-width: 4px;
    border-color: #777 #333 #333 #777;
    box-shadow: 0 0 0 2px #000;
    cursor: pointer;
    font-size: 12px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.back-to-top:hover {
    background: #444;
    border-color: #888 #444 #444 #888;
}

body.scrolled .back-to-top {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(1px);
}

/* ----------- THEME SWITCHER ----------- */
.theme-switch {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.theme-switch button {
    padding: 8px 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    background: #333;
    color: #e4e4e4;
    border-style: solid;
    border-width: 4px;
    border-color: #777 #333 #333 #777;
    box-shadow: 0 0 0 2px #000;
}

.theme-switch button:hover {
    background: #444;
    border-color: #888 #444 #444 #888;
}

#pixel-btn,
#skeuo-btn {
    cursor: pointer;
}

/* ----------- PIXEL ART MEDIA QUERIES ----------- */

/* Mobile (600px and below) */
@media screen and (max-width: 600px) {
    body {
        margin-left: 10px;
        margin-right: 10px;
        background-size: 50%;
    }

    .navbar .logo a {
        font-size: 12px;
    }

    .navbar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #000;
        position: absolute;
        top: 50px;
        left: 0;
        z-index: 1000;
    }

    .navbar .nav-links li {
        margin: 10px 0;
    }

    .navbar .nav-links a {
        padding: 10px;
        border: none;
    }

    .navbar .nav-links a:hover {
        background: #333;
    }

    .navbar .toggle-btn {
        display: block;
        color: #e4e4e4;
        font-size: 20px;
        cursor: pointer;
    }

    .hero h1 {
        font-size: 16px;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature {
        margin: 10px 0;
        width: 100%;
    }

    .foot {
        font-size: 12px;
        padding: 15px;
    }
}

/* Tablet (601px to 1024px) */
@media screen and (min-width: 601px) and (max-width: 1024px) {
    body {
        margin-left: 0;
        margin-right: 0;
        padding-bottom: 0;
        background-size: 50%;
    }

    .navbar .toggle-btn {
        display: none;
    }

    .navbar .nav-links {
        display: flex;
        flex-direction: row;
    }

    .foot {
        position: static;
        width: 100%;
        box-shadow: none;
    }

    .features {
        display: grid !important;
        grid-template-columns: 2fr 1fr;
        gap: 10px;
        grid-template-areas:
            "feat1 feat3"
            "feat2 feat3";
        max-width: 100%;
        margin: 0;
    }

    .feature {
        width: 100%;
        margin: 0;
        min-width: 0;
        overflow: hidden;
    }

    .feature:nth-child(1) {
        grid-area: feat1;
    }

    .feature:nth-child(2) {
        grid-area: feat2;
    }

    .feature:nth-child(3) {
        grid-area: feat3;
    }
}

/* Desktop (1025px and above) */
@media screen and (min-width: 1025px) {
    .navbar .toggle-btn {
        display: none;
    }

    .navbar .nav-links {
        display: flex;
        flex-direction: row;
    }

    .features {
        display: flex;
    }

    .feature {
        flex: none;
    }

    .feature:nth-child(1) {
        width: calc(25% - 40px / 3);
    }

    .feature:nth-child(2) {
        width: calc(50% - 40px / 3);
    }

    .feature:nth-child(3) {
        width: calc(25% - 40px / 3);
    }
}