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

body {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('SoupPictures/Background.jpg');
    background-repeat: repeat;
    background-size: 200px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
}

.page-header {
    border: 3px solid white;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 16px 24px;
    max-width: 650px;
    margin: 20px auto;
}

.page-layout {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

.side-panel {
    width: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.side-panel a {
    display: block;
    height: 100%;
}

.side-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.main-content {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.soup-stats {
    text-align: left;
    max-width: 650px;
    margin: 0 auto;
    border: 3px solid white;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 16px 24px;
}

.soup-stats H3:first-child {
    font-size: 2.2em;
}

.soup-stats h2,
.soup-stats h3 {
    font-size: 1.5em;
    margin-bottom: 0.2em;
}

.soup-stats p {
    font-size: 1.1em;
    margin-top: 0;
}

.soup-stats a {
    color: yellow;
}

.soup-stats a:active {
    color: purple;
}

.soup-header {
    display: block;
    margin: 0 auto;
    width: 324px;
}

.soups {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 30px auto;
}

.soups a {
    text-decoration: none;
    color: white;
}

.soup-card {
    border: 3px solid white;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    transition: transform 0.15s, border-color 0.15s;
}

.soup-card:hover {
    transform: scale(1.05);
    border-color: yellow;
}

.soup-card img {
    width: 100%;
    display: block;
}

.soup-card p {
    margin: 0;
    padding: 6px 4px;
    font-size: 0.75em;
    text-align: center;
}

.soup-card.placeholder {
    opacity: 0.45;
}

.nutrition-img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

.back-link {
    color: yellow;
}

.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1em;
}

.nutrition-table td {
    padding: 6px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nutrition-table td:last-child {
    text-align: right;
    font-weight: bold;
}

.nutrition-table .nutrition-calories td {
    font-size: 1.3em;
    border-bottom: 3px solid white;
    padding-bottom: 8px;
}

.wide-panels .side-panel {
    width: 650px;
}
