@charset "utf-8";
html {
   background-color: #361f19;
}
body {
    font-family: Verdana, Geneva, sans-serif;
    color: #3b413f;
    background-color: ivory;
    margin-left: auto; 
    margin-right: auto; 
}
header {
    text-align: center; 
    padding: 20px;
}
h2 {
    font-size: 1.3em;
}
nav {
    background-color: #3b413f;
    padding: 15px;
    text-align: center; 
}
nav ul {
    list-style-type: none; 
    margin: 0; 
    padding: 0;
}
nav a {
    padding-left: 10px; 
    padding-right: 10px;
    text-decoration: none;
    color: ivory;
    display: block; 
    background-color: #87706b; 
    line-height: 2.8em; 
    text-decoration: none;
    text-align: center; 
}
nav a:hover {
    text-decoration: underline; 
    color: #B8A98C;
    background-color: #5c4648;
}
main {
    padding: 20px;
    margin-top: 35px;
}
main > img {
    padding: 25px; 
    width: 90%;
    float: none;
}
body > footer {
    background-color: #361f19;
    color: #B8A98C;
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    clear: both;
}
ul {
    list-style-type: square;
}
header img {
    width: 100%;
}
h1, h2 {
    text-shadow: 4px 6px 5px gray;
}
@media screen and (max-width: 768px) {
    body {
        width: 100%;
        margin: 0;
    }
    nav li {
        float: none; 
        font-size: x-large;
        width: 100%;
    }
    nav a {
        border-bottom: 1px solid black;
        padding: 15px 10px; 
        line-height: 1.5em;
    }
    table, tbody, tr, td, th {
        display: block; 
    }
    thead, tfoot {
        display: none;
    }
    tbody td {
        position: relative;
        padding-left: 40%;
    }
    td::before {
        content: attr(data-label);
        position: absolute;
        top: 0px;
        left: 0px;
        padding: 5px;
        width: 40%;
    }
    form {
        width: 100%; 
        font-size: large;
    }
    fieldset {
        width: 100%; 
        padding: 5px;
        margin: 0; 
    }
    input, select {
        position: inherit;
        display: block;
        height: 50px; 
        padding: 5px; 
        width: 90%;
    }
    label {
        position: inherit;
        display: block; 
        height: 50px;
        width: 90%;
    }
    input[type="submit"], input[type="reset"] {
        float: none; 
        width: 90%;
        margin: 10px; 
        font-size: 1.2em;
    }
}
@media screen and (min-width: 769px) {
    nav li {
        float: left;
        display: block; 
        width: 20%;
    }
    main > img {
        width: 25%;
        float: right; 
    }
    body {
        width: 90%;
    }
    html {
        background-image: url("IMG_02962.JPG");
        background-repeat: round;
        background-position: center; 
    }
    form {
        width: 90%;
    }
    fieldset {
        width: 90%;
        padding: 5px; 
        margin-right: 10px;
        margin-bottom: 10px; 
    }
    input, select {
        display: block; 
        position: relative; 
        left: 30%; 
        padding: 5px; 
        height: auto; 
        width: 60%; 
    }
    label {
        display: block; 
        position: absolute; 
        padding: 5px; 
        width: 30%;
    }
}
.ItalyImages {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.ItalyImages img {
    flex: 0 1 200px;
    height: 200px;
    object-fit: cover;
}
table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #361f19;
    background-color: ivory;
    margin: 20px 0; 
}
thead {
    background-color: #361f19;
    color: #B8A98C;
}
th {
    padding: 15px; 
    text-align: left;
    border-bottom: 3px solid #87706b;
}
td {
    padding: 12px 15px; 
    border: 1px solid #B8A98C;
}
tbody tr:hover {
    background-color: #5c4648;
    color: ivory;
}
tfoot {
    background-color: #3b413f;
    color: ivory; 
    font-weight: bold; 
}
tfoot td {
    padding: 10px;
    text-align: center;
}
input:focus, select:focus, textarea:focus {
    background-color: rgb(187,183,145);
}
input#name:focus:valid, 
input#zip:focus:valid, 
input#phone:focus:valid, 
input#email:focus:valid {
  background: rgb(187,205,170) url('download2.png') bottom right / contain no-repeat;
}
input#name:focus:invalid, 
input#zip:focus:invalid, 
input#phone:focus:invalid, 
input#email:focus:invalid {
  background: rgb(210,170,170) url('download.png') bottom right / contain no-repeat;
}
input[type="radio"] {
    display: inline; 
    position: inherit; 
    left: 0; 
    width: auto;
}
label.radio {
    display: inline;
    position: inherit;
}
input[type="submit"], input[type="reset"] {
    display: block; 
    float: left; 
    position: relative;
    left: 0; 
    text-align: center; 
    width: 40%; 
    padding: 10px; 
    margin-left: 5%; 
    margin-right: 5%; 
    margin-bottom: 10px; 
}