/* Add font-face declarations for Vinnytsia fonts */
@font-face {
    font-family: 'VinnytsiaCity';
    src: url('fonts/VinnytsiaCity.ttf') format('truetype');
}

@font-face {
    font-family: 'VinnytsiaSansBold';
    src: url('fonts/VinnytsiaSansBold.ttf') format('truetype');
}

@font-face {
    font-family: 'VinnytsiaSansReg';
    src: url('fonts/VinnytsiaSansReg.ttf') format('truetype');
}

@font-face {
    font-family: 'VinnytsiaSerif';
    src: url('fonts/VinnytsiaSerif.ttf') format('truetype');
}

body {
    font-family: 'VinnytsiaSansReg', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fdfaf4; /* Light cream color to resemble a book page */
    color: #333;
    line-height: 1.6;
    background-position: right bottom !important;
    background-repeat: no-repeat;
    background-size: 400px auto; /* Adjust size as needed */
}

h1, h2, h3 {
    font-family: 'VinnytsiaSerif', serif;
    color: #5a3e36;
    text-align: center;
}

ul {
    list-style-type: none;
    padding: 0;
    font-size: 1.2em;
    margin: 20px 20px;
    text-align: right; /* Align the list to the right */
    color: #5a3e36; /* Match the main text color */
}

li {
    margin: 10px 0;
}

a {
    text-decoration: none;
    color: #8b4513;
}

a:hover {
    text-decoration: none;
}

/* Center the calculator group in the box */
.calculator {
    display: flex; /* Use flexbox for centering */
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center items vertically */
    align-items: center; /* Center items horizontally */
    margin: 20px auto;
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-width: 350px;
}

.calculator input[type="number"] {
    font-size: 1.5em;
    padding: 10px;
    width: 100%;
    max-width: 300px;
    margin-bottom: 10px;
}

table {
    width: 61.8%; /* Golden ratio proportion */
    margin: 0 auto; /* Center the table */
    border-collapse: collapse;
    margin-top: 10px;
    background-color: #fff;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 8px;
    text-align: left;
}

header {
    background-color: #2e4a3d; /* Dark green background */
    color: #fdf6e3; /* Light cream text */
    padding: 20px;
    text-align: right; /* Align text to the right */
    font-family: 'Georgia', serif;
}

header h1 {
    margin: 0;
    color: #fdf6e3; /* Light cream text */
    text-align: right;
    font-family: 'VinnytsiaCity', sans-serif;
}

/* Add styles to display items in a line */
.items-line {
    display: flex; /* Use flexbox for horizontal alignment */
    flex-direction: row; /* Arrange items in a row */
    justify-content: space-between; /* Distribute items evenly */
    align-items: center; /* Align items vertically */
}

/* Add styles for recipe cards */
.recipe-card {
    display: inline-block;
    width: 250px;
    margin: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.recipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.recipe-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.recipe-card a {
    display: block;
    font-size: 1.2em;
    color: #8b4513;
    text-decoration: none;
    margin-top: 10px;
    font-family: 'VinnytsiaSansBold', sans-serif;
}

/* Update hover effect for recipe card links */
.recipe-card a:hover {
    text-decoration: none;
    color: #a0522d; /* Slightly darker shade of brown */
}