/* Reset some default styles */
body, h1, h2, h3, p, ul {
    margin: 0;
    padding: 0;
	font-weight: normal;
}

body {
  font-family: Montserrat, Helvetica, sans-serif;
	background: url('images/background.jpg');
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
	color: rgb(255, 255, 255);
  background-blend-mode: lighten;
	display:flex;
	flex-direction:column;
	height: 100vh;
	margin:0;
	padding: 0px 5% 0px 5%;
}

h2 {
	color: white;
	text-align: center;
	text-decoration: none;
  font-size: 3rem;
	text-align: center;
}

/* Googles font */
.montserrat-htgd {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

header {
  display: flex;
	align-items: center;
  padding-bottom: 50px;
}

a {
	text-decoration: none;
	color: white;
}

p {
	color: #c2c2c2;
	padding-top: 1vh;
	font-size: 1.5rem;
}

.contact {
  text-align: center;
	color: white;
  width: 100%;
  font-family: Montserrat, Helvetica, sans-serif;
}

.contact p {
  font-size: 15pt;
}

.contact form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: auto;
	color: white;
}

.contact form label {
  margin-bottom: 5px;
}

.contact form input, .contact form textarea {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: Montserrat, Helvetica, sans-serif;
}

.contact form button {
  padding: 10px 20px;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
}

.contact form button:hover {
  background-color: #555;
}

#message {
  height: 100px;
}

.nav-container {
	display: flex;
  flex-grow: 1;
	font-size: 1.2vw;
	text-wrap: nowrap;
	text-transform: uppercase;
  height: 100%;
  width: 100%;
}

.nav-text {
  display: flex;
  flex-grow: 1;
  height: 100%;
  align-items: center;
}

.nav-portfolio {
  opacity: 1;
}

.logo {
  display: flex;
  flex-grow: 1;
  width: 100%;
  height: 150px;
  background-image: url('/images/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  cursor: pointer;
}

.header-social {
  display: flex;
  flex-grow: 1;
  width: 100%;
	text-align: right;
  justify-content: flex-end;
}

.content-container{
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  align-items: center;
}

.headertext {
	font-size: 2.5rem;
	text-align: center;
  display: flex;
  justify-content: center;
  width: 50%;
  min-width: 300px;
	padding-top: 10px;
}

.description {
	padding-bottom: 20px;
	font-size: 15pt;
	text-align: center;
  display: flex;
  justify-content: center;
  width: 50%;
  min-width: 300px;
}

svg {
	filter: invert(100%);
  height: 50px;
}

.container {
	width: 90%;
	display: flex;
  flex-grow: 1;
  flex-direction: column;
  justify-items: center;
}

.portfolio-container {
	width: 100%;
	display: flex;
  flex-grow: 1;
  flex-direction: column;
  justify-items: center;
}

.frontpagegallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(100px, 1fr));
	grid-template-rows: repeat(3, 1fr);
	grid-column-gap: 10px;
	grid-row-gap: 10px;
	align-items: center;
	justify-items: center;
  padding-top: 20px;
}

/* If the screen is too small then make 1 column and 6 rows */
@media screen and (max-width:650px) {
  .frontpagegallery {
    display: grid;
    grid-template-columns: repeat(1, minmax(100px, 1fr));
    grid-template-rows: repeat(6, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    align-items: center;
    justify-items: center;
  }
}

/* used to make the nav buttons disappear and a menu button appear */
@media screen and (max-width:1000px) {
  .nav-text {
    opacity: 0;
    pointer-events: none;
    width: 0px;
  }

  .nav-container {
    width: 50px;
  }

  .header-social {
    width: 50px;
  }

  svg {
    height: 35px;
  }

  .hamburger-container {
    display: flex;
  }

  .logo {
    min-width: none;
  }
}

/* used to hide the hamburger when screen is wide enough for nav buttons */
@media screen and (min-width:1001px) {
  .hamburger-container {
    display: none;
  }
}

.imagebox {
	position: relative;
	width: 100%;
	background-color: white;
}


.image {
  opacity: 1;
  display: block;
  width: 100%;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
}

.middle {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.imagebox img {
  object-fit: cover;
}

.imagebox:hover .image {
  opacity: 0.5;
}

.imagebox:hover .middle {
  opacity: 1;
}

.text {
  color: black;
  font-size: 30px;
  padding: 16px 32px;
}

/* mobile device formatting */
@media (hover: none) or (pointer: coarse){
  /* used to show the text over the images when on mobile devices */
  .middle {
    opacity: 1;
  }
  
  /* used to show the text over the images when on mobile devices */
  .image {
    opacity: 0.5;
  }

  /*formatting text */
  .description {
    width: 80%;
    padding-bottom: 10px;
  }

  .headertext {
    font-size: 15pt;
  }

  .description p {
    font-size: 10pt;
  }

  /* to make the logo a bit smaller */
  .logo {
    height: 100px;
  }

  header {
    padding: 0px;
  }
  .contact p {
    font-size: 10pt;
  }

  .contact h2 {
    font-size: 1.5rem;
  }

  #profile-image {
    width: 80% !important;
  }

  #return-to-top {
    width: 15vw !important;
    opacity: 0.8 !important;
  }
}

