@charset "utf-8";

/* HTML background */
html {
    background-image: url("background.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

/* Body styling */
body {
    font-family: Verdana, Geneva, sans-serif;
    color: rgb(91, 91, 91);
    background-color: rgb(47, 169, 185);
    width: 90%;
    margin-right: auto;
    margin-left: auto;
}

/* Navigation 
nav {
    background-color: hsl(180, 72%, 53%);
    padding: 15px;
    text-align: center;
}


nav a {
    padding: 0 10px;
    text-decoration: none;
    color: hsl(210, 40%, 20%);
}


nav a:hover {
    text-decoration: underline;
    color: hsl(210, 60%, 30%);
}
*/ 
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

nav a {
    display: block;
    background-color: #4CAF50;  /* Change this to any color you like */
    line-height: 2.8em;
    text-decoration: none;
    text-align: center;
    color: white;               /* You can change this too */
}

nav a:hover {
    background-color: #3e8e41;  /* A darker shade */
    color: #fff;                /* Contrast color */
}

/* Headings */
h2 {
    font-size: 1.3em;
    text-shadow: 4px 6px 5px gray;
}

/* Main content */
main {
    padding: 0 20px;
}

body > img {
    width: 25%;
    padding: 25px;
}


/* Header image */
header img {
    width: 100%;
}

body > img {
    float: right;
}

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

body > footer {
    clear: both;
}

/* Footer */
body > footer {
    background-color: hsl(210, 30%, 70%);
    color: rgba(219, 8, 8, 0.6);
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
}

/* Education list marker (non-default) */
ul {
    list-style-type: square;
}

@media only 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;
   }

   body img {
      width: 90%;
      float: none;
   }

}

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

}

.image-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
   gap: 15px;
   margin: 20px 0;
}

.image-grid img {
   width: 100%;
   height: auto;
   display: block;
}