@import "./colors.css";
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@300;400&family=Roboto+Condensed:wght@300&display=swap");

html,
body {
  background-color: var(--backgound-color);
  margin: 0;
  min-width: 250px;
  text-align: center;
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

main {
  padding: 0;
  margin: 0;
}

.first_container {
  padding-top: 80px;
}

.visible {
  transition: .7s !important;
  opacity: 1 !important;
  transform: translate(0) !important;
}

.fade_in {
  opacity: 0;
  transform: translateY(50px);
}

footer {
  margin: auto;
  max-width: 850px;
  padding: 40px 50px;
}

h1 {
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  color: var(--primary-text-color);
}

h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  color: var(--primary-text-color);
}

p {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 400;
  color: var(--secondary-text-color);
}

button {
  margin: 0 auto;
  color: var(--primary-text-color);
  background-color: var(--primary-color);
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  font-size: 17px;
  transition: background-color 0.3s;
}

.button_with_img {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.button_with_img img {
  display: flex;
  width: 20px;
  margin: auto;
  margin-right: 5px;
}

.button_with_img span {
  display: flex;
  margin: auto;
  margin-left: 5px;
}

.download_button {
  display: none;
}

.content_part {
  position: relative;
  z-index: 10;
  width: calc(100% -20px -20px);
  padding: 20px 20px 20px 20px;
}

.m-y-auto {
  margin-top: auto;
  margin-bottom: auto;
}

.m-x-auto {
  margin-left: auto;
  margin-right: auto;
}

.m-l-auto {
  margin-left: auto;
}

.m-r-auto {
  margin-right: auto;
}

.max-w-1200 {
  max-width: 1200px;
}

.padding-y-40 {
  padding-top: 40px;
  padding-bottom: 40px;
}

.padding-bottom-0 {
  padding-bottom: 0;
}

.light_conainer {
  width: calc(100% -20px -20px);
  background-color: var(--second-backgound-color);
  padding: 20px 20px 20px 20px;
}

.paragraphs_container {
  margin: 30px auto;
}

.paragraphs_container p {
  color: var(--primary-text-color);
}

.center_container {
  margin: auto;
  width: 80%;
  max-width: 500px;
  padding: 40px 0;
}

.logo_in_content {
  max-width: 200px;
  width: 100%;
}

.button_container {
  display: flex;
  z-index: 5;
  margin: auto;
}

.link_to_social {
  width: 25px;
  height: 25px;
  margin: 0 40px;
}

.link_to_social img {
  max-width: 25px;
}

.flex_container_horizontal {
  display: flex;
  flex-direction: row;
}

.flex_container_vertical {
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

.footer_logo {
  max-width: 200px;
  width: 100%;
}

.footer_first_div {
  text-align: left;
}

.footer_second_div {
  display: flex;
  justify-content: center;
  margin-right: 0;
  margin-left: auto;
}

.footer_copyright_div {
  margin-top: 20px;
}

.footer_copyright_div span {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 400;
  color: var(--primary-text-color);
  margin-top: 10px;
}

.footer_second_div_mobile {
  display: none;
  justify-content: center;
  margin-top: 35px;
  margin-right: auto;
  margin-left: auto;
}

.phone_photo {
  width: 100%;
  margin: auto;
}

.narrow_conainer {
  max-width: 400px;
  padding-left: 40px;
  padding-right: 40px;
}

.preference_container {
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
  margin-bottom: 40px;
}

.preference {
  background-color: var(--second-backgound-color);
  padding: 10px 20px 10px 20px;
  border-radius: 20px;
  width: calc(100% - 40px);
  margin-top: 20px;
  transition: 0.3s;
  box-shadow: 0px 3px 18px 3px rgba(0, 0, 0, 0.4);
}

.preference h2 {
  margin: 0;
  font-size: 20px;
  line-height: 22px;
}

.preference p {
  margin-bottom: 0;
  margin-top: 5px;
  font-weight: 300;
}

.initial_content {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 300px);
}

.background_container {
  position: relative;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  height: calc(100vh - 80px);
  min-height: 500px;
}

.slow_transtiontion{
  transition: 1s !important;
}

.background_container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../media/background.png");
  background-size: 85%;
  background-position: bottom;
  background-repeat: no-repeat;
  opacity: 0;
  animation-name: fadeIn;
  animation-duration: 0.7s;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.support_seciton h2,
.support_seciton p {
  z-index: 10;
}

.support_seciton {
  z-index: 10;
  max-width: 500px;
  margin: 30px auto 50px;
  padding: 30px 15%;
  border-radius: 20px;
  background-color: var(--backgound-color);
  position: relative;
}

.bridge_to_left {
  position: relative;
}

.support_seciton::before {
  content: "";
  position: absolute;
  width: 50%;
  height: 100%;
  right: 0;
  top: 0;
  border-radius: 0 20px 20px 0;
  box-shadow: 0px 3px 18px 3px rgba(0, 0, 0, 0.4);
  z-index: -10;
}

.support_seciton::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: -9;
  background-color: var(--backgound-color);
}

.bridge_to_left::before {
  box-shadow: -4px 3px 18px 3px rgba(0, 0, 0, 0.4);
  z-index: -10;
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: var(--backgound-color);
  transform: translateX(-100%);
}

.support_seciton h2:first-child {
  margin-top: 0;
}

.outside_page {
  position: absolute;
  top: -500px;
  width: 100%;
  height: 10px;
}

.blured_background {
  position: relative;
}

.blured_background::before {
  content: "";
  position: absolute;
  bottom: -550px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% + 50px);
  max-width: 1100px;
  height: 800px;
  max-height: 800px;
  border-radius: 50%;
  background-color: #64b4ea15;
  filter: blur(70px);
  opacity: 0;
  animation-name: fadeIn;
  animation-duration: 0.7s;
  animation-delay: 0.7s;
  animation-fill-mode: forwards;
}

.initial_content button,
.initial_content h1 {
  margin-top: 0;
  margin-bottom: 0;
}

.initial_content p {
  margin-top: 50px;
  margin-bottom: 50px;
  color: var(--primary-text-color);
}

@media (hover) {
  button:hover {
    cursor: pointer;
    background-color: var(--primary-hover-color);
  }

  button:disabled:hover {
    background-color: var(--primary-disabled-color);
    cursor: default;
  }

  .preference:hover {
    transform: scale(1.01);
    box-shadow: 0px 3px 23px 0px rgba(0, 0, 0, 0.4);
  }

  .preference:hover {
    cursor: default;
  }
}

@media only screen and (min-width: 851px) {
  .bridge_to_left::before, .support_seciton::before, .support_seciton::after{
    display: none;
  }

  .support_seciton{
    box-shadow: 0px 3px 18px 3px rgba(0, 0, 0, 0.4);
    padding: 30px 150px;
  }
}

@media only screen and (max-width: 850px) {
  .no_display_under_850 {
    display: none;
  }

  .first_container,
  .background_container {
    height: fit-content;
    min-height: fit-content;
  }

  .initial_content {
    min-height: 250px;
    height: calc(100vh - 200px);
  }

  .block-under-800 {
    display: block !important;
  }

  .narrow_conainer {
    padding: 0;
  }

  .second_content_container {
    padding: 60px;
  }

  .initial_content {
    padding-bottom: 40px;
  }

  .initial_content h1{
    margin-top: auto;
  }

  .initial_content p {
    margin-bottom: auto;
  }

  .initial_content button {
    margin-top: 50px;
    margin-bottom: 20px;
  }

  .main_title_container{
    height: 100%;
  }

  .background_container::before {
    background-image: none;
  }

  .blured_background::before {
    display: none;
  }

  .support_seciton {
    padding: 30px 10%;
  }

  .slide_from_left{
    transform: translateX(-70px);
  }
}

@media only screen and (max-width: 630px) {
  .footer_second_div_mobile {
    display: flex;
  }

  .footer_second_div {
    display: none;
  }

  .footer_logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer_copyright_div {
    margin-top: 35px;
  }

  .footer_first_div {
    text-align: center;
  }

  .center_container {
    width: calc(100%);
  }

  .phone_photo {
    width: calc(100% - 50px);
  }

  .support_seciton {
    padding: 30px 20px;
  }
}

@media only screen and (max-width: 450px) {
  .link_to_social {
    width: 30px;
    height: 30px;
    margin: 0 20px;
  }

  .slow_transtiontion{
    transition: .8s !important;
  }

  .slide_from_left{
    transform: translateX(-40px);
  }

  .first_container {
    padding-top: 40px;
  }
}

@media only screen and (max-width: 400px) {
  .second_content_container {
    padding: 20px;
  }

  .initial_content {
    padding-bottom: 20px;
  }

  footer {
    padding: 50px 20px;
  }


}

@media only screen and (max-width: 280px) {
  .support_seciton{
    text-align: left;
    padding: 30px 20px 30px 0px;
  }
}

@media only screen and (max-width: 250px) {
  .first_container {
    padding-top: 0px;
  }
}