/*#region General */

body {
  margin: 0;
  font-family: "Tai Heritage Pro", serif;
  font-size: 1.6rem;
  line-height: 1.5;
  text-align: center;
  background-color: #a4c2e2;

  /* Color Variables */
  --primary-color-blue: #0f5298;
  --white-color: #fff;
  --img-border-color: #fafafa;
}

/*#endregion General */

/*#region Typography*/

header {
  position: absolute;
  font-size: 1.1em;
  margin-top: 1em;
  left: 0;
  right: 0;
  background-color: initial;
}

.second-part ul {
  list-style: circle;
}

h1 {
  font-size: 4rem;
  margin-bottom: 1.5em;
}

h1 span {
  font-weight: 300;
  display: block;
  font-size: 0.9em;
}

.site-name {
  color: var(--primary-color-blue);
  font-weight: 700;
  text-align: center;
}

main p::first-letter {
  font-size: 2em;
  color: var(--primary-color-blue);
  line-height: 0.5;
}

p.site-name::first-letter {
  font-size: 1em;
  color: var(--primary-color-blue);
}

.special-text {
  clear: both;
  text-align: center;
  font-size: 2em;
  color: var(--primary-color-blue);
}

p.special-text::first-letter {
  font-size: 1em;
}

/*#endregion Typography*/

/*#region Hero Section */
.hero-section {
  background-image: url("../images/mountain.jpg");
  background-size: cover;
  padding: 10em 0;
  color: var(--white-color);
}

.container {
  width: 80%;
  margin: 0 auto;
}

/* button style */
.button {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid var(--primary-color-blue);
  padding: 0.5em 1.4em;
  border-radius: 15px;
  color: var(--primary-color-blue);
  background-color: rgb(255, 255, 255, 0.4);
  text-align: center;
}

.button:hover {
  background-color: rgb(255, 255, 255, 0.7);

  border: 2px solid var(--primary-color-blue);
}
/*#endregion Hero Section */

/*#region Navbar */

nav a:hover {
  border-bottom: solid var(--primary-color-blue) 2px;
}

nav a:hover,
nav a:focus {
  color: var(--primary-color-blue);
}

/*#endregion Navbar */

/*#region main */
main {
  width: 80%;
  margin: 0 auto;
  text-align: left;
  font-size: 1.2em;
  position: relative;
  background-color: #d3deeb;
  padding: 5rem 10rem;
}

main h2 {
  text-align: center;
  font-family: "Tai Heritage Pro", serif;
  font-size: 2em;
  color: var(--primary-color-blue);
}

.border {
  border: var(--primary-color-blue) solid 2px;
  padding: 7rem;
  box-shadow: 1px 1px 10px -4px rgba(0, 0, 0, 0.87);
}

/*#endregion main */

/*#region Images*/
figure.text-area-img1 {
  max-width: 45%;
  position: absolute;
  top: -1em;
  right: 0;
  border: 5px solid var(--img-border-color);
}

figure.text-area-img2 {
  max-width: 45%;
  position: relative;
  top: 15%;
  float: left;
  border: 5px solid var(--img-border-color);
  padding: 0;
  margin-right: 4em;
  margin-left: 0;
}

figure.text-area-img3 {
  float: left;
  border: 5px solid var(--img-border-color);
  padding: 0;
  margin-left: 0;
  margin-right: 1em;
  margin-top: -0.4em;
}

img {
  margin: 0 auto;
}

/*#endregion Images*/

/*#region main parts*/

/* First part */
.first-part {
  position: relative;
}

.first-part p {
  max-width: 45%;
}

/* Second part */
.second-part {
  top: 1em;
  position: relative;
  max-width: 100%;
}
.second-part p,
.second-part ul {
  max-width: 30%;
  display: inline-block;
}

.third-part {
  content: "";
  display: block;
  clear: both;
  padding-top: 2rem;
}
/* Forth part */
.fourth-part {
  max-width: 100%;
  padding-top: 2rem;
}
/*#endregion BlueBox*/

/*#region Media Queries*/

@media (max-width: 880px) {
  /* Media queries for Hero Section */
  .hero-section {
    /* Small background image for a mobile screen */
    background-image: url("../images/mountain-sm.jpg");
  }

  h1 {
    visibility: hidden;
  }

  nav li {
    border-bottom: none;
  }

  nav a:hover,
  nav a:focus {
    color: var(--primary-color-blue);
    border-bottom: solid var(--primary-color-blue) 2px;
  }

  nav li a {
    font-size: 2rem;
  }

  .button {
    margin-top: 4em;
  }

  /* media queries for main section*/

  main {
    width: 90%;
    text-align: left;
    padding: 0;
  }

  main h2 {
    display: none;
  }

  .border {
    border: var(--primary-color-blue) solid 1px;
    padding: 0.5em;
  }

  /* media queries for images*/

  figure.text-area-img2 {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--img-border-color);
    padding: 0;
    margin-right: 0;
    margin-left: 0;
  }

  figure.text-area-img3 {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--img-border-color);
    padding: 0;
    margin-left: 0;
    margin-right: 0;
  }

  figure.text-area-img3 img {
    width: 100%;
  }

  /* media queries for main parts */

  .first-part {
    position: relative;
  }

  .first-part p {
    max-width: 100%;
  }

  .second-part {
    position: relative;
    max-width: 100%;
  }

  .second-part p {
    max-width: 100%;
    display: none;
  }

  .second-part ul {
    display: none;
  }

  .fourth-part {
    max-width: 100%;
  }

  .hide-on-mobile {
    display: none;
  }

  /* media queries for Typography Section */

  main p::first-letter {
    margin-left: 1em;
    font-size: 1.1em;
    color: var(--primary-color-blue);
  }

  .special-text {
    font-size: 1.5em;
  }
}

/*#endregion Media Queries*/
