/* Haetaan Google fontista tuodut fontit */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

* {
  margin: 0;
  padding: 0;
}
body {
  line-height: 1.5;
  font-family: 'Lato', sans-serif;
  overflow-x: hidden;
  overflow-y: hidden;
}

/* Asetetaan taustakuva etusivulle */
/* Linear-gradientilla voidaan tehdä liukuväri taustakuvalle, jotta siitä saadaan tyylitellympi */
.banner {
  width: 100%;
  height: 100vh;
  background-image: linear-gradient(rgb(20, 28, 69), rgba(8, 36, 58, 0.75)),
    url(/assets/images/background4.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Tehdään navigointipalkin konfigurointi */
.navbar {
  width: 90%;
  margin: auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Philosophical Quotes -logon tyylittely */
.logo {
  scale: 25%;
  height: auto;
  left: 2rem;
  width: 2rem;
  cursor: pointer;
  filter: brightness(10);
}

h2 {
  margin-bottom: 40px;
  font-weight: 500;
}

/* Navigointipalkin listaelementtien määritys */
.navbar ul li {
  list-style: none;
  margin: 0 20px;
  display: inline-block;
  position: relative;
}
.navbar ul li a {
  text-decoration: none;
  color: rgb(255, 255, 255);
  text-transform: uppercase;
}

/* Navigointipalkin elementtien after -effect ja transitio */
.navbar ul li::after {
  content: '';
  height: 3px;
  width: 0;
  background: #f3c306;
  position: absolute;
  left: 0;
  bottom: -10px;
  transition: 0.5s;
}
.navbar ul li:hover::after {
  width: 100%;
}

/* Hero -container tekstin määritys (headerit ja paragrafit) */
/* YouTubesta löydetyn Snowflake -efektin asetukset */
.snow-container {
  pointer-events: none;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
  top: 0;
  left: 0;
  overflow: hidden;
}
.snowflake {
  position: absolute;
  top: -10px;
  color: #fff;
  font-size: 1em;
  user-select: none;
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Sisältötekstin määritys*/
.content {
  width: 60%;
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  color: rgb(236, 234, 225);
  z-index: 1;
  text-align: center;
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
}

.content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  line-height: 1.3;
}
.content h2 {
  font-size: 1.5rem;
  color: #f3c306;
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.4;
}
.content p1 {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
  color: #e0e0e0;
}

/* Footeriin liittyvät muotoiluasetukset */

.container {
  max-width: 70%;
  margin: auto;
}
.row {
  display: flex;
  flex-wrap: wrap;
}

ul {
  list-style: none;
}

.footer {
  background-color: #000000;
  padding: 2.2rem 0 2.2rem 0;
  position: fixed;
  bottom: 0;
  width: 100%;
  opacity: 35%;
}

.footer-col {
  width: 25%;
  padding: 0 15px;
  text-align: center;
}

.footer-col h4 {
  font-size: 18px;
  color: #1a1919;
  color: antiquewhite;
  text-transform: capitalize;
  margin-bottom: 35px;
  font-weight: 500;
  position: relative;
}

.footer-col h4::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  background-color: #f3c306;
  height: 2px;
  box-sizing: border-box;
}

.footer-col ul li:not(:last-child) {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 16px;
  text-transform: capitalize;
  color: #ffffff;
  text-decoration: none;
  font-weight: 300;
  color: #bbbbbb;
  display: block;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: #ffffff;
  padding-left: 8px;
}

.social-links a {
  display: inline-block;
  height: 40px;
  width: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 0 10px 10px 0;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  color: #ffffff;
  transition: all 0.5s ease;
}

.social-links a:hover {
  color: #24262b;
  background-color: #ffffff;
}

/* Etusivulla näkyvän painikkeen määritys ja efektit */
button {
  width: 200px;
  padding: 15px 0;
  text-align: center;
  margin: 2.5rem 0.5rem;
  border-radius: 25px;
  font-weight: bold;
  border: 2px solid #f3c306;
  background: transparent;
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

span {
  background: #f3c306;
  height: 100%;
  width: 0;
  border-radius: 25px;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -1;
  transition: all 0.3s ease;
}

/* Määrittää napin liukuefektin leveyden (100%)*/
/* Jos liukuefekti säädetään esim 80%:iin niin liuku ei tule painikkeessa loppuun saakka */
button:hover span {
  width: 100%;
}

/* Poistetaan painikkeesta reunat, kun tuodaan kursori sen päälle */
button:hover button:hover span {
  color: #333;
}

/* Websivun responsiivisuus */
@media (max-width: 1024px) {
  .content {
    width: 80%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .footer-col {
    width: 25%;
    padding: 0 15px;
    margin-bottom: 30px;
  }

  .footer {
    padding: 20px 0;
    transform: translateY(0);
  }

  button {
    width: 80%;
  }
}
@media (max-width: 576px) {
  .footer-col {
    height: 40%;
    width: 100%;
    text-align: center;
  }
  .footer {
    position: absolute;
    bottom: 0;
    width: 100%;
  }
  .footer-col .social-links {
    order: 2;
  }

  .slider {
    margin-bottom: 50px;
  }
  .footer-col ul {
    display: none;
  }
}
