* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f7f8f5;
    color: #26352d;
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.8;
}

.container {
    width: min(900px, 92%);
    margin: 48px auto;
}

header {
    text-align: center;
    margin-bottom: 36px;
}

h1 {
    margin: 0;
    color: #245b43;
    font-size: 3rem;
}

header p {
    color: #66736b;
}

.panel {
    background: white;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid #e0e7df;
    border-radius: 14px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 12px;
}

textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #bdcbc0;
    border-radius: 9px;
    font: inherit;
    resize: vertical;
    min-height: 180px;
}

textarea:focus {
    outline: 2px solid #75a68b;
}

button {
    margin-top: 16px;
    padding: 11px 28px;
    background: #245b43;
    color: white;
    border: 0;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
}

button:hover {
    background: #194531;
}

footer {
    text-align: center;
    color: #7b867e;
    font-size: 0.9rem;
}

/* Prosody analysis results */

.feet-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 24px;
}

.foot-card {
    background: #f0f6f1;
    border: 1px solid #c9dfcf;
    border-radius: 12px;
    padding: 18px 10px;
    text-align: center;
}

.foot-name {
    display: block;
    color: #245b43;
    font-size: 1.35rem;
    font-weight: bold;
}

.foot-number {
    display: block;
    color: #728177;
    font-size: 0.8rem;
    margin-top: 4px;
}

#analysis-output h3 {
    color: #245b43;
    margin-bottom: 8px;
}

#analysis-output ul {
    padding-right: 24px;
}

#analysis-output li {
    margin-bottom: 8px;
}

#analysis-output p {
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .feet-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .foot-name {
        font-size: 1.2rem;
    }

    .panel {
        padding: 20px;
    }
}
