:root {
    --primary: #ffcc00;
    --secondary: #cc0000;
    --dark: #333;
    --light: #f9f9f9;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    background-color: #f5f5f5;
    color: var(--dark);
    line-height: 1.6;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--primary);
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
}

h1 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.subtitle {
    font-size: 90%;
    color: var(--dark);
}

.converter {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

label {
    margin-bottom: 8px;
    font-weight: 600;
}

select,
input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s;
    margin-top: 10px;
}

button:hover {
    background-color: #a00000;
}

.rate-status {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
    min-height: 1.2em;
}

.result {
    text-align: center;
    padding: 20px;
    background-color: var(--light);
    border-radius: 10px;
    margin-top: 20px;
    display: none;
}

.pastizzi-count {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary);
    margin: 10px 0;
}

div.pastizzi-image {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin-bottom: 15px;
}
div.pastizzi-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.info-section {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

h2 {
    color: var(--secondary);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .input-row {
        display: flex;
        gap: 15px;
    }

    .input-group {
        flex: 1;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .converter {
        padding: 15px;
    }
}

a {
    color: var(--secondary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