.gallery {
  /* Prevent vertical gaps */
  line-height: 0;
   
  -webkit-column-count: 3;
  -webkit-column-gap:   10px;
  -moz-column-count:    3;
  -moz-column-gap:      10px;
  column-count:         3;
  column-gap:           10px;  
}

.gallery img {
  /* Just in case there are inline attributes */
  width: 100% !important;
  height: auto !important;
  padding-bottom: 10px;
}

@media (max-width: 1200px) {
  .gallery {
  -moz-column-count:    3;
  -webkit-column-count: 3;
  column-count:         3;
  }
}
@media (max-width: 1000px) {
  .gallery {
  -moz-column-count:    3;
  -webkit-column-count: 3;
  column-count:         3;
  }
}
@media (max-width: 800px) {
  .gallery {
  -moz-column-count:    2;
  -webkit-column-count: 2;
  column-count:         2;
  }
}
@media (max-width: 400px) {
  .gallery {
  -moz-column-count:    1;
  -webkit-column-count: 1;
  column-count:         1;
  }
}

/* Footer styles */
footer {
  display: flex;
	text-align: center;
  color: white;
	padding-top: 20px;
  padding-bottom: 20px;
  justify-content: center;
}

.hamburger-container {
  height: 100%;
  align-items: center;
  width: 100%;
}

#menuToggle
{
  display: block;
  position: relative;
  
  z-index: 1;
  
  -webkit-user-select: none;
  user-select: none;
}

#menuToggle a
{
  text-decoration: none;
  color: #232323;
  
  transition: color 0.3s ease;
}

#menuToggle a:hover
{
  color: rgb(179, 179, 179);
}


#menuToggle input
{
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  
  cursor: pointer;
  
  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */
  
  -webkit-touch-callout: none;
}

/*
 * Just a quick hamburger
 */
#menuToggle span
{
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  
  background: #ffffff;
  border-radius: 3px;
  
  z-index: 1;
  
  transform-origin: 4px 0px;
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menuToggle span:first-child
{
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2)
{
  transform-origin: 0% 100%;
}

/* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
#menuToggle input:checked ~ span
{
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: #232323;
}

/*
 * But let's hide the middle one.
 */
#menuToggle input:checked ~ span:nth-last-child(3)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * Ohyeah and the last one should go the other direction
 */
#menuToggle input:checked ~ span:nth-last-child(2)
{
  transform: rotate(-45deg) translate(0, -1px);
}

/*
 * Make this absolute positioned
 * at the top left of the screen
 */
#menu
{
  position: absolute;
  width: 150px;
  margin: -100px 0 0 -50px;
  padding: 50px;
  padding-top: 125px;
  padding-bottom: 10px;
  
  background: #e7e7e7;
  opacity: 0.9;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  
  transform-origin: 0% 0%;
  transform: translate(-100%, 0);
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li
{
  padding: 10px 0;
  font-size: 30px;
}

/*
 * And let's slide it in from the left
 */
#menuToggle input:checked ~ ul
{
  transform: none;
}

.social-contact-container {
  display: flex;
  padding-top: 40px;
}

.contact-social {
  display: flex;
  flex-grow: 1;
}


/* for the loading icon on the images pages */
#load {
  width: 90%;
  height: 100%;
  position: absolute;
  z-index: 9999;
  padding-top: 5%;
  align-content: center;
  text-align: center;
}
.loading img {
  width: 60px;
  height: 60px;
}

#profile-image {
  display: flex;
  flex-grow: 1;
  width: 40%;
}

#picture {
  object-fit: contain;
  width: 100%;
  margin-top: 0px;
  margin-bottom: auto;
}

/* scroll to top button */
#return-to-top {
  display: none; /* Hidden by default */
  width: 5vw; /* makes the div width change relative to the window size */
  object-fit: contain; /* keeps the image aspect ratio stay the same no matter the size */
  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 */
  cursor: pointer; /* Add a mouse pointer on hover */
  opacity: 0.3;
}

#return-to-top img {
  width: 100%; /* scales the image size to the parent container */
}

#return-to-top:hover {
  opacity: 0.8; /* makes the button change opacity on hover */
}