body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-image: url(cherry.jpg);
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(215, 60, 60);
    padding: 0 5vw;
    margin-bottom: 5vh;
}

header h1 {
    font-style: italic;
}

header p {
    color: rgb(94, 253, 118);
}

header nav {
    max-width: 45vw;
}

header nav ul {
    display: flex;
    flex-direction: row;
    list-style-type: none;
}

header nav ul li {
    padding-left: 5vw;
}

header nav ul li a {
    color: rgb(255, 255, 255);
    text-decoration: none;
}

header nav ul li a:hover {
    text-decoration: underline;
    color: #2ceb69;
    font-size: larger;
}


form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 90%;
    max-width: 1000px;
    margin: auto;
}

main {
    margin-bottom: 20vh;
}

main p {
    color: white;
   text-align: center;
}


section {
    background: rgb(224, 202, 202);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

section.full {
    grid-column: 1 / -1;
}

h2.red {
    margin-top: 0;
    color: #dc1515;
}

h2.green {
    margin-top: 0;
    color: #15cf50c7;
}

h3,
h4 {
    color: white;
    text-align: center;
    text-decoration-line: underline;
}

h4 {
    text-decoration-line: overline;
}

input,
select,
textarea {
    padding: 8px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}




button {
    height: 8vh;
    background-color: #dc1515;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: auto;
}

button:hover {
    background-color: #a80f0f;
}


footer {
    background-color: #dc1515;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
    position: fixed;
    bottom: 0;
    width: 100%;
}


@media (max-width: 480px) {

    form {
        grid-template-columns: 1fr;
    }

    header nav ul {
        column-gap: 5px;
        width: 50%;
        flex-wrap: wrap;
        font-size: 1.5em;
    }

    input,
    select,
    textarea,
    button {
        font-size: 1.1rem;
    }

}