/* Resets */

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

/* Variables */

:root {
  --bg-clr: #fff;
  --cr-red-clr: #db001d;
  --ff: "futura-pt", sans-serif;
  --ff-bold: "futura-pt-bold", sans-serif;
}

/* Page Styles */

body {
  font-family: var(--ff);
  height: 100vh;
}

.body-container {
  padding: 64px;
}

header {
  display: flex;
  height: 180px;
}

.logo {
  background-image: url(./assets/completeRenovationLogoXl.webp);
  width: 1003px;
  height: 180px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.tel-container {
  width: 100%;
}

.tel {
  height: 100%;
  align-content: flex-end;
  text-align: end;
  font-size: 64px;
  font-family: var(--ff-bold);
}

a {
  color: inherit;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  line-height: 100%;
}

main {
  display: flex;
  padding-top: 32px;
}

.main-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--ff);
  width: 50%;
}

.main-image {
  width: 50%;
  background-image: url(./assets/projectPolaroidsXl.webp);
  background-repeat: no-repeat;
  background-position: right;
  background-size: contain;
}

h1 {
  text-align: left;
  font-size: 40px;
}

h2 {
  padding-top: 32px;
  font-weight: normal;
  text-transform: uppercase;
  font-size: 32px;
}

p {
  padding-top: 32px;
  font-size: 32px;
}

.main-text span {
  font-family: var(--ff-bold);
  color: var(--cr-red-clr);
}

footer {
  position: fixed;
  bottom: 0;
}

.ticker-tape-container {
  background-color: #db001d;
  width: 100%;
  overflow-x: hidden;
  display: flex;
}

.ticker-tape {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 50rem;
  animation-name: marquee;
  animation-duration: 60s;
  animation-timing-function: linear;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-play-state: running;
  animation-direction: normal;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.ticker-tape span {
  text-transform: uppercase;
  font-family: var(--ff-bold);
  font-size: 64px;
  color: var(--bg-clr);
  background-color: var(--cr-red-clr);
  padding: 16px;
}

/* Media Queries */

@media only screen and (max-width: 1592px) {
  .tel {
    font-size: 48px;
  }
  h1 {
    font-size: 40px;
  }
}

@media only screen and (max-width: 1454px) {
  header {
    height: 90px;
  }
  .logo {
    background-image: url(./assets/completeRenovationLogoL.webp);
    width: 502px;
    height: 90px; 
  }
}

@media only screen and (max-width: 1078px) {

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 24px;
  }
  p {
    font-size: 24px;
  }
  .main-image {
    background-image: url(./assets/projectPolaroidsL.webp);
  }
}
/* Mobile layout */

@media only screen and (max-width: 962px) {
  body {
    height: 100%;
  }
  main {
    flex-direction: column;
  }
  .main-text {
    width: 100%;
    margin-bottom: 32px;
  }
  .main-image {
    background-position: 0%;
    width: 100%;
    height: 720px;
  }
  footer {
    position: relative;
  }
  .tel {
    font-size: 32px;
  }
}

@media only screen and (max-width: 860px) {
  .logo {
    background-image: url(./assets/completeRenovationLogoS.webp);
    width: 279px;
    height: 50px;
  }

  header {
    height: 50px;
  }

}

@media only screen and (max-width: 630px) {
  .tel {
    font-size: 24px;
  }
  .main-image {
    background-image: url(./assets/projectPolaroidsS.webp);
    height: 360px;
  }
}

@media only screen and (max-width: 498px) {
  .tel {
    font-size: 16px;
  }
  p {
    font-size: 16px;
  }
}

@media only screen and (max-width: 458px) {
  header {
    flex-direction: column;
    height: 100%;
  }

  .tel {
    justify-content: left;
    padding: 32px 0px;
    font-size: 32px;
  }

}

@media only screen and (max-width: 400px) {
  .body-container {
    padding: 32px;
  }

}

@media only screen and (max-width: 319px) {
  .body-container {
    padding: 32px 16px;
  }
}