/*
 Theme Name:     Helene Mahieu Home
 Author:         htulipe
 Version:        1.0.0
 Description:    Theme pour la page d'accueil du multisite
*/
:root {
  --gray-overlay: rgba(36, 66, 92, 0.5);
}

html {
  color-scheme: only light;
  font-family: 'Apercu', sans-serif;
  height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));

  background-color: #9eaab6;
  color: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
}

.main {
  display: flex;
  height: 100dvh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: 'ZapfHumnst BT', sans-serif;
}

.content {
  width: 245px;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 90px;
}

.content p {
  margin: 0;
}

.title {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 20px;
}

.sites {
  width: 230px;
  font-size: 1.125rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.site-link:first-child {
  border-top: 1px solid white;
}

.site-link {
  display: block;
  font-size: 1.25rem;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid white;
  padding: 16px 2px;
  color: white;
  text-decoration: none;
}

.english-link {
  font-family: 'Apercu', sans-serif;
  position: absolute;
  top: 30px;
  left: 30px;
  font-size: 0.75rem;
  color: white;
  text-underline-offset: 5px;
  letter-spacing: 1.2px;
}

/* Background styles */

.background {
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--gray-overlay);
}

.background-img,
.hd-img,
.hd-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.background-img,
.hd-img {
  object-fit: cover;
  object-position: center;
}

.lqip {
  filter: blur(15px);
  transform: scale(1.1);
  z-index: 1;
}

.hd-wrapper {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 2;
}

.hd-wrapper.loaded {
  opacity: 1;
}

.opacity-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gray-overlay);
  z-index: 3;
}

/* End of background styles */

@media (min-width: 768px) {
  .title {
    font-size: 4rem;
    line-height: 42px;
    margin-bottom: 24px;
  }

  .content {
    width: 590px;
    font-size: 1.25rem;
    margin-top: initial;
    margin-bottom: 140px;
  }

  .content p {
    margin-bottom: 8px;
  }

  .sites {
    width: 290px;
    font-size: 1.625rem;
  }

  .english-link {
    left: initial;
    top: 50px;
    right: 50px;
  }
}
