@charset "utf-8";
html {
  background-color: rgb(164, 142, 241);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
body {
    font-family: Verdana, Geneva, sans-serif;
    color: rgb(91, 91, 91);
    background-color: ivory;
    width: 90%;
    margin: 0;
    margin-left: auto;
    margin-right: auto;
}
header {
    text-align: center; 
    padding: 20px;    
}
h2 {
   text-shadow: 4px 6px 5px gray;
  font-size: 1.3em; 
}
nav {
    background-color: #412f6b; 
    padding: 15px; 
    text-align: center; 
    
}
/*<nav>
            <ul>
                <li><a href="index.html">Home</a> </li>
                <li><a href="education.html">Education</a> </li>
                <li><a href="family.html">Family</a> </li>
                <li><a href="vacation.html">Vacations</a> </li>
                <li><a href="aboutme.html">About Me</a></li>
            </ul>    
</nav>*/
nav ul {
    list-style: none; 
    margin: 0;       
    padding: 0;      
    overflow: hidden; 
}
nav li {
    display: block; 
    width: 20%;    
    float: left;   
    text-align: center; 
}
nav a {
  padding-left: 10px;     
  padding-right: 10px;    
  text-decoration: none;   
  color: #f9f5fc;             
  display: block; 
  background-color: #323136; 
  line-height: 2.8em; 
  text-align: center;
}
nav a:hover {
  text-decoration: underline;
  color: #7601d6;
  background-color: #18181a;
}
main {
  padding: 20px;
  margin-top: 35px;
}
main > img {
  width: 25%;
  padding: 25px;
}
img {
  float: right;
}
header > img {
  width: 100%;
}
body > footer {
    background-color: #412f6b;
    color: rgba(148, 147, 147, 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;
}
h1 {
   text-shadow: 4px 6px 5px gray;
   color: #5b2cca;
}
@media only screen and (max-width: 768px) {
 body {
    width: 100%;
    margin: 0;
  }
  nav ul li {
    float: none;
    font-size: x-large;
    width: 100%;
  }
  nav ul li a {
    border-bottom: 1px solid black;
  }
  main > img {
  width: 90%;
  float: none;
}
}
@media only screen and (min-width: 769px) {
  html {
    background-image: url("Space-Background-Image.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }
} 
.image-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 10px; 
    padding: 10px;
}
.image-grid img {
    width: 100%; 
    height: auto;
    display: block;
    object-fit: cover;
}

table {
    width: 100%; 
    border-collapse: collapse;
    margin: 20px 0;
    border: 2px solid #aba3b4; 
}

th, td {
    border: 1px solid #525252;
    padding: 12px;
    text-align: left;
    color: rgb(0, 0, 0);
}

thead {
    background-color: #4c53af; 
    color: rgb(0, 0, 0);
}

tbody tr:nth-child(even) {
    background-color: #a5a4e0;
}

tbody tr:nth-child(odd) {
    background-color: #ebe6fd;
}
tfoot {
    background-color: #5f5f5f;
    color: white;
    font-weight: bold;
}
caption {
    caption-side: top;
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
    color: black;
}
@media 
only screen and (max-width: 768px){

  table, thead, tbody, th, td, tr { 
    display: block; 
  }
  
  thead tr { 
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  tr { border: 1px solid #747474; }
  
  td { 
    border: none;
    border-bottom: 1px solid #dddddd; 
    position: relative;
    padding-left: 50%; 
    color: rgb(0, 0, 0);
  }
  
  td:before { 
    position: absolute;
    top: 6px;
    left: 6px;
    width: 45%; 
    padding-right: 10px; 
    white-space: nowrap;
  }
  
  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(s)"; }

  tfoot {
    display: none;
  }
}
input:focus, textarea:focus, select:focus {
    background-color: #f1e8fe;
    border: 2px solid #6217c5;
    outline: none;
}
input:valid {
    border: 2px solid #eafaef;
    background-color: #eafaef;
}
input:invalid {
    border: 2px solid #fceae9; 
    background-color: #fceae9;
}
form, fieldset {
  position: static;
}
@media only screen and (max-width: 768px) {
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 (min-width: 769px) {
    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.radio {
        display: block;
        position: absolute;
        padding: 5px;
        width: 30%;
        box-sizing: border-box;
    }
    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;
        box-sizing: border-box;
    }
    footer {
        clear: both;
    }
}