:root {
  --bg-color: #fff;
  --primary-bg-color: #f0eded;
  --secondary-bg-color: #000000;
  --primary-color: #ce0000;
  --secondary-color: #ffffff;
  --tertiary-color: #000000;

  --body: "Montserrat", sans-serif;
  --title: "Exo 2", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  font-size: 16px;
  box-sizing: border-box;
  font-family: var(--body);
}

body {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

main.card {
  width: 100%;
  height: 100%;
  max-width: 537px;
  max-height: 544px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-bg-color);
  border-radius: 24px;
  margin-bottom: 32px;
}

.card .logo {
  margin-bottom: 32px;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
}

.link-icon-container {
  position: relative;
  width: 425px;
  height: 54px;
  padding-right: 39px;
  background-color: var(--secondary-bg-color);
  border-radius: 40px;
  text-align: center;
  margin-bottom: 16px;
}

.link-icon-container svg {
  position: absolute;
  left: 6px;
  top: 6px;
}

.link-container {
  position:absolute;
  width:100%;
  height:100%;
  top:0;
  left:0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-link {
  text-align: center;
}

.contact-link a {
  color: var(--primary-color);
}

.link-icon-container svg{
  opacity: 0;
  transition: opacity 0.2s ease;
}

.link-icon-container:hover svg, 
.link-icon-container:focus-within svg{
  opacity: 1;
}


@media (max-width: 767px){
  main.card {
    max-width: 100%;
  }

  .link-icon-container, .link-container {
    max-width: 90%;
  }
}


/*main page*/

.main-page .logo {
  margin: 36px 0 56px 0;
}

.main-page h1 {
  font-family: var(--title);
  font-weight: 700;
  font-size: 2.75rem;
  margin-bottom: 32px;
}

body.main-page  {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
  padding: 20px 80px;
}

header {
  display: flex;
  height: 100%;
}

.main-page .first-container{
  width: 45%;
  height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.main-page .first-container .content {
  height: auto;
}


.main-page .second-container {
  display: flex;
  flex-direction: column;
  width: 49%;
}

.main-page .tag {
  border-radius: 32px;
  background-color: var(--secondary-bg-color);
  color: var(--secondary-color);
  margin-bottom: 16px;
  padding: 8px 16px;
  max-width: fit-content;
}

.text-bold {
  font-weight: 700;
}

.description {
  margin-bottom: 32px;
}

.areas, .description {
  font-size: 1.2rem ;
  line-height: 24px;
}

.areas {
  margin-bottom: 48px;
  font-weight: 500;
}

.detail {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0 6px;
}

.main-page .second-container .img-container {
  background-image: url("./assets/images/header-img.png");
  background-position: center;
  background-size: cover;
  height: 95vh;
  border-radius: 32px;
}

.link-icon-container.secondary {
  background-color: var(--primary-color);
  max-width: 349px;
}

.main-page footer.desktop {
  display: flex;
  align-items: center;
}

.main-page footer img {
  max-width: 125px;
  margin-left: 32px;
}

.main-page .content .link-mailto {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  color: var(--tertiary-color);
  text-align: center;
  margin-left: 60px;
}

footer.mobile {
  display: none;
}

@media (max-width: 1079px){
  body.main-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
  }

  .main-page .second-container, .main-page .first-container  {
    width: 100%;
    height: 100%;
  }

  .main-page .first-container .content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .main-page h1, .description, .areas {
    text-align: center;
  }

  .main-page .first-container footer.mobile {
    justify-content: center;
  }

  .main-page footer.desktop {
    display: none;
  }

  .main-page footer.mobile {
    display: flex;
    align-items: center;
  }

  .main-page .second-container {
    margin: 32px 0;
    justify-content: center;
  }

  .main-page .second-container .img-container {
    height: 358px;
    max-width: 100%;
  }

  .main-page .link-icon-container.secondary {
    background-color: var(--primary-color);
    max-width: 90vw;
  }
}

