* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html, body {
    display: grid;
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f2faf2;
}
a, a:hover {
    text-decoration: none;
}

#content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 800px;
    height: 100%;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 32px 0px rgb(0 0 0 / 10%);
}
header {
    position: relative;
    width: 100%;
    padding: 0 32px;
    z-index: 1;
}
#catch-phrase {
    position: relative;
    width: 100%;
    text-align: center;
    overflow: visible;
    z-index: 1;
    font-size: min(3.5vw, 28px);
}

.logo {
    width: 120px;
    height: 54px;
    margin: 24px 0 16px 8px;
}

nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

.category {
    position: relative;
    width: 100px;
}

.category-image {
    position: relative;
    width: 100px;
    height: 100px;
    background-color: #aaa;
}

.category-label {
    position: relative;
    text-align: center;
    font-weight: bold;
    color: #484
}

#footer {
    flex-grow: 1;
    position: relative;
    width: 100%;
    height: 100%;
}
canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#device-container {
    width: 100%;
    padding-top: 110%;
    position: relative;
}
#device-overlay {
    width: 100%;
    position: absolute;
    top: 0;
    font-size: min(4vw, 32px);
    font-weight: 800;
}
#device-renderer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 10%;
}

#text-overlay-1 {
    position: absolute;
    display: block;
    left: min(32vw, 256px);
    top: min(48vw, 384px);
    opacity: 0;
}

#text-overlay-2 {
    position: absolute;
    display: block;
    left: min(42vw, 338px);
    top: min(55vw, 440px);
    opacity: 0;
}
#text-overlay-3 {
    position: absolute;
    display: block;
    right: min(2vw, 16px);
    top: min(42vw, 338px);
    opacity: 0;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    60% { opacity: 1; }
    80% { opacity: 0; }
    100% { opacity: 0; }
}
.fade-in-out {
    animation: fadeInOut 4s ease-in-out forwards; /* Animation duration: 13 seconds */
}

.hidden {
    display: none;
}

.nav-menu-button-container {
    display: none;
}

#faq-container {
    max-width: 800px;
    margin: 20px 20px 160px 20px;
    font-family: system-ui, -apple-system, sans-serif;
}

.faq-title {
    padding-left: 0.25rem;
    font-size: 2rem;
}

.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.faq-question {
    font-weight: 600;
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    user-select: none;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.question-text {
    flex: 1;
    margin-right: 20px; /* Consistent space between text and chevron */
}

.chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
}

.chevron::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: translate(-50%, -75%) rotate(45deg);
    transition: transform 0.3s ease;
}

.faq-item.active .chevron::after {
    transform: translate(-50%, -25%) rotate(-135deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    color: #4b5563;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0 20px 20px;
    opacity: 1;
}

/* Hamburger Menu */
@media (max-width: 600px) {
    nav {
        display: none;
        margin: 32px 0 16px;
    }

    .nav-visible {
        display: flex;
        transform: scaleX(1);
        opacity: 1;
    }

    .nav-menu-button-container {
        display: flex;
        right: 0;
        align-items: center;
        color: #fff;
        float: right;
        margin: 32px 8px 0 0;
    }

    .nav-menu-button-container label {
        padding-right: 16px;
    }

    .nav-menu-button {
        display: block;
        position: relative;
        width: 32px;
        height: 32px;
        transform: scale(1);
        transition: transform 0.2s ease-out;
    }

    .nav-menu-button:hover {
        transform: scale(1.1);
    }

    .nav-menu-button .nav-menu-checkbox {
        position: absolute;
        display: block;
        height: 100%;
        width: 100%;
        z-index: 5;
        opacity: 0;
        cursor: pointer;
    }
    
    .nav-menu-button .hamburger-lines {
        display: block;
        top: 4px;
        height: 24px;
        width: 32px;
        position: absolute;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .nav-menu-button .hamburger-lines .line {
        display: block;
        height: 4px;
        width: 100%;
        background: #444;
    }
    
    .nav-menu-button .hamburger-lines .line1 {
        transform-origin: 0% 0%;
        transition: transform 0.2s ease-in-out;
    }
    
    .nav-menu-button .hamburger-lines .line2 {
        transition: transform 0.1s ease-in-out;
    }
    
    .nav-menu-button .hamburger-lines .line3 {
        transform-origin: 0% 100%;
        transition: transform 0.2s ease-in-out;
    }
    
    .nav-menu-button input[type="checkbox"]:checked ~ .menu-items {
        transform: translateX(0);
    }

    .nav-menu-button input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
        transform: rotate(45deg);
        width: 30px;
    }
    
    .nav-menu-button input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
        transform: scaleY(0);
        width: 30px;
    }
    
    .nav-menu-button input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
        transform: rotate(-45deg);
        width: 30px;
    }

    .nav-menu-button input[type="checkbox"]:checked ~ nav div {
        display: block;
    }
}