@import "font.css";

:root {
  --diadoc-color: #00ccae;
  --background-color: #000;
  --main-color: #fff;
  --mobile-width: 400px;
  --table-width: 600px;
  --notebook-width: 800px;
  --desktop-width: 1000px;
}

* {
  font-size: 24px;
  font-family: "Lab Grotesque", "Segoe UI", -apple-system, "Ubuntu Mono", sans-serif;
  color: var(--main-color);
}

body {
  background-color: var(--background-color);
  overflow-x: hidden;
}

.postcard__container {
  margin: 0 auto;
  width: var(--mobile-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: welcome-animation 2s forwards;
}

.postcard__image {
  width: var(--mobile-width);
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.postcard__description {
  margin-bottom: 8rem;
}

.description__title {
  text-align: center;
  font-size: 3rem;
}

.description__congratulation {
  font-weight: 400;
}

.postcard__footer {
  position: fixed;
  bottom: 0;
  width: 600px;
  background-color: var(--diadoc-color);
  border-radius: 1rem;
  max-width: var(--mobile-width);
  animation: footer-animation 2s forwards;
  border: 0.25rem solid var(--main-color);
}

.footer__description {
  text-align: center;
  font-weight: 700;
  padding: 0.5rem;
}

.description__suggestions_container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-auto-flow: row dense;
  gap: 1rem;
}

.description__suggestion {
  background-color: var(--diadoc-color);
  padding: 1rem;
  border-radius: 1rem;
  transition: transform 0.2s ease-in-out;
  will-change: transform;
  font-weight: 600;
}

.description__suggestion:hover {
  transform: scale(1.1);
  box-shadow: var(--main-color) 0px 1px 4px, var(--main-color) 0px 0px 0px 3px;
}

.light1 {
  display: none;
  position: fixed;
  top: 6%;
  right: 4%;
  height: 10vw;
  width: 10vw;
  min-width: 139.94px;
  min-height: 145.77px;
  z-index: -1;
  background: conic-gradient(#69f2c2c9, var(--diadoc-color));
  animation: light-pulse 1.25s ease-out infinite both alternate;
  border-radius: 50%;
  filter: blur(16px);
}

.light2 {
  display: none;
  position: fixed;
  bottom: 6%;
  left: 4%;
  height: 10vw;
  width: 10vw;
  min-width: 139.94px;
  min-height: 145.77px;
  z-index: -1;
  background: conic-gradient(#db95da, #f87bf6);
  animation: light-pulse 1.25s ease-out infinite both alternate;
  border-radius: 50%;
  filter: blur(24px);
}

.light3 {
  display: none;
  position: fixed;
  bottom: 6%;
  right: 4%;
  height: 10vw;
  width: 10vw;
  min-width: 139.94px;
  min-height: 145.77px;
  z-index: -1;
  background: conic-gradient(#366af3, #2fccf4);
  animation: light-pulse 1.25s ease-out infinite both alternate;
  border-radius: 50%;
  filter: blur(36px);
}

.light4 {
    display: none;
    position: 
    fixed;
    top: 6%;
    left: 4%;
    height: 10vw;
    width: 10vw;
    min-width: 139.94px;
    min-height: 145.77px;
    z-index: -1;
    background: conic-gradient(#fef99ae0, #fba97c);
    animation: light-pulse 1.25s ease-out infinite both alternate;
    border-radius: 50%;
    filter: blur(36px);
  }

.description__suggestions_title {
  font-size: 2rem;
}

@keyframes light-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes welcome-animation {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes footer-animation {
  0%,
  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
    transform: translateY(-1rem);
  }
}

@media screen and (min-width: 768px) {
  .postcard__container,
  .postcard__image {
    width: var(--table-width);
  }

  .description__suggestions_container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1024px) {
  .postcard__container,
  .postcard__image {
    width: var(--notebook-width);
  }

  .description__suggestions_container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 1440px) {
  .postcard__container,
  .postcard__image {
    width: var(--desktop-width);
  }

  .light1,
  .light2,
  .light3,
  .light4 {
    display: block;
  }

  .description__suggestions_container {
    grid-template-columns: repeat(4, 1fr);
  }
}
