@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    text-align: center;
}

h1, h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
    line-height: 1.6;
}

input[type="text"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

button, a {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

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

#survey-section, #thank-you-section, #name-section {
    text-align: left;
}

.question {
    margin-bottom: 25px;
    padding: 15px;
    border-left: 3px solid #3498db;
    background-color: #ecf0f1;
    border-radius: 0 5px 5px 0;
}

.question label {
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
}

.rating {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.rating input[type="radio"] {
    display: none;
}

.rating label {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-weight: normal;
}

.rating input[type="radio"]:checked + label {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

#ranking-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

#ranking-table th, #ranking-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

#ranking-table th {
    background-color: #ecf0f1;
    color: #2c3e50;
}

#ranking-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#charts-section {
    margin-top: 40px;
    width: 100%;
}

#charts-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.chart-wrapper {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.chart-wrapper h3 {
    font-size: 16px;
    text-align: center;
    margin-bottom: 15px;
    color: #34495e;
}

/* Media query for larger screens */
@media (min-width: 768px) {
    #charts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

