
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background-color: #f4f4f4;
    padding: clamp(8px, 2vw, 20px);
    background-image: url("assets/background6.jpg");
    background-position: center;
    background-size: contain;
}

label {
    color: black;
    background-image: linear-gradient(
#ff512f, #f09819);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid black;
    backdrop-filter: blur(5px);
}

.collection {
    display: grid;
    grid-template-rows: auto auto;
}

.top-section {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vw, 20px);
    padding: clamp(15px, 3vw, 30px);
    width: fit-content;
}

.top-section h1 {
    font-size: clamp(1.5rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
}

.top-section p {
    font-size: clamp(0.95rem, 1.5vw, 1.125rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    line-height: 1.5;
}

.top-section h1,
.top-section p {
    text-shadow: 
    0 1px 2px rgba(0,0,0,0.9),
    0 0 6px rgba(0,0,0,0.6);
}

.controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.collection-cards-parent {
    display: grid;
    gap: clamp(10px, 2vw, 25px);
    grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 30vw, 320px), 1fr));
    padding: clamp(8px, 2vw, 20px);
}

.recipe-card {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 0fr 2fr 0fr;
    gap: 5px;
    width: 100%;
    height: 100%;
    background: white;
    padding: clamp(6px, 1vw, 12px);
    border-radius: clamp(6px, 1vw, 12px);
}

.delete-button {
    position: absolute; 
    top: 10px;
    right: 10px; 
    font-size: clamp(0.65rem, 0.9vw, 0.8rem);
    padding: 2.5px 5px;
    border: 1px solid black;
    box-shadow: 0px 0px 1px 1px rgb(0,0,0);
}
.delete-button:hover {
    background-image: linear-gradient(
#ff512f, #f09819);
    transition: 0.7s;
}

.picture {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid black;
}

.picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.name {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: bold;
    border: 1px solid black;
    padding: 10px;
}


.info-section {
    background-image: linear-gradient(
#ff512f, #f09819);
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid black;
    padding: 10px;
}

.info-section p {
    justify-self: start; 
}

.info-section p:last-child {
    justify-self: end; 
}

.content-section {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    border: 1px solid black;
    padding: 10px;
}

.ingredients-section {
  padding: 10px;
  color: #4F517D;
}
.directions-section {
  color: #FF6347; 
  padding: 10px;
}

.ingredients-section h3,
.directions-section h3 {
    text-align: center;
}


.nutrition-section {
    grid-column: 1 / 3;
    grid-row: 4 / 5;
    text-align: center;
    border: 1px solid black;
    padding: 10px;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    background-image: linear-gradient(
     #ff512f, #f09819);
}


