header,
main,
footer {
    max-width: 1030px;
    margin: 0 auto;
    background-color: white;
    padding: 1rem 1rem 1rem 1rem;
}

:root {
    --primary-color: #5DA9E9;
    --secondary-color: #003F91;
    --accent-color1: #E5F4E3;
    --accent-color2: #91288D;
    --heading-font: "Lato display swap";
    --paragraph-font: Lato, Helvetica, sans-serif
}


body {
    font-size: 16px;
    background-color: var(--secondary-color);
    padding: 2rem;
    font-family: "Palatino Linotype", Georgia, serif;
}

header {
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
}

h1,
h2,
h3,
h4 {
    font-family: "Georgia", serif;
}

h2 {
    text-decoration: underline;
    text-align: center;
}

section>p {
    padding: .5rem;
    background-color: var(--accent-color1);
}

nav {
    line-height: 2rem;
    text-align: center;
}

nav>ul {
    list-style-type: none;
    display: flex;
}

li {
    margin: .5rem;
    padding: 0 .25rem 0 .25rem;
}

nav a:link,
nav a:visited {
    color: var(--accent-color2);
    text-decoration: none;
    font-size: 1.3rem
}

nav a:hover {
    background-color: var(--accent-color1);
}

footer {
    background-color: var(--primary-color);
}

.wrapper {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.temple_image,
.reception_image {
    margin: 16px;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 5px 15px 40px #999;
}

.grid-image {
    margin: 1.5em;
    border: 1px solid #ccc;
    padding: .75em;
    box-shadow: 3px 5px 2px #999;
}

.temple_image img,
.reception_image img {
    display: block;
}

.reception_image {
    grid-column: 1;
    grid-row: 2;
}

.family_history {
    grid-column: 1 / 3;
}

.reception_p {
    grid-column: 2;
    grid-row: 2;
}

.footer_grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
}

.copyright {
    grid-column: 1 / 6;
    justify-self: center;
}

.social {
    grid-column: 4 / 5;
}

.info {
    grid-column: 2 / 4;
}

.banner-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
}

.action {
    text-align: center;
    padding: 3rem;
    margin: 1rem;
    background-color: #91288D66;
    grid-column: 1;
    grid-row: 1;
    z-index: +1;
}

.hero {
    grid-column: 1 / 3;
    grid-row: 1;
}

.action button {
    line-height: 2em;
    width: 10em;
    background-color: var(--accent-color1);
    font-size: 1.2em;
}

.action button:hover {
    background-color: var(--primary-color);
    color: white;
}


/*This is for testing */
form {
    /* Center the form on the page */
    margin: 0 auto;
    width: 25em;
    /* Form outline */
    padding: 1em;
    border: 1px solid #CCC;
    border-radius: 1em;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

form li+li {
    margin-top: 1em;
}

label {
    /* Uniform size & alignment */
    display: inline-block;
    width: 12.5em;
    text-align: left;
    padding: .25em;
}

input,
textarea {
    /* To make sure that all text fields have the same font settings
       By default, textareas have a monospace font */
    font: 1em sans-serif;

    /* Uniform text field size */
    width: 18.75em;
    box-sizing: border-box;

    /* Match form field borders */
    border: 1px solid #999;
    padding: .3em
}

input:focus,
textarea:focus {
    /* Additional highlight for focused elements */
    border-color: #000;
}

textarea {
    /* Align multiline text fields with their labels */
    vertical-align: top;

    /* Provide space to type some text */
    height: 5em;
}

.button {
    /* Align buttons with the text fields */
    padding-left: 90px;
    /* same size as the label elements */
}

button {
    /* This extra margin represent roughly the same space as the space
       between the labels and their text fields */
    margin-left: .5em;
}

#feedback {
    display: none;
    color: rgb(9, 120, 90);
    text-align: center;
    padding: 1.5rem;
}

.image-description {
    text-align: center;
    padding: 1.5em;
}

.image-description a {
    padding: .5em;
}

.image-description a:hover {
    background-color: var(--primary-color);
}

.amenities {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.amenities ul {
    columns: 2;
    grid-column: 2 / 4;
    text-align: center;
}

.amenities ul li {
    margin: 1em 0;
}
.amenities ul li a:link,
.amenities ul li a:visited {
    color: var(--accent-color2);
    padding: .1em;
}

.amenities ul li a:hover {
    background-color: var(--accent-color1);
}

button a:link, button a:visited {
    color: black;
    text-decoration: none;
}

button a:hover {
    color: white;
}

@media screen and (max-width: 900px) {
    .wrapper {
        display: block;
    }
    header {
        display: block;
    }
    .nav>ul {
        display:block;
    }
    .amenities {
        display: block;
    }
    .amenities ul {
        columns: 1
    }
    nav>ul {
        display: block;
    }
    h1 {
        text-align: center;
    }
}

@media screen and (max-width: 550px) {

    .temple_image img,
    .reception_image img,
    .grid-image img,
    .hero img {
        width: 100%;
    }
    .action {
        background: none;
        padding: 0;
    }
    form {
        width: 100%;
        padding: 0;
    }
    label {
        width: 100%;
    }
    input,
    textarea {
        width: 100%;
    }
}

