* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    line-height: 1.5;
    font-weight: 400;

    color-scheme: dark;
    color: rgba(255, 255, 255, 0.87);
    background-color: #1a1a1a;

    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background-color: #0b0b0b;
}

.hght {
    height: 30vh;
}

#app {
    height: 100vh;
    padding: 2rem;
}

.nav {
    margin-bottom: 3rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: opacity 0.2s;
}

.back-button:hover {
    opacity: 0.7;
}

.back-button svg {
    width: 16px;
    height: 16px;
}

.header {
    text-align: center;
    margin-bottom: 5rem;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: white;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: white;
    text-transform: uppercase;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    /* height: 100vh; */
    padding: 0 2rem;
}

.device-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.device-icon {
    width: 100%;
    max-width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.device-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    text-align: center;
    min-height: 2.5rem;
}

.select-button {
    width: 100%;
    min-width: 280px !important;
    padding: 0.875rem 2rem;
    background-color: white;
    color: #1a1a1a;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.select-button:active {
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .devices-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    .hght {
    height: 0vh;
}

}

@media (max-width: 640px) {
    .devices-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .header {
        margin-bottom: 3rem;
    }

    .logo {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.875rem;
    }
}