@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap");

* {
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
}

:root {
  --header-padding: 0 4rem;
  --grey-text-color: #707070;
  --red-color: #ba0c2e;
  --shadow-color: rgba(0, 0, 0, 0.164);
}

p,
h2 {
  line-height: 1.5;
}

.content {
  padding-top: 60px;
}

body {
  background-color: rgb(242, 242, 242);
  min-height: 100vh;
  margin: 0;
  text-align: center;
  width: 100%;
  overflow-x: hidden;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
}

main {
  padding: 3rem 8px;
  padding-bottom: 8rem;
  overflow: hidden;
  width: 100%;
}

button {
  cursor: pointer;
}

section {
  max-width: 42.6rem;
  margin: 0 auto;
}

/*******************************/
/************Header*************/
/*******************************/

header {
  background-color: rgb(255, 255, 255);
  box-shadow: 0 3px 2px var(--shadow-color);
  padding-top: 1.2rem;
  position: relative;
}

.topmost-bar {
  padding: 0 8rem;
  display: grid;
  grid-template-columns: 1fr 28rem 1fr;
  grid-template-areas: "empty search-bar nav-icon";
  align-items: center;
}

.search-bar {
  height: 1.9rem;
  width: 100%;
  max-width: 42rem;
  border: 1px solid #70707085;
  border-radius: 25px;
  padding-left: 1rem;
  justify-self: center;
  font-weight: 400;
}

.topmost-bar div {
  grid-area: search-bar;
  position: relative;
}

.search-icon {
  position: absolute;
  right: 3px;
  background-color: transparent;
  border: none;
  width: 32px;
  height: 100%;
}

.search-icon svg {
  width: 100%;
}

.search-bar:focus {
  outline: none;
}

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgb(255, 255, 255);
  /* box-shadow: 0 6px 6px rgba(0, 0, 0, 0.16); */
}

#nav-icon {
  background-color: transparent;
  border: 0;
  width: 1.5rem;
  height: 1.1rem;
  appearance: none;
  grid-area: nav-icon;
  justify-self: end;
  padding: 0;
  z-index: 500;
  color: var(--grey-text-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

h1 {
  color: var(--red-color);
  margin: 1rem 0;
  font-weight: 700;
  display: inline-block;
}

a {
  text-decoration: none;
}

#nav-icon hr {
  border: solid;
  border-width: 0.5px;
  margin: 0;
  width: 100%;
}

.main-nav-list {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0 1.7rem;
  margin: 0;
}

#nav-list {
  border-top: 0.2px solid #dbdbdb;
  color: var(--grey-text-color);
  z-index: 500;
  box-shadow: 0 3px 2px var(--shadow-color);
  /* box-shadow: 0 6px 6px rgba(0, 0, 0, 0.16); */
}

.main-nav-list li {
  height: 2.7rem;
  width: 14%;
}

.main-nav-list li:hover {
  border-bottom: 3px solid #dbdbdb;
}

.main-nav-list li a {
  color: var(--grey-text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-weight: 600;
}

#progress {
  background-color: var(--red-color);
  margin: 20px 0 0 0;
  height: 4px;
  position: absolute;
  bottom: -1px;
}

#progress.done {
  display: none;
}

/*******************************/
/************Side Nav*************/
/*******************************/
.side-nav {
  width: 0;
  overflow-x: hidden;
  height: 20rem;
  background-color: #ffffff;
  display: flex;
  position: absolute;
  flex-direction: column;
  align-items: start;
  text-align: left;
  right: -0.5rem;
  top: -0.5px;
  z-index: 1000;
  transition: 0.2s;
}

.side-nav span {
  overflow-x: hidden;
  width: 100%;
}

.display-nav {
  width: 15rem;
  padding: 1rem 1.1rem;
  border: 0.2px solid #dbdbdb;
  /* overflow-x: visible; */
}

.side-nav a {
  margin: 1rem 0;
  width: 100%;
  height: 2rem;
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--grey-text-color);
}

.side-nav a:hover {
  /* color: var(--red-color); */
  text-decoration: underline;
}

a.side-nav__register:hover,
a.side-nav__login:hover,
a.side-nav__myaccount:hover,
a.close-account-nav:hover {
  text-decoration: none;
}

a.side-nav__register,
a.side-nav__login {
  padding: 0 1.3rem;
  width: 100%;
  height: 3rem;
  border-radius: 6px;
  /* text-align: center; */
  justify-content: center;
  font-weight: 600;
}

a.side-nav__register {
  color: #ffffff;
  background-color: var(--red-color);
}

/* a.side-nav__register:hover, .mobile-nav__register:hover {
  background-color: #660f20;
}

a.side-nav__login:hover, div a.mobile-nav__login:hover {
  color: #ffffff;
  background-color: var(--red-color);
} */

a.side-nav__login {
  border: 1px solid var(--red-color);
  color: var(--red-color);
}

.side-nav__myaccount {
  display: flex;
  justify-content: space-between;
}

a.side-nav__myaccount svg {
  height: 70%;
}

button.close-nav-btn {
  background-color: #ffffff;
  border: none;
  position: relative;
  right: -10.9rem;
  top: 0;
  color: var(--grey-text-color);
  transition: 0.5s;
}

button.close-nav-btn svg {
  width: 1.5rem;
}

.my-account-nav {
  display: none;
}

.open-account-nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(16px);
  padding-left: 0;
  list-style: none;
}

.open-account-nav a {
  margin: 0;
}

.my-account-nav a:first-child {
  position: relative;
  display: flex;
  align-items: center;
}

.close-account-nav svg {
  width: 12px;
  transform: rotate(180deg);
  position: absolute;
  left: -18px;
}

.pro-icon {
  color: #009300;
  width: 18px;
  margin-right: 6px;
}

#overlay {
  height: 100%;
  width: 100%;
  z-index: 400;
  transition: 0.5s;
  background-color: rgba(112, 112, 112, 0.5);
  display: none;
}

.mobile-nav {
  display: none;
  position: fixed;
  right: 0;
  width: 15rem;
  background-color: #ffffff;
  text-align: left;
  padding: 1rem;
  height: 100vh;
  z-index: 1000;
}

.mobile-nav svg {
  width: 11px;
}

.mobile-nav div:first-of-type {
  display: flex;
  justify-content: space-between;
}

.mobile-nav__register, .mobile-nav__login {
  width: 6.3rem;
  height: 2.5rem;
  display: inline-block;
  border-radius: 6px;
  align-items: center;
  display: flex;
  justify-content: center;
}

.mobile-nav__login {
  background-color: transparent;
  border: 1px solid var(--red-color);
  color: var(--red-color);
}

.mobile-nav ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.mobile-nav ul li {
  margin: 1rem 0;
}

.mobile-nav a {
  color: var(--red-color);
  font-size: 0.8rem;
}
a.mobile-nav__register {
  background-color: var(--red-color);
  color: #ffffff;
}

.mobile-nav a:hover {
  color: rgb(223, 54, 54);
}

a.mobile-nav__register:hover {
  background-color: var(--red-color);
  color: #ffffff;
}

.mobile-nav__myaccount {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-my-account-nav {
  display: flex;
  flex-direction: column;
  left: 21px;
  position: relative;
}

.mobile-nav .mobile-my-account-nav li {
  margin: 0.5rem 0;
}

/*******************************/
/************order*************/
/*******************************/
#order {
  background-color: #f2f2f2;
  box-shadow: 0 0 2px 2px var(--shadow-color);
  width: 28rem;
  height: 25rem;
  padding: 1.5rem;
  color: var(--grey-text-color);
  position: fixed;
  z-index: 500;
  transform: translatex(120px) translateY(65px);
  left: 50%;
  top: 50%;
  margin-top: -17rem;
  margin-left: -21.5rem;
}

.logo {
  width: 100%;
  display: flex;
  align-items: center;
}

.logo div.brand-logo {
  margin-right: 0.8rem;
  background: no-repeat center/cover url(../images/tv-logo.jpg);
  height: 4rem;
  width: 4rem;
}

.offer p {
  text-align: left;
}

.order-text__black {
  color: black;
  font-weight: 800;
}

.limited-offer,
.pro,
.discount-code {
  color: var(--red-color);
}

.discount-code {
  font-weight: 800;
}

div.block {
  height: 2rem;
  width: 10rem;
  background-color: var(--red-color);
}

div p a {
  color: var(--red-color);
  text-decoration: underline;
}

.block-access,
.allow-access {
  flex-direction: column;
  align-items: center;
}

.block-access {
  display: flex;
}

.allow-access {
  display: none;
}

.block-access hr {
  width: 100%;
  border: solid 0.5px var(--red-color);
  height: 2px;
}

.block-access p,
.allow-access p {
  margin: 7px 0;
}

div#order .cta {
  padding: 0.5rem 1.2rem;
  color: white;
  background-color: var(--red-color);
  border-radius: 16px;
  margin: 10px 0;
}

/*******************************/
/************Intro*************/
/*******************************/
#intro {
  box-shadow: 0 3px 3px var(--shadow-color);
  height: 16.5rem;
  border-radius: 20px;
  border-top-left-radius: 0;
  overflow: hidden;
}

.intro-text h2 {
  font-size: 0.8rem;
  margin: 0;
}

.intro-text p {
  font-size: 0.7rem;
}

.intro-text {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 0.7rem;
  padding-bottom: 2rem;
  background-color: #ffffff;
}

.carousel-indicators {
  margin: 0.7rem 0;
}

.carousel-indicators button {
  margin-left: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background-color: rgba(112, 112, 112, 0.301);
  appearance: none;
  border: none;
}

.carousel-indicators button.active {
  background-color: var(--red-color);
}

article.carousel-item {
  display: none;
  height: 100%;
  width: 100%;
}

.carousel-item.active {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  animation: fade 1.5s;
}

