@charset "utf-8";

body {
  font-family: Verdana, Geneva, sans-serif;
  color: rgb(50, 50, 50);
  background-color: ivory;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

header {
  text-align: center;
  padding: 20px;
}

h2 {
  font-size: 1.3em;
  margin-bottom: 10px;
}

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

nav li{
    display: block;
}
nav a{
    text-decoration: none;
    display: block;
    background-color: hsl(0, 0%, 90%);
    line-height: 2.8em;
    text-align: center;
    color: rgb(60, 60, 60);

}
nav a:hover {
    background-color: rgb(140, 125, 125);
    color: ivory;
    font-size: 1.2em;
    transition:
        background-color 0.5s ease-in 0.2s,
        color 0.5s ease-in 0.2s,
        font-size 1s ease;
}

main {
    padding: 20px;
    margin-top: 70px;
}

main img {
    float: right;
    width: 25%;
    padding: 25px;
}

header img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    padding: 0;
}


body > footer {
    clear: both;
    background-color: hsl(300, 30%, 90%);
    color: rgba(80, 40, 80);
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align: center;
    margin-top: 10px;
    padding:10px
}

ul {
    list-style-type: square;
}

div.gallery{
    display: flex;
    flex-flow: wrap;
}

div.imgGallery{
    flex: 23%;
    max-width: 25%;
    padding: 0 4px;
}

div.imgGallery img{
    width: 100%;
}

table {
    width: 80%;
    margin: 0 auto;
    margin-top: 40px;
    border: 1px solid rgba(77, 76, 76, 0.808);
    outline: 4px solid rgba(80, 40, 80, 1);
    outline-offset: 4px;   
    border-collapse: collapse;
    border-radius: 6px;
    overflow: hidden;
}

th, td {
    height: 25px;
    border: 2px solid #262228;
    padding: 10px;
}

thead {
    background-color: rgba(80, 40, 80, 1);
    color: white;
}

tfoot {
    background-color: rgba(80, 40, 80, 1);
    color: white;
}

tbody tr:nth-of-type(even) {
    background-color: rgba(197, 164, 191, 0.704);
}
tbody tr:nth-of-type(odd) {
    background-color: rgba(155, 129, 150, 0.263);
}

@media only screen and (max-width: 1100px) {
    div.imgGallery{
        flex: 48%;
    max-width: 50%;
    }
}


.hamburger {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}
@media only screen and (max-width: 768px) {
 html {
        background-color: hsl(300, 40%, 95%);
    }
    body {
        width: 100%;
        margin: 0;
    }
    nav li {
        float: none;
        font-size: x-large;
        width: 100%;
    }
    nav a {
        border-bottom: solid black 1px;
    }

    main > img {
        width: 90%;
        float: none;
        display: block;
    }
    div.imgGallery{
    flex: 100%;
    max-width: 100%;
}
table, tbody, tr, td, th{
    display: block;
}
thead, tfoot{
    display: none;
}
tbody td{
    position: relative;
    padding-left: 40%;
    height: auto;
}
td::before{
    content: attr(data-label);
    position: absolute;
    top: 0px;
    left: 0px;
    padding: 10px;
    width: 40%;
}
}

@media only screen and (min-width: 769px) {
  html {
    background-color: hsl(300, 40%, 95%);
    background-image: url(purplebackground.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
  }

  nav li {
    float: left;
    width: 20%;
  }
}


input:focus,
select:focus,
textarea:focus {
    background-color: rgb(220, 255, 220);
}


input:focus:valid,
select:focus:valid,
textarea:focus:valid {
    background:
        rgb(220, 255, 220)
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20'><text x='0' y='15' font-size='16' fill='green'>✔</text></svg>")
        bottom right / 20px 20px no-repeat;
}

input:focus:invalid,
select:focus:invalid,
textarea:focus:invalid {
    background:
        rgb(255, 232, 233)
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20'><text x='0' y='15' font-size='16' fill='red'>✖</text></svg>")
        bottom right / 20px 20px no-repeat;
}

@media screen and (min-width: 769px) {

    form {
        width: 90%;
    }

    fieldset {
        width: 90%;
        padding: 5px;
        margin-right: 10px;
        margin-bottom: 10px;
    }

    input,
    select,
    textarea {
        display: block;
        position: relative;
        left: 30%;
        padding: 5px;
        height: auto;
        width: 60%;
    }

    label {
        display: block;
        position: absolute;
        padding: 5px;
        width: 30%;
    }

    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;
        left: 0;
        text-align: center;
        width: 40%;
        padding: 10px;
        margin-left: 5%;
        margin-right: 5%;
        margin-bottom: 10px;
    }

    footer {
        clear: both;
    }
}

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

    form {
        width: 100%;
        font-size: large;
    }

    fieldset {
        width: 100%;
        padding: 5px;
        margin: 0;
    }

    input,
    select,
    textarea {
        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;
    }
}