/* TYYLIMÄÄRITTELYT */
:root {
  --primary-font-color: white;
  --secondary-font-color: rgb(241, 113, 63);
  --primary-bg-color: rgb(12, 10, 12);
  --secondary-bg-color: rgb(28, 24, 29);
}
body {
  visibility: visible;
  margin: 0;
  box-sizing: border-box;
  padding: 0;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  font-family: "Nunito", sans-serif;
  background: rgb(16, 9, 20);
  background: linear-gradient(
    0deg,
    var(--primary-bg-color) 0%,
    var(--secondary-bg-color) 100%
  );
  color: var(--primary-font-color);
  min-height: 100vh;
  width: 100%;
}
* {
  box-sizing: border-box;
}
footer {
  position: relative;
  padding: 1rem 0;
  color: var(--secondary-font-color);
  opacity: 0.15;
}
/* SECTIONS GENERAL */
.section-header {
  text-align: center;
  font-size: 3rem;
}
.img-inline {
  max-width: 100%;
}
.img-inline-half {
  max-width: 450px;
}
.main {
  max-width: 980px;
  width: 100vw;
  padding: 20px;
  min-height: calc(100vh - 127px);
}
.main p,
.main a {
  font-size: 1.2rem;
  line-height: 1.7rem;
  font-weight: 300;
}
.main a {
  color: var(--secondary-font-color);
}
.main h1 {
  font-size: 3rem;
  margin: 2rem 0;
}
.main q {
  border-left: 8px solid var(--secondary-font-color);
  display: block;
  padding: 1rem;
  text-decoration: none;
  font-size: 1.4rem;
  margin: 1rem 0;
}
.main q:before,
.main q:after {
  content: "";
}
@media screen and (max-width: 730px) {
  .main {
    padding-top: 0;
  }
  .main h1 {
    font-size: 2rem;
    margin: 1.5rem 0;
  }
}
/* PHOTOGALLERY SECTION */
.photogallery {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}
/* ABOUT SECTION*/
.about {
  max-width: 980px;
  width: 100vw;
  padding: 20px;
}
.profile-img {
  max-width: 100%;
  object-fit: cover;
}

/* GALLERY STYLES */
.gallery {
  max-width: 980px;
  width: 100vw;
  padding: 20px;
  margin-bottom: 20px;
}
.gallery-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-template-rows: repeat(1, 300px);
  grid-auto-rows: 300px;
  grid-gap: 20px;
  grid-auto-flow: dense;
  overflow: hidden;
}
.gallery-photo {
  overflow: hidden;
  max-width: 100%;
  position: relative;
  background-color: black;
}
.gallery-photo > span {
  opacity: 0;
  position: absolute;
  color: white;
  top: calc(50% - 25px);
  width: 200px;
  height: 50px;
  left: calc(50% - 100px);
  text-align: center;
  font-size: 2rem;
  transition: opacity 0.5s ease;
}
.gallery-photo > img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.gallery-photo:hover > img {
  transform: scale(1.1);
  opacity: 0.7;
}
.gallery-photo:hover > span {
  opacity: 1;
}
/*************/
/* MAIN MENU */
/*************/
.main-menu {
  max-width: 980px;
  width: 100vw;
  padding: 0 20px;
  min-height: calc(100vh - 205px);
}
.main-menu > a {
  width: 100%;
  height: 230px;
  padding: 100px;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  text-decoration: none;
  margin: 20px 0;
  transition: box-shadow 0.2s;
  box-shadow: inset 0px 0px 0px 999px rgba(0, 0, 0, 0.2);
  background-size: cover;
  background-position: center;
}
.main-menu > a:hover {
  box-shadow: inset 0px 0px 0px 999px rgba(0, 0, 0, 0.6);
}
.main-menu > .left {
  justify-content: flex-start;
}
.main-menu > .right {
  justify-content: flex-end;
}
@media screen and (max-width: 730px) {
  .main-menu {
    min-height: calc(100vh - 216px);
    margin-top: -20px;
  }
  .main-menu > a {
    padding: 50px;
    height: 19vh;
    font-size: 2.5rem;
  }
  .main-menu > .left {
    justify-content: center;
  }
  .main-menu > .right {
    justify-content: center;
  }
}

/******************/
/* NAVIGATION BAR */
/******************/
nav {
  padding: 2rem 20px;
  width: 100vw;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas: "left center right";
  align-items: center;
  grid-gap: 20px;
}
nav a {
  text-decoration: none;
  color: var(--primary-font-color);
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: color 200ms ease;
}
nav a:hover {
  color: var(--secondary-font-color);
}
.nav-left {
  grid-area: left;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  font-weight: 300;
}
.nav-left > .active {
  text-decoration: underline;
}
.nav-left a:first-child {
  margin-left: 0;
}
.nav-right {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-end;
  grid-area: right;
}
.nav-right > .some-icon:last-child {
  margin-right: 0;
}
.some-icon {
  width: 1.5rem;
}
.some-icon > svg {
  width: inherit;
}
.header {
  text-align: center;
  font-size: 24px;
  grid-area: center;
}
.header h1,
.header h2 {
  margin: 0;
  width: 100%;
}
.header h1 {
  font-size: 1.4em;
  font-weight: 700;
  white-space: nowrap;
}
.header h2 {
  font-weight: 300;
  font-size: 1em;
  line-height: 1.1rem;
}
@media screen and (max-width: 730px) {
  .header {
    width: 100%;
  }
  nav {
    grid-template-areas:
      "center center center"
      "left left right";
  }
}
