@charset "utf-8";

/* ---------------------------------
   Background for the browser window
   --------------------------------- */

html {
   background-image: url("images.jpg");
   background-repeat: no-repeat;
   background-position: center center;
   background-size: cover;
   background-attachment: fixed;
}


/* ---------------------------------
   Body styles
   --------------------------------- */

body {
   font-family: Verdana, Geneva, sans-serif;
   color: rgb(45, 55, 65);
   background-color: rgba(245, 248, 250, 0.95);
   width: 90%;
   margin-left: auto;
   margin-right: auto;
   margin-top: 0;
   margin-bottom: 0;
}


/* ---------------------------------
   Header styles
   --------------------------------- */

header {
   text-align: center;
   padding: 0;
}


/* Header image */

header img {
   width: 100%;
   display: block;
}


/* ---------------------------------
   Heading styles
   --------------------------------- */

h1,
h2 {
   text-shadow: 4px 6px 5px gray;
}

h2 {
   font-size: 1.3em;
}


/* ---------------------------------
   Navigation
   --------------------------------- */

/* Navigation unordered list */

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


/* Navigation list items */

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


/* Navigation links */

nav a {
   display: block;
   background-color: rgb(35, 65, 100);
   color: white;
   line-height: 2.8em;
   text-decoration: none;
   text-align: center;
}


/* Navigation hover effect */

nav a:hover {
   background-color: rgb(70, 130, 180);
   color: rgb(255, 235, 150);
}


/* ---------------------------------
   Main section
   --------------------------------- */

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


/* ---------------------------------
   Images that are children of main
   --------------------------------- */

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


/* ---------------------------------
   Footer
   --------------------------------- */

body > footer {
   clear: both;
   background-color: rgb(35, 65, 100);
   color: rgba(255, 255, 255, 0.9);
   font-weight: bold;
   font-size: 0.9em;
   line-height: 2em;
   text-align: center;
   margin-top: 10px;
   padding: 10px;
}


/* ---------------------------------
   Education list marker
   --------------------------------- */

ul {
   list-style-type: square;
}


/* =================================
   VACATION GALLERY
   ================================= */

.gallery {
   display: flex;
   flex-flow: row wrap;
   justify-content: center;
   gap: 20px;
   clear: both;
}

.gallery figure {
   margin: 0;
   padding: 0;
}

.gallery img {
   width: 100%;
   height: 220px;
   object-fit: cover;
   display: block;
}

.gallery figcaption {
   text-align: center;
   font-weight: bold;
   padding: 8px;
}


/* =================================
   MOBILE VERSION
   Maximum width: 768px
   ================================= */

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

   /* Body */

   body {
      width: 100%;
      margin: 0;
   }


   /* Mobile navigation */

   nav li {
      float: none;
      font-size: x-large;
      width: 100%;
   }


   /* Navigation link bottom border */

   nav a {
      border-bottom: 1px solid black;
   }


   /* Images that are children of main */

   main > img {
      width: 90%;
      float: none;
      display: block;
      margin-left: auto;
      margin-right: auto;
      padding: 25px;
   }


   /* Mobile vacation gallery
      One column */

   .gallery {
      display: flex;
      flex-flow: column nowrap;
      align-items: center;
   }

   .gallery figure {
      width: 100%;
   }

   .gallery img {
      width: 100%;
      height: auto;
   }
}


/* =================================
   DESKTOP VERSION
   Minimum width: 769px
   ================================= */

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

   /* Desktop background */

   html {
      background-image: url("images.jpg");
      background-repeat: no-repeat;
      background-position: center center;
      background-size: cover;
      background-attachment: fixed;
   }


   /* Keep Mr. Kitty on the right */

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


   /* Vacation gallery
      Two columns */

   .gallery figure {
      flex: 0 1 45%;
   }
}


/* =================================
   LARGE DESKTOP VERSION
   Minimum width: 1101px
   ================================= */

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

   /* Vacation gallery
      Four columns */

   .gallery figure {
      flex: 0 1 22%;
   }
}