@charset "utf-8";

html {
    background-color: rgb(230, 235, 240);
}



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

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

h2 {
    font-size: 1.3em;
}
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

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

nav a {
  display: block;
  background-color: rgb(180, 200, 215);
  line-height: 2.8em;
  text-decoration: none;
  text-align: center;
  color: rgb(50, 70, 90);
}

nav a:hover {
  background-color: rgb(140, 170, 190);
  color: white;
}
nav::after {
  content: "";
  display: block;
  clear: both;
}

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

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


header img {
    width: 100%;
    display: block;
}
html {
    background-image: url("background.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}
h1, h2 {
    text-shadow: 4px 6px 5px gray;
}



body > footer {
    background-color: rgb(180, 200, 215);
    color: rgba(102, 102, 102, 0.6);
    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;
}
@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;
    }

    main img {
        width: 90%;
        float: none;
    }
}
@media screen and (min-width: 769px) {
    body {
        background-image: url('your-background.jpg');
        background-size: cover;
    }
}
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery img {
    flex: 1 1 22%;
    max-width: 100%;
}

@media screen and (max-width: 768px) {
    .gallery img {
        flex: 1 1 45%;
    }
}

@media screen and (max-width: 480px) {
    .gallery img {
        flex: 1 1 100%;
    }
}
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #f9f9f9;
}

thead {
  background-color: #333;
  color: #fff;
}

th, td {
  border: 1px solid #666;
  padding: 10px;
  text-align: left;
}

tfoot {
  background-color: #ddd;
  font-style: italic;
  text-align: center;
}
@media screen and (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 15px;
  }

  td {
    border: none;
    position: relative;
    padding-left: 50%;
  }

  td::before {
    position: absolute;
    left: 10px;
    width: 45%;
    font-weight: bold;
  }

  td:nth-of-type(1)::before { content: "Name"; }
  td:nth-of-type(2)::before { content: "Relationship"; }
  td:nth-of-type(3)::before { content: "Birthday"; }
  td:nth-of-type(4)::before { content: "Interesting Fact"; }
}

.float-img {
    float: right;
    width: 40%;
    margin: 0 0 10px 10px;
}


input:focus, select:focus, textarea:focus {
    outline: 2px solid #4CAF50;
}


input:valid, select:valid, textarea:valid {
    border: 2px solid green;
}

input:invalid, select:invalid, textarea:invalid {
    border: 2px solid red;
}


@media (min-width: 768px) {
    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%;
    }

    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 (max-width: 767px) {
    form {
        width: 100%;
        font-size: large;
    }

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

    input, select {
        display: block;
        position: inherit;
        width: 90%;
        height: 50px;
        padding: 5px;
    }

    label {
        display: block;
        position: inherit;
        width: 90%;
        height: 50px;
    }

    input[type="submit"], input[type="reset"] {
        float: none;
        width: 90%;
        margin: 10px;
        font-size: 1.2em;
    }
}




