
/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

/* Add a background color to the top navigation */
.topnav {
  background-color: #05445E;
  overflow: hidden;
  border-radius:0px 0px 30px 30px;
    box-shadow: 0px  0px 5px 5px #888888;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  display: block;
  color: whitesmoke;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  transition-duration: 0.5s;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Add an active class to highlight the current page */
.topnav a.active {
  background-color: grey; /*Change this to something decent*/
  color: white;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
}

/* Scroll to top button CSS */
#myBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */

 background-color: orange; /* Set a background color */


  color: whitesmoke; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 10px; /* Rounded corners */
  font-size: 18px; /* Increase font size */
}

/* When hovering over change button color to grey */
#myBtn:hover {
  background-color: #555; /* Add a dark-grey background on hover */
}

/* Add smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* All elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body tag*/
body {
  font-size: 1.3rem;
  font-family: 'Oswald';
  background-color: #189AB4; /*Background colour*/
  overflow-x: hidden;
}

/* Anchor Tag */
a {
  color: #333;
  text-decoration: none;
}

/* Main header */
.main-header {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* h1 in main header*/
.main-header h1 {
  font-size: 4rem;
  margin-bottom: 2rem;
  line-height: 1.2;
}

/* Main header span in h1  */
.main-header h1 span {
color: orange; /*Header colour*/ 
}

/* Main header paragraph */
.main-header p {
  font-size: 2rem;
}


/* Main container */
.container {
  margin: auto;
  overflow: auto;
  padding: 0 2rem; 
    overflow-x: hidden; 
    overflow-y: hidden; 
}

/* Container for one element */
.info-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-gap: 2rem;
  background: whitesmoke; /*Grid container colour*/
  margin-bottom: 2rem;
  border-radius:30px;
  box-shadow: 0px  0px 5px 5px #888888;
}

/* Container for two elements */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 2rem;
  background: whitesmoke; /*Grid container colour*/
  margin-bottom: 2rem;
  border-radius:30px;
  box-shadow: 0px  0px 5px 5px #888888;

}

/* Margin for h3 in containers */
.grid-container h3, .info-container h3 {
  margin-bottom: 2rem;
}

/* Width and vertical align for images in containers */
.grid-container img, .info-container img {
  width: 100%;
  vertical-align: bottom
}

/* Padding for the divs in containers */
.grid-container > div, .info-container > div{
  padding: 2rem;
}

/* Regular button */
.btn {
  display: inline-block;
  background: #000;
  color: whitesmoke;
  padding: 0.8rem 1.8rem;
  margin-top: 2rem;
  cursor: pointer;
}

/* Regular button but when hovering over it */
.btn:hover {
  opacity: 0.5;
}

/* Inline element with display: block; is not allowed to have other block elements inside it if viewpoint is certain size */

@media(max-width:600px) {
  .grid-container, .info-container {
    display: block;
  }
}

/* Slideshow CSS */

/* Slideshow container to contain the images for the slide*/
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Slideshows images width and height */
.slideshow-container img {
  width: 600px;
  height: 400px;
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* Center text */
.center {
text-align: center;
}

/* Resize the images to fit the screen nicely */
.slide-boundry{
max-width: 100%;
  max-height: auto;
  position: relative;
  vertical-align: middle;
  left: 50%;
  transform: translate(-50%);
  height: 150px;
  width: 600px;
  object-fit:cover;
}

/* Round images */
img {
border-radius:30px;
}

/* Change image opacity to show that image is clickable */
.transition {
  opacity: 1.0;
}

.transition:hover{
  opacity: 0.5;
}
