@import './styles/font-face.css';

:root {
  /* ---------------------------- Font ---------------------------------- */
  --font-bold: 'GT-Eesti-Pro-Bold', sans-serif;
  --font-medium: 'GT-Eesti-Pro-Medium', sans-serif;
  --font-regular: 'GT-Eesti-Pro-Regular', sans-serif;
  --font-light: 'GT-Eesti-Pro-Light', sans-serif;

  /* ---------------------------- Color ---------------------------------- */
  --color-white: #fff;
  --color-blue: #234C69;
  --color-dark-blue: #234D6B;
  --color-light-blue:#4495D1;
  --color-aqua: #D9EEFA;
  --color-gray: #838383;
  --color-light-gray: #E4E4E4;
  --color-orange: #f5833c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100%;
}

html {
  -webkit-font-smoothing: antialiased;
  margin: 0 !important;
}

body {
  font-family: var(--font-regular);
}

.banner {
  display: flex;
  flex-direction: column;
  /*gap: 48px;*/
  align-items: center;
  color: var(--color-white);
  padding: 100px 48px 100px;
  position: relative;
  overflow: hidden;
}

.banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.banner > * {
  position: relative;
  z-index: 1;
}

/*.custom {*/
/*  background-image: url(./images/custom-bg.png);*/
/*}*/

/*.roaster {*/
/*  background-image: url(./images/roaster-bg.png);*/
/*}*/

.banner-bg {
  position: absolute;
  top: -10px;
  bottom: 0;
  height: 110%;
  min-width: 110%;
  z-index: -1;
  object-fit: cover;
  filter: blur(8px);
}

.banner-avatar,
.default-avatar {
  width: 125px;
  height: 125px;
  margin-top: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-orange);
}

.default-avatar {
  background-color: var(--color-light-gray);
  color: var(--color-light-blue);
  font-size: 48px;
  line-height: 56px;
  font-family: var(--font-medium);
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
}

.banner-title {
  margin-top: 48px;
  font-size: 48px;
  line-height: 56px;
  font-family: var(--font-medium);
  max-width: 750px;
  text-align: center;
  font-weight: initial;
}

.banner-chart {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}

.banner-chart-title {
  font-size: 16px;
  line-height: 19px;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 35px;
}

.banner-chart-canvas {
  max-width: 365px;
  margin: 0 auto;
}

.banner-info {
  margin-top: 16px;
  display: grid;
  justify-items: center;
  gap: 30px;
}

.banner-info-item {
  grid-row: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
}

.item-image {
  opacity: 0.75;
}

.item-label {
  font-size: 16px;
  line-height: 18px;
  opacity: 0.75;
}

.item-value {
  font-size: 24px;
  line-height: 28px;
  grid-column-start: 2;
  font-family: var(--font-bold);
}

.download {
  padding: 32px 24px;
  background-color: var(--color-blue);
}

.download-title {
  font-size: 24px;
  line-height: 28px;
  color: var(--color-white);
  margin-bottom: 16px;
  text-align: center;
}

.download-elements {
  display: flex;
  gap: 16px 24px;
  width: 100%;
  justify-content: center;
}

.download-btn {
  width: 180px;
  height: 52px;
  display: flex;
  position: relative;
  transition: all 0.3s linear;
}

.download-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  transition: all 0.3s linear;
}

.download-btn:active::after {
  background-color: rgba(255, 255, 255, 0.5);
}

.footer {
  /*display: grid;*/
  /*grid-template-columns: 1fr 70% 1fr;*/
  /*align-items: center;*/
  /*column-gap: 16px;*/
  padding: 80px 7vw;
  background-color: var(--color-aqua);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-title p {
  font-size: 32px;
  line-height: 37px;
  color: var(--color-dark-blue);
  font-family: var(--font-medium);
  text-align: center;
}

.footer-btn {
  display: inline-block;
  border: 1px solid var(--color-gray);
  color: var(--color-dark-blue);
  padding: 12px 20px;
  font-size: 14px;
  line-height: 16px;
  text-transform: uppercase;
  transition: all 0.3s linear;
}

.footer-btn:active {
  border-color: transparent;
  background-color: var(--color-orange);
  color: var(--color-white);
}

.footer-image {
  width: 160px;
  height: 150px;
}

/* ----------------------------- Media queries --------------------------------- */

@media (hover: hover) {
  .download-btn:hover::after {
    background-color: rgba(255, 255, 255, 0.3);
  }

  .footer-btn:hover {
    border-color: transparent;
    background-color: var(--color-orange);
    color: var(--color-white);
  }
}

.download-btn:active::after {
  background-color: rgba(255, 255, 255, 0.5);
}

@media screen and (max-width: 767px) {
  .banner {
    gap: 48px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .banner-logo img {
    height: 12px;
  }

  .banner-avatar,
  .default-avatar {
    width: 80px;
    height: 80px;
    border-width: 2px;
    margin-top: 0;
  }

  .default-avatar {
    font-size: 28px;
    line-height: 36px;
  }

  .banner-title {
    font-size: 28px;
    line-height: 36px;
    margin-top: 0;
  }

  .banner-chart {
    margin-top: 0;
  }

  .banner-chart-title {
    margin-bottom: 25px;
  }

  .banner-chart-canvas {
    max-width: 85vw;
  }

  .banner-info {
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
  }

  .banner-info-item:nth-child(3) {
    grid-row: 2;
    grid-column: 1 / span 2;
  }

  .item-label {
    font-size: 14px;
    line-height: 16px;
  }

  .item-value {
    font-size: 20px;
    line-height: 23px;
  }

  .download-title {
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 18px;
  }

  .footer {
    /*grid-template-columns: 1fr;*/
    /*grid-template-rows: auto;*/
    /*justify-items: center;*/
    padding: 48px 24px;
  }

  .footer-title p {
    font-size: 24px;
    line-height: 28px;
  }

  .footer-image {
    margin-top: 24px;
  }
}

@media screen and (max-width: 576px) {
  .download-elements {
    flex-direction: column;
    align-items: center;
  }
}

/* -----------------------------Not found section--------------------------------- */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--color-white);
  padding: 100px 48px;
  margin: auto 0;
}

main:has(> .not-found) {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.not-found-image {
  margin: 32px 0 24px;
}

.not-found-title {
  color: var(--color-blue);
  font-size: 48px;
  line-height: 56px;
  font-family: var(--font-medium);
  margin-bottom: 16px;
  font-weight: normal;
  text-align: center;
}

.not-found-description {
  color: var(--color-blue);
  font-size: 20px;
  line-height: 23px;
  text-align: center;
}

/* -----------------------------Media queries Not found section--------------------------------- */

@media screen and (max-width: 767px) {
  .not-found {
    padding-left: 24px;
    padding-right: 24px;
  }

  .not-found-logo img {
    height: 12px;
  }

  .not-found-image {
    height: 100px;
  }

  .not-found-title {
    font-size: 28px;
    line-height: 36px;
  }

  .not-found-description {
    font-size: 16px;
    line-height: 18px;
  }
}
