:root {
    --bg: linear-gradient(135deg, #667eea, #764ba2);
    --card: #ffffff;
    --text: #000;
}

body.dark {
    --bg: linear-gradient(135deg, #1f2933, #111827);
    --card: #1f2933;
    --text: #fff;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    color: var(--text);
}

.theme-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.container {
    width: 420px;
    margin: 60px auto;
    background: var(--card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

h1 {
    text-align: center;
}

label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
}

button {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.clear-btn {
    background: #e53e3e;
}

.array-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.box {
    width: 45px;
    height: 45px;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 6px;
}

.box.compare {
    background: #facc15;
    color: black;
}

.box.found {
    background: #22c55e;
}

.output {
    margin-top: 15px;
    padding: 10px;
    background: rgba(0,0,0,0.05);
    border-radius: 6px;
}

footer {
    background: #111;
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}

.wrapper {
    width: 90%;
    margin: auto;
    text-align: center;
}

.members {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.team-mem img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}
@media (max-width: 480px) {

    .container {
        width: 92%;
        margin: 80px auto 40px;
        padding: 18px;
    }

    h1 {
        font-size: 18px;
    }

    label {
        font-size: 14px;
    }

    input, select, button {
        font-size: 14px;
    }

    .array-container {
        gap: 6px;
    }

    .box {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .output p {
        font-size: 13px;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* Footer */
    .members {
        flex-direction: column;
        gap: 25px;
    }

    .team-mem img {
        width: 90px;
        height: 90px;
    }
}
@media (min-width: 481px) and (max-width: 900px) {

    .container {
        width: 80%;
        max-width: 520px;
        margin: 70px auto;
    }

    h1 {
        font-size: 20px;
    }

    .array-container {
        gap: 8px;
    }

    .box {
        width: 42px;
        height: 42px;
    }

    .members {
        flex-wrap: wrap;
        gap: 30px;
    }
}
@media (min-width: 1200px) {
    .container {
        max-width: 440px;
    }
}
