* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 80px;
}

.container {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.heart-icon {
    color: #ff6b6b;
    font-size: 24px;
    margin-right: 8px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-field {
    width: 100%;
    padding: 15px 40px 15px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: #ff6b6b;
}

.input-field.error {
    border-color: #ff5252;
}

.delete-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.delete-btn:hover {
    color: #ff6b6b;
}

.zodiac-select {
    width: 100%;
    padding: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    background-color: white;
    cursor: pointer;
}

.zodiac-select:focus {
    border-color: #ff6b6b;
}

.zodiac-select.error {
    border-color: #ff5252;
}

.gender-selection {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.gender-option {
    position: relative;
    cursor: pointer;
}

.gender-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.gender-circle {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.gender-option input[type="radio"]:checked + .gender-circle {
    border-color: #ff6b6b;
    background-color: #ff6b6b;
    box-shadow: inset 0 0 0 3px white;
}

.gender-option:hover .gender-circle {
    border-color: #ff6b6b;
}

.gender-label {
    font-size: 16px;
    color: #555;
    vertical-align: middle;
}

.error-message {
    color: #ff5252;
    font-size: 14px;
    margin-top: 5px;
    text-align: left;
    display: none;
}

.calculate-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.calculate-btn:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.loading-container {
    display: none;
    margin: 30px 0;
}

.heart-loader {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.heart-loader:before,
.heart-loader:after {
    position: absolute;
    content: "";
    left: 40px;
    top: 0;
    width: 40px;
    height: 60px;
    background: #ff6b6b;
    border-radius: 40px 40px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.heart-loader:after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

.heart-loader.animate {
    animation: heartbeat 0.8s infinite;
}

.loading-text {
    margin-top: 15px;
    color: #888;
    font-size: 16px;
}

.result-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.percentage {
    font-size: 80px;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 20px;
    line-height: 1;
}

.message {
    font-size: 22px;
    color: #555;
    margin-bottom: 40px;
    font-style: italic;
    line-height: 1.4;
}

.back-btn {
    background-color: white;
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
    border-radius: 30px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.back-btn:hover {
    background-color: #ff6b6b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: #888;
    font-size: 14px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    z-index: 100;
}

.heart {
    color: #ff6b6b;
    display: inline-block;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .percentage {
        font-size: 70px;
    }
    
    .message {
        font-size: 20px;
    }
    
    .gender-selection {
        gap: 20px;
    }
  }
