@import url("fonts.css");

:root {
  --blue: rgb(30, 136, 229);
  --blue-subtle: rgba(30, 136, 229, 0.5);
  --yellow: #ffbb00;
  --green: rgb(67, 160, 71);
  --green-subtle: rgba(67, 160, 71, 0.5);
  --purple: rgb(142, 36, 170);
  --purple-subtle: rgba(142, 36, 170, 0.5);
  --red: rgb(229, 57, 53);
  --red-subtle: rgba(229, 57, 53, 0.5);
  --red-subtler: rgba(229, 57, 53, 0.2);
  --grey: rgb(88, 88, 88);
  --grey-subtle: rgba(88, 88, 88, 0.5);
  --grey-subtler: rgba(206, 206, 206, 0.2);

  --sans-font-fallback: Verdana, Geneva, Tahoma, sans-serif;
  --narrow-font-fallback: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

.grey {
  color: var(--grey);
}

.shadow-blue {
  box-shadow: 0 .5rem 1rem var(--blue-subtle);
}

.shadow-green {
  box-shadow: 0 .5rem 1rem var(--green-subtle);
}

.shadow-purple {
  box-shadow: 0 .5rem 1rem var(--purple-subtle);
}

/* After bootstrap class shadow-lg */
.shadow-grey {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Fade in effect */
.fade-in {
  animation: fadeIn 4s;
  -webkit-animation: fadeIn 4s;
  -moz-animation: fadeIn 4s;
  -o-animation: fadeIn 4s;
  -ms-animation: fadeIn 4s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-moz-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-o-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-ms-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Images */
.mountain-image {
  /* The linear gradient adds a filter to the image by changing the alpha channel */
  background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3)),
    url(../images/Mountains_web.jpg) no-repeat center center fixed;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  -ms-background-size: cover;
  background-attachment: fixed;
}

.snow-image {
  /* The linear gradient adds a filter to the image by changing the alpha channel */
  background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
    url(../images/Snow_web.jpg) no-repeat center center fixed;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  -ms-background-size: cover;
  background-attachment: fixed;
}


html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Sans Narrow", var(--narrow-font-fallback);
}

.section {
  padding-left: 10px;
  padding-right: 10px;
}

.row {
  margin: 0;
  /* Stops white space on right etc .row class has -15px margins on both sides */
}

h1 {
  font-family: 'Fusat', var(--sans-font-fallback);
  font-size: 60px;
}

h2 {
  font-family: "Sans Narrow", var(--narrow-font-fallback);
  font-size: 34px;
}

p {
  font-family: "Montserrat Var", "Montserrat 400", var(--sans-font-fallback);
  font-size: 20px;
  font-weight: 400;
}

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

a:hover {
  color: var(--grey-subtle);
}

a.btn {
  border-radius: 40px;
  font-size: 22px;
}

header {
  padding-top: 5%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

header .spacing {
  padding-bottom: 46px;
}

header h1 {
  font-family: "Fusat", var(--sans-font-fallback);
  font-size: 150px;
}

header h2 {
  font-family: "Montserrat Var", "Montserrat 300", var(--sans-font-fallback);
  font-size: 32px;
  font-weight: 300;
  display: flex;
  align-items: center;
}

header p {
  font-family: "Montserrat Var", "Montserrat 400", var(--sans-font-fallback);
  font-size: 24px;
  font-weight: 400;
  color: #ffffff;
}

.home-icons {
  padding-top: 10px;
}

.icons {
  width: 1em;
  height: 1em;
}

/* About Us styling */

#our-work h1 {
  margin-bottom: -20px;
}

/* Card styling */
.card {
  border-radius: 20px;
}

#our-work .card-title {
  display: flex;
  justify-content: center;
}

#about-us .card {
  background-color: rgba(255, 255, 255, 0.2);
}

#about-us .circle-pic {
  border-radius: 50%;
  box-shadow: 5px 10px 18px #888888;
  width: 150px;
  margin: 10px;
}

#about-us a.btn {
  border: 1px solid black;
  font-size: 18px;
}

#about-us a.btn:hover {
  background-color: var(--grey-subtler);
}

hr {
  width: 90% !important;
  margin: 0 auto;
  padding-bottom: 1em;
}

/* Resume styling */
.snow-image-resume {
  /* The linear gradient adds a filter to the image by changing the alpha channel */
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2)),
    url(../images/Snow_web.jpg) no-repeat center center fixed;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  -ms-background-size: cover;
  background-attachment: fixed;
}

.resume-panel {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  border: 1px solid var(--grey-subtle);
}

.resume h1 {
  font-size: 120px;
}

.resume h2 {
  font-family: 'Fusat', var(--sans-font-fallback);
  font-size: 45px;
}

.resume h3 {
  font-family: "Sans Narrow", var(--narrow-font-fallback);
  font-size: 34px;
}

.resume p.title {
  margin: 4px;
  font-family: "Montserrat 500", var(--narrow-font-fallback);
  font-size: 18px;
}

.resume span.title {
  font-family: "Montserrat 500", var(--narrow-font-fallback);
  font-size: 18px;
}

.resume p {
  margin: 4px;
  font-family: "Montserrat 300", var(--narrow-font-fallback);
  font-size: 18px;
}

/* Scroll back to top */
.back-to-top {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /* line-height: 50px; */
  overflow: hidden;
  z-index: 999;
  display: none;
  cursor: pointer;
  position: fixed;
  bottom: 20%;
  right: 15px;
  background-color: rgba(221, 221, 221, 0.7);
  color: var(--grey);
  text-align: center;
  font-size: 30px;
  text-decoration: none;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* Media calls */
/* The back to top hover needs the media call for touch screen devices as they don't recognise hover as hover */
@media (hover: hover) {
  .back-to-top:hover {
    background-color: rgb(179, 179, 179);
    color: #000;
  }
}

@media screen and (max-width: 820px),
screen and (max-height: 560px) {
  header h1 {
    font-size: 70px;
  }

  header h2 {
    font-size: 20px;
  }

  header p {
    font-size: 20px;
  }

  #home-page .icons {
    font-size: 30px;
  }

  .home-icons {
    display: flex;
    justify-content: center;
  }

  .resume h1 {
    font-size: 70px;
  }

  .resume h2 {
    font-size: 35px;
  }

  .resume h3 {
    font-size: 30px;
  }

  .resume p,
  .resume p.title {
    text-align: center;
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  header {
    padding-top: 2%;
  }

  header .spacing {
    padding-bottom: 5px !important;
  }
}