:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    position: relative;
    min-height: 100vh;
    background: linear-gradient(rgba(245, 246, 250, 0.55), rgba(245, 246, 250, 0.55)), url('background.jpg') no-repeat center center fixed;
    background-size: cover;
}

.main-header {
    width: 100%;
    background: rgba(44, 62, 80, 0.425);
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-header h1 {
    text-align: center;
    color: white;
    margin: 0;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
}

h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.calculator {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

button {
    width: 100%;
    padding: 1rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

.results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.results h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#maxWeight {
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
}

.percentages {
    margin-top: 2rem;
}

.percentages h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-section, .tips-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.info-section h2, .tips-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tips-section ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.tips-section li {
    margin-bottom: 0.5rem;
}

.seo-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.seo-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.seo-section p {
    color: var(--text-color);
    line-height: 1.6;
    text-align: justify;
}

@media (max-width: 600px) {
    .container {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .calculator {
        padding: 1.5rem;
    }
}