.carousel-img {
  background: no-repeat center/cover url(../images/Image_1.png);
}

/* animation css for carousel children */
@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.btn {
  background-color: var(--red-color);
  border: none;
  color: #ffffff;
  box-shadow: 0 2.7px var(--shadow-color);
  width: 6rem;
  height: 1.7rem;
  border-radius: 9px;
}

.btn:hover {
  background-color: rgb(223, 54, 54);
}

.btn:active {
  background-color: var(--red-color);
}

button:focus {
  outline: none;
}

@media (max-width: 425px) {
  #intro {
    height: auto;
  }

  .carousel-item.active {
    grid-template-columns: 1fr;
    grid-template-rows: 17.5rem 14rem;
  }
}

/************************************/
/************User Access*************/
/************************************/

#user-access {
  color: #ffffff;
  margin: 3.5rem auto;
  overflow-x: auto;
  display: flex;
  justify-content: space-between;
}

.login div,
.register div {
  position: relative;
  display: flex;
  justify-content: flex-end;
  position: absolute;
  top: 10px;
  right: 10px;
}

#user-access div .discount {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.66);
  display: flex;
  align-items: center;
  margin: 0;
  justify-content: center;
}

#user-access p {
  margin: 0.6rem;
}

#user-access h2 {
  font-size: 1.3rem;
  margin: 0;
  font-weight: 600;
}

#user-access p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
}

#user-access .register,
#user-access .login {
  text-align: left;
  border-radius: 20px;
  padding: 0 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--red-color);
  position: relative;
  height: 10rem;
  min-width: 20rem;
}

.login {
  margin-right: 10px;
}

/**************************************/
/************Privacy terms*************/
/**************************************/
.privacy-terms {
  position: relative;
  z-index: -200;
}

.privacy {
  position: absolute;
  right: -148px;
  bottom: -174px;
  width: 300px;
}

/*******************************/
/************Footer*************/
/*******************************/

footer {
  background-color: var(--red-color);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
}

.contact {
  position: absolute;
  right: 32px;
  top: -1px;
}

address {
  font-style: normal;
}

.contact img {
  height: 1.5rem;
  color: #ffffff;
  margin: 1rem;
}

.footer-nav {
  position: relative;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-nav:first-of-type {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5rem;
}

.footer-nav .more {
  display: flex;
  justify-content: center;
  padding: 0;
}

.copywright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #ffffff;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.footer-nav ul li {
  margin-left: 2rem;
}

.footer-nav ul li a {
  color: #ffffff;
  font-weight: 600;
}

#cookies {
  padding: 8px 13px;
  display: flex;
  justify-content: space-between;
  width: 19.5rem;
  background-color: #ffffff;
  /* box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.164); */
  /* margin: 4rem auto; */
  border-radius: 11px;
  position: absolute;
  left: 5px;
  bottom: 5px;
}


#cookies p {
  color: #BA0C2E;
  font-size: 0.8rem;
  text-align: left;
  margin: 0;
}

#cookies .cancel-icon {
  width: 1rem;
  height: 1rem;
  /* background-color: #BA0C2E; */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  border: none;
  background: transparent;
  padding: 0;
}

#cookies svg {
    width: 100%;
    color: #BA0C2E;
}

@media (max-width: 780px) {
  .topmost-bar {
    display: flex;
    justify-content: center;
    padding: 0 1rem;
  }

  .topmost-bar div {
    width: 81%;
  }

  #nav-icon {
    position: absolute;
    right: 15px;
  }

  .main-nav-list {
    padding: 0 0.7rem;
  }

  .main-nav-list li {
    height: 2rem;
  }

  .main-nav-list li a {
    font-size: 0.8rem;
  }
}

@media (max-width: 425px) {
  .search-icon {
    right: 7px;
    width: 30px;
    top: -2px;
}
.search-bar {
     width: 95%;
     height: 1.7rem;
     font-size: 0.8rem;
 }

  #nav-icon {
    width: 1.2rem;
    height: 0.9rem;
    right: 10px;
}

  #nav-list {
    display: none;
  }

  h1 {
    font-size: 1.3rem;
  }

  .privacy {
    bottom: -155px;
    width: 234px;
  }

  footer {
    padding: 10px;
    font-size: 0.8rem;
  }

  .footer-nav.copywright {
    display: flex;
    justify-content: space-between;
    flex-direction: column-reverse;
  }

  .footer-nav {
    flex-direction: column;
  }

  .footer-nav ul {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .footer-nav ul li {
    margin-left: 0;
    margin: 10px 0;
  }

  .footer-nav:first-of-type {
    height: 14rem;
  }

  .contact {
    position: static;
  }

  #order {
    width: 19rem;
    height: 23rem;
    margin-top: -17rem;
    margin-left: -17rem;
  }

  .logo div.brand-logo {
    height: 3rem;
    width: 3rem;
  }

  #order p {
    font-size: 0.8rem;
  }

  div.block {
    height: 1.5rem;
    width: 8rem;
  }

  div#order .cta {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}
