﻿* {
  font-family: Poppins;
}

body,
html {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}

*,
html {
  scroll-behavior: smooth !important;
}

.mb-12 {
  margin-bottom: 0;
}

.py-6 {
  margin: 0;
  padding: 0;
}

.home {
  height: 85vh;
  width: 100%;
}

/* CHE logo and link */
.logo-background {
  position: relative;
  margin-top: -85vh;
  background: white;
  width: 360px;
  height: 138px;
  clip-path: polygon(0 0, 100% 0%, 75% 100%, 0% 100%);
}

.logo {
  height: 138px;
  width: 200px;
  margin-left: 60px;
}

/* Home background image */
.home-picture {
  background-image: url("../img/Homepage/Home-Picture.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  width: 70%;
  height: 85vh;
  min-width: 1300px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 300px) 100%, 0 100%, 0 0);
}

/* White skew overlap on home-picture */
.box-overlay {
  position: relative;
  margin-top: -85vh;
  margin-left: auto;
  margin-right: 0;
  width: 100%;
  height: 85vh;
}

.home-overlay {
  position: absolute;
  margin-top: 0;
  background: white;
  left: 54%;
  width: 56%;
  min-width: 600px;
  height: 85vh;

  transform: skew(-33deg);
}

.home-overlay2 {
  position: relative;
  margin-top: 0;
  background: white;
  left: 54%;
  width: 56%;
  min-width: 600px;
  height: 85vh;

  clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
}

.container px-5 py-8 mx-auto {
  top: 100%;
}


/* Theme fast links */
.links {
  position: relative;
  margin-top: -85vh;
  margin-left: auto;
  right: 10%;
  width: 360px;
  height: 85vh;
  align-items: center;
}

.text-links {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.text-links a {
  color: #374151;
}

.direct-title {
  font-size: 28px;
  margin-left: 35px;
}

/* arrow to articles */
.arrow {
  position: relative;
  width: 100%;
  height: 10vh;
  margin-top: 5vh;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.arrowImg:hover {
  cursor: pointer;
}

/* Break line homepage -> articles */
.line {
  position: relative;
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-bottom: 15px;
}

hr.line {
  border-top: 4px #f3f5f6;
  width: 90%;
  border-radius: 5px;
}

hr.line2 {
  border-top: 4px #f3f5f6;
  width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* Searchbar */
.searchsearch {
  margin-bottom: 40px;
  display: flex;
  align-content: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* homeMenu */
.home-topnav-right {
  display: flex;
  align-items: center;
  position: absolute;
  top: 40px;
  right: 70px;
  z-index: 10;
}

.home-menuButton {
  display: flex;
  position: relative;
  align-items: center;
  color: #0072bb;
  text-align: center;
  padding: 6px 12px;
  text-decoration: none;
  font-weight: bold;
  font-size: 23px;
  cursor: pointer;
  border: 2px solid #dfdfdf;
  border-radius: 2px;
}

.home-menuButton span {
  margin-right: 5px;
}

.home-menuLogo {
  vertical-align: middle;
  margin-left: 5px;
}

/* HomeOptions */
.home-menuOptions {
  display: none;
  list-style-type: none;
  margin: 0;
  padding: 32px;
  position: absolute;
  width: 400px;
  height: 300px;
  top: 0px;
  right: 0px;
  border: 2px solid #dfdfdf;
  border-radius: 2px;
  background-color: #ffffff;
}

.home-menuOptions.show {
  display: block;
}

.home-menuOptions li {
  height: 36px;
  margin-bottom: 15px;
  margin-left: 25px;
  display: flex;
  align-items: center;
}

.home-menuOptions li .menu-item-content {
  display: flex;
  flex-direction: column;
  margin-left: 8px;
}

.home-menuOptions li span.optionTitle {
  height: 18px;
}

.home-menuOptions li span.desc {
  height: 18px;
  font-size: 12px;
  color: #999999;
}

.home-menuOptions li img {
  margin-right: 22px;
}

.home-menuOptions li span{
  flex-grow: 1;
}

.home-menuOptions li a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #000;
}

.home-menuOptions li a:hover {
  background-color: #ddd;
}

.logo-container {
  display: flex;
  align-items: center;
}

.cross {
  cursor: pointer;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  10% {
    transform: translateY(0px);
  }

  20% {
    transform: translateY(5px);
  }

  40% {
    transform: translateY(-15px);
  }

  60% {
    transform: translateY(-10px);
  }
}

@media all and (max-width: 430px) {
  .container.px-5.py-8.mx-auto {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

.header-mobile {
  display: none;
}

/*-------------------Mobile-------------------------------*/
@media (max-width: 750px) {
  .home {
    height: 100vh;
  }

  .box-overlay {
    position: relative;
    margin-left: -55vw;
    width: 100%;
    height: 0;
    top: 60px;
  }

  .links {
    width: 200px;
    left: calc(200px - 40vw);
    top: 72vh;
    height: 0;
  }

  .home-overlay {
    position: absolute;
    top: 75vh;
    min-width: 60px;
    height: 150px;
    width: 80%;
    background: radial-gradient(
      182.06% 182.06% at 50% 50%,
      #0075ff 0%,
      #3f97ff 100%
    );

    clip-path: polygon(0 0, 100% 0%, calc(100% - 80px) 100%, 0% 100%);
    transform: skew(0deg);
  }

  .home-overlay2 {
    display: none;
  }

  .text-links {
    top: 0;
    transform: translateY(0%);
  }

  .text-links a {
    color: white;
  }

  .direct-title {
    font-size: 15px;
    margin-bottom: 0;
    margin-left: 18px;
    color: white;
  }

  .logo-background {
    display: none;
  }

  .arrow {
    display: none;
  }

  .line {
    display: none;
  }

  .header-mobile {
    display: flex;
    margin-top: 0;
    background: white;
    min-width: 60px;
    height: 94px;
    justify-content: space-between;
    transform: skew(0deg);
  }

  .logo-mobile {
    height: 100%;
    width: auto;
    margin-left: 0;
  }

  .logo-search {
    height: 100%;
    width: auto;
    padding: 10px 17px 10px 17px;
    transform: skew(8deg);
  }

  .home-picture {
    background-position: inherit;

    width: 100%;
    height: 60vh;
    min-width: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0);
  }

  input {
    width: 10px;
  }
}

@media (min-height: 650px) {
  .home {
    height: 85vh;
  }

  .arrow {
    position: relative;
    width: 100%;
    height: 10vh;
    margin-top: 5vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
}

@media (max-width: 1110px) and (min-width: 751px) {
  .links {
    right: -60px;
  }
}
