:root {
    --primary-color: #ba4df5;
    --background-color: #000000;
    --text-color: #ffffff;
    --transition-speed: 0.3s;
}

body.dark {
    background-color: var(--background-color);
    color: var(--text-color);
}

body.light {
    background-color: #f0f0f0;
    color: #000000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
}

.logo {
    max-width: 200px;
    margin-top: -25px;
    margin-bottom: -25px;
}

header h1 {
    font-size: 1.8rem;
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform var(--transition-speed);
}

#theme-toggle:hover {
    transform: rotate(20deg);
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group input[type="number"] {
    padding: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 1rem;
    background-color: #111111;
    color: #ffffff;
}

.gender-options {
    display: flex;
    gap: 20px;
}

.gender-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.gender-image {
    width: 90px;
    height: 160px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

input[type="radio"]:checked + .gender-image {
    box-shadow: 0 0 15px var(--primary-color);
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
}

button[type="submit"] {
    padding: 10px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

button[type="submit"]:hover {
    background-color: #a034e0;
    transform: scale(1.05);
}

#result {
    margin-top: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

#result h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.height-container {
    background-color: rgba(186, 77, 245, 0.1);
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    text-align: center;
}

.height-cm {
    font-size: 2.5rem;
    color: #ffffff;
}

.height-ft {
    font-size: 1rem;
    color: #a034e0;
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.kids-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.modal.show {
    display: block;
}

.modal-content {
    background: #111;
    margin: 20px auto;
    padding: 20px;
    width: 95%;
    max-width: 500px;
    border-radius: 10px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(186, 77, 245, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.delete-kid-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.delete-kid-btn:hover {
    transform: scale(1.1);
    color: #ff0000;
}

.kid-item {
    position: relative;
    background: rgba(186, 77, 245, 0.1);


.share-button {
    margin: 20px auto;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(186, 77, 245, 0.3);
    width: fit-content;
}

.share-button:hover {
    background-color: #a034e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(186, 77, 245, 0.4);
}

.share-button:active {
    transform: translateY(1px);
}

.share-button i {
    font-size: 1.2rem;
    color: white;
}

    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.kid-gender-image {
    width: 50px;
    height: 90px;
    object-fit: cover;
    border-radius: 5px;
}

.add-kid-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.add-kid-form input {
    padding: 8px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    background: #111;
    color: #fff;
}

.add-kid-button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 1.3rem;
        text-align: center;
    }

    button[type="submit"] {
        font-size: 0.9rem;
    }

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

    .kid-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .kid-gender-image {
        width: 70px;
        height: 120px;
    }

    .add-kid-form {
        flex-direction: column;
    }

    .height-cm {
        font-size: 2rem;
    }

    .modal-content {
        margin: 10px;
        padding: 15px;
        width: 95%;
    }
}