@charset "UTF-8";

/* Global Styles */
* {
  box-sizing: border-box;
}

/* Body Structure */
body {
  background-color: #413939;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
}

h1, h3 {
  text-align: center;
}

h1 {
  font-size: 2.5em;
}

h2 {
  width: 90%;
  margin: 20px auto;
}

p {
  width: 80%;
  margin: 20px auto;
  font-size: 1.15em;
}

a {
  display: block;
}

/* Header */
header {
  background-color: cornflowerblue;
  width: 100%;
  padding: 50px;
}

#backbtn {
  top: 5px;
  left: 10px;
  position: absolute;
}

/* Page Structure */
section {
  padding: 20px;
  max-width: 90%;
  margin: auto;
}

.flex-container {
  display: flex;
}

.flex-item {
  flex: 1;
  margin: 20px;
  padding: 15px;
  background-color: rgba(244,244,244,0.7);
  border: 2px solid white;
  border-radius: 20px;
}

iframe {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

img {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border: 4px solid #ddd;
}

#myImg, #myImg2, #myImg3, #myImg4, #myImg5, #myImg6, 
#myImg7, #myImg8, #myImg9, #myImg10 {
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

#myImg:hover, #myImg2:hover, #myImg3:hover, #myImg4:hover, 
#myImg5:hover, #myImg6:hover, #myImg7:hover, #myImg8:hover, 
#myImg9:hover, #myImg10:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-content, #caption {    
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

#myBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 85px; /* Place the button at the bottom of the page */
  right: 10px; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  
  /* visual styling */
  text-decoration: none;
  padding: 10px;
  font-family: sans-serif;
  color: #000;
  background: #fff;
  border-radius: 100px;
  white-space: nowrap;
}

#myBtn:hover {
  background-color: #555; /* Add a dark-grey background on hover */
}

/* Footer */
footer {
  background-color: cornflowerblue;
  width: 100%;
  padding: 10px;
  text-align: center;
}

/* Media Queries */
@media (max-width: 767px) {
  
  .content-container {
    max-width: 100%;
    margin: 30px auto 0;
  }
  
  .flex-container {
    flex-direction: column;
  }
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
      width: 100%;
  }
}
