/*
    1. GENERAL 
    2. VIDEO CONTROLS 
    3. SCROLLBAR
    4. HEADER
    5. MAIN
    6. GRID ITEMS
    7. MODAL
    QUERIES
*/

/* 1. GENERAL */

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-VariableFont_wdth,wght.ttf") format("truetype");
}

*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --header-color: rgb(22, 43, 54);
  --red: #d64a73;
  --green: #13b07a;
  --d5: #d5d5d5;
  --dd: #dddddd;
}



div {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  vertical-align: baseline;
  background: transparent;
}

video {
  margin: 0;
  padding: 0;
}

a {
  cursor: pointer;
}

p {
  margin-bottom: unset !important;
}

strong {
  font-weight: bold;
}

span {
  font-weight: bold;
}

input:invalid:not([type="submit"]):not(:placeholder-shown) {
border-radius: var(--borderRadius, 4px);
border: 1px solid var(--MDH-Red, #CB3333);
background: #FFF;
}

input:valid:not([type="submit"]):not(:placeholder-shown) {
border-radius: var(--borderRadius, 4px);
border: 1px solid var(--MDH-Green, #13B07A);
background: #FFF;
  
}

.input::placeholder {
  color: #B3B3B3;
}

.absolute {
  position: absolute;
}

.relative-box {
  position: relative;
}

.full-width {
  width: 100%;
}

.btn {
  display: inline-block !important;
}

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

.mobile {
  display: none;
}

.hidden {
  display: none !important;
}

.clickable {
  cursor: pointer;
}

.mt-1 {
  margin-top: 1rem !important;
}

/* 2. VIDEO CONTROLS */

video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}
video::-webkit-media-controls-play-button {
  display: none !important;
}
video::-webkit-media-controls-play-button {
  display: none !important;
}
video::-webkit-media-controls-timeline {
  display: none !important;
}
video::-webkit-media-controls-current-time-display {
  display: none !important;
}
video::-webkit-media-controls-time-remaining-display {
  display: none !important;
}
video::-webkit-media-controls-time-remaining-display {
  display: none !important;
}
video::-webkit-media-controls-mute-button {
  display: none !important;
}
video::-webkit-media-controls-toggle-closed-captions-button {
  display: none !important;
}
video::-webkit-media-controls-volume-slider {
  display: none !important;
}


/*  MODAL */

.custom-checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #2f3b42;
  user-select: none;
}

.custom-checkbox input[type="checkbox"] {
  display: none;
}

.custom-checkbox .checkmark {
  width: 19px;
  height: 19px;
  background-color: #fff;
  border-radius: 2px; /* boxy but soft */
  margin-right: 10px;
  position: relative;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-checkbox input:checked + .checkmark {
  background-color: #10b981;
}

.custom-checkbox .checkmark::after {
  content: "";
  width: 5px;
  height: 13px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: none;
  
}

.custom-checkbox input:checked + .checkmark::after {
  display: block;
  position: absolute;
  top: 2px;
  right: 7px;
}


.register-btn:hover {
  background-color: #e6e6e6;
}


#suggestion-button {
  background-color: #fff;
    color: #000;
    border: none;
    padding: 5px 24px 5px 24px;
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none !important;
}

.text-left {
color: var(--MDH-Navy-Blue, #162B36);
text-align: center;
font-family: "Open Sans";
font-size: 20px;
font-style: normal;
font-weight: 700;
line-height: 28px; /* 140% */
letter-spacing: 0.3px;
text-transform: uppercase;
margin-bottom: .8rem;
}

.subtitle-icons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--MDH-Dark-Grey, #667278);
  font-family: "Open Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px; /* 142.857% */
  letter-spacing: 0.15px;
}

.credits-icon {
  width: 15px;
  height: 14px;
}

.play-icon {
  width: 15px;
  height: 14px;
}

.modal-section {
  z-index: 999;
}

.close-modal {
  display: flex;
  padding: 8px;
  align-items: flex-start;
  gap: 8px;

  position: absolute;
  right: 16px;
  top: 16px;

  border-radius: var(--Corner-Radius-Full-Round, 300px);
  background: rgba(0, 0, 0, 0.15);
}


.modal-container::-webkit-scrollbar {
  display: none;
}


.model-modal video {
  border-radius: 12px 4px 4px 12px;
  object-fit: cover;
  height: auto;
}


.chat-with-me-btn {
  display: flex;
  align-items: center;
  background-color: var(--green);
  padding: 8px 16px;
  border-radius: 15px;
  font-size: 1.2rem;
  color: white;
}


.video-modal-mobile {
  display: none;
}

.video-modal-mobile > video {
  width: 100%;
}

.close-icon path {
  fill: white;
}

.close-icon:hover path {
  fill: black;
}



.registration-form :nth-child(4).subtitle-icons {
  margin-bottom: 0.4rem;
}

.registration-form::-webkit-scrollbar {
  display: none;
}

.registration-form a {
  color: var(--green);
  text-decoration: none;
  font-weight: bold;
}

.bonus {
  color: var(--red);
}

.input-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  margin-top: 2.4rem;
  margin-bottom: 1.2rem;
}

.input {
  padding: 12px 20px 12px 16px;
  border-radius: 4px;
  color: #162b36;
  font-weight: 400;
  outline: none;
  border: solid 1px var(--d5);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
}

.generate-username {
  position: relative;
}

.gen-user-icon {
  fill: #112029;
  width: 2.5rem;
  height: 2.5rem;
  position: absolute;
  top: 0;
  right: 19px;
  z-index: 9999;
  cursor: pointer;
  transform: translateY(0%);
}

.input-modal {
  transition: all 0.3s ease-in-out;
}

.input-modal:hover {
  box-shadow: 0 0 0 1px var(--green);
}

/* .input-modal:focus {
  box-shadow: 0 0 0 2px var(--green);
} */

.register-btn-modal {
  padding: 10px 22px 10px 22px;
  background-color: var(--green);
  -webkit-appearance: none;
  color: white;
  outline: none;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 2.4rem !important;
  margin-bottom: 2rem;
  letter-spacing: 0.46px;
  text-transform: uppercase;
  line-height: 25px;
}

.register-btn-modal:hover {
  background-color: #13b079be;
  text-transform: capitalize;
}

.background-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.show_password {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  transition: right 0.2s ease;
}

.select-modal {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.arrow-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.arrow-icon path {
  fill: gray;
}

.darker-text {
  color: #3e4f58;
  font-weight: 600;
}

.legals {
  margin: 2rem 0;
}

.modal-legals {
  font-size: 13px;
  line-height: 2;
  text-align: center;
  color: #162b36;
  width: 37rem;
}

.help-block {
  color: var(--red);
  font-size: 12px;
  margin-left: 0.5rem;
}
.btn-ssos {
  display: flex !important;
  flex-direction: column;
  justify-content: space-around !important;
  align-items: center !important;
  gap: 1.6rem;
  width: 100%;
}

.x_sso_button {
display: flex;
padding: 12px 20px;
justify-content: center;
align-items: center;
gap: 12px;
align-self: stretch;
  cursor: pointer;

  border-radius: 4px;
border: 1.5px solid var(--Lighter-Grey-Plus, #E5E5E5);
background: var(--White, #FFF);

color: var(--MDH-Navy-Blue, #162B36) !important;
font-feature-settings: 'liga' off, 'clig' off;
font-family: "Open Sans";
font-size: 14px;
font-style: normal;
font-weight: 600;
line-height: 20px; /* 142.857% */
letter-spacing: 0.17px;
}

.x-icon {
  width: 20px;
  height: 20px;
}

.or-with {
  color: var(--MDH-Navy-Blue, #162B36);
  text-align: center;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "Open Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 17px; /* 141.667% */
  letter-spacing: 0.17px;
  margin-bottom: 2.4rem;
}

.slider-container {
  width: 100%;
  margin: 0 auto;
}

.slider {
  position: relative;
}

.swiper {
  max-width: 1800px;
  margin: 0 auto;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  position: relative;
  margin-right: 1.5rem;
}

.swiper-slide img {
  border-radius: 10px;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 50%;
  z-index: 100;
  cursor: pointer;
  border: none;
  width: 50px;
}

.prev {
  left: -30px;
}

.next {
  right: -30px;
}

.prev:hover,
.next:hover {
  background-color: rgba(255, 255, 255, 0.7);
  color: black;
  outline: none;
}
.prev:active,
.next:active {
  background-color: rgba(185, 185, 185, 0.233);
  color: black;
}

.reasons-section {
  color: #ffffff;
  margin: 6rem 0;
  text-align: center;
  max-width: 1180px;
}

.reasons-section h2 {
  display: flex;
  align-self: flex-start;
  font-size: 2em;
  margin-bottom: 20px;
}

.reasons-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  justify-content: center;
}

.reason-card {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(145deg, #292929, #1c1c1c);
  border-radius: 10px;
  padding: 14px;
  width: 250px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

.icon-cards {
  width: 30px;
  margin-bottom: 1rem;
}

.reason-card h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.reason-card p {
  font-size: 0.9em;
  line-height: 1.4;
  color: #cccccc;
}


/* FOOTER */
.footer-cover {
  background-color: #162b36;
  padding-top: 1rem;
  margin-top: 3rem;
  width: 100%;
  margin: 0 auto;
}

.footer-container {
  background-color: #162b36;
  padding-top: 1rem;
  max-width: 1180px;
  margin: 0 auto;
}

.main-logo-footer {
  width: 200px;
  margin-bottom: 1rem;
}

.wrapper {
  display: flex;
  align-items: flex-start;
}

.MuiGrid-root {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.MuiGrid-direction-xs-column {
  display: flex;
  flex-direction: column;
}

.MuiGrid-spacing-xs-2 {
  gap: 2rem;
}

.MuiTypography-root {
  text-decoration: none !important;
  color: #fff !important;
  margin-bottom: 1rem;
}
.jss282 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  margin-left: 4rem;
  margin-top: 1rem;
}
.jss276 {
  display: flex;
  flex-direction: row;
  margin-top: 2rem;
  border-top: 1px solid #4a5054;
  justify-content: center;
  align-items: center;
}

.jss278 {
  margin: 1rem 2rem !important;
}

.op {
  text-decoration: none !important;
  color: #87939a !important;
  margin-bottom: 2rem;
}

.logo-and-navs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 1rem;
  vertical-align: baseline;
  outline: 0;
}

.navbtn {
  font-size: 1.65rem;
  color: #fff;
  text-decoration: none;
  margin: 0 1rem;
}

.main-logo-footer {
  width: 200px;
  margin-bottom: 1rem;
}

.copyright {
  font-family: 'Roboto-Light';
  text-align: center;
  text-wrap: wrap;
  color: #fff;
  margin-top: 2rem;
  margin-bottom: 2rem;
  max-width: 60%;
  font-size: 1.2rem;
}



/* QUERIES */

@media screen and (max-width: 1440px) {
  .top-container {
    height: 500px;
  }
}

@media screen and (max-width: 1015px) {
  .search-bar-container {
    margin: 0 auto 0 0;
  }
}

@media screen and (max-width: 972px) {
  .mobile {
    display: block;
  }

  .desktop {
    display: none;
  }

  header {
    justify-content: space-between;
  }

  .nav-logo {
    width: 170px;
  }
}

@media screen and (max-width: 897px) {
  .reasons-cards {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 800px) {
  .top-container {
    background-position: left;
  }
}



@media screen and (max-width: 47.938rem) {
  .jss276 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .jss282 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 90%;
    margin: 0 auto;
}

.grid-section {
  margin-top: 3rem;
}

}

@media screen and (max-width: 1000px) {
  .grid-box {
    grid-template-columns: repeat(3, 1fr);
    margin: 10px 10px 10px 10px !important;
  }

  /* .grid-section {
    margin-top: 11rem;
  } */
}

/* HEIGHT QUERIES (the order of queries is important) */


@media screen and (max-height: 785px) {
  .video-container {
    max-height: 550px;
  }
}


@media screen and (max-height: 730px) {
  .video-container {
    max-height: 410px;
  }
}




@media screen and (max-height: 560px) {

  .model-modal {
    display: none;
  }


  .modal-legals {
    text-align: center;
  }


}

/* END OF HEIGHT QUERIES */

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

  .model-modal {
    display: none;
  }


  .modal-legals {
    text-align: center;
  }

    .modal-mdh-logo {
    display: none;
  }
}


@media screen and (max-width: 768px) {
  .close-modal {
    top: 0.5rem;
    right: 0.5rem;
  }
}

@media (hover: none), (hover: on-demand) {
  .modal-container {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    position: relative !important;
  }

  .modal {
    height: 100% !important;
    border-radius: 0 !important;
  }

  .model-modal {
    display: none !important;
  }

  .modal-legals {
    text-align: center !important;
  }

  .video-modal-mobile {
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
  }

  .modal-mdh-logo--mobile {
    display: block;
  }
}

@media screen and (max-width: 400px) {
  .model-info-container-stream {
    top: 2px;
    bottom: unset;
    left: 2px;
  }

  .mute-button {
    bottom: 10px;
    right: 10px;
  }

  .slide img {
    width: 125px;
    height: 170px;
  }

}

.modal-section { z-index: 999; }

.background-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.5);
  z-index: 10;
}

.modal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
  width: min(1000px, 90vw);
  height: min(850px, 90vh);
  overflow-y: auto;
  border-radius: 16px;
}

.modal-container::-webkit-scrollbar { display: none; }

.modal {
  display: flex;
  flex-direction: row;
  background: #eee;
  padding: 8px;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  
}

.model-modal { flex: 1 1 20%; }
.model-modal video {
  width: 100%;
  height: 100%;
  border-radius: 12px 4px 4px 12px;
  object-fit: cover;
}

.registration-form {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  padding: 28px 75px 0 85px;;
  width: auto;
  max-width: none;
  overflow-y: auto;
}

.modal-mdh-logo {
  width: 133px;
  height: 36px;
  aspect-ratio: 133/36;
  margin-bottom: 2rem;
  }

.modal-mdh-logo--mobile {
  display: none;
  max-width: 150px;
  width: 100%;
  margin-bottom: .5rem;
  align-self: center; 
  }

.close-modal {
  display: flex;
  padding: 8px;
  gap: 8px;
  position: absolute;
  right: 16px;
  top: 16px;
  border-radius: 300px;
  background: rgba(0,0,0,.15);
}

@media (max-width: 900px), (max-height: 560px), (hover: none), (hover: on-demand) {
  .modal-container {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
  .modal { border-radius: 0; }
  .model-modal { display: none; }
  .registration-form {
    flex: 1 1 100%;
    width: 100%;
    height: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    overflow-y: auto;
  }
  .modal-mdh-logo--mobile { display: block; margin-bottom: 2.5rem; }
  .modal-mdh-logo { display: none; }
  .modal-legals { text-align: center; }
  .close-modal { top: .5rem; right: .5rem; }
}

.valid-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-65%);
  width: 20px;
  height: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
input:valid:not([type="submit"]):not(:placeholder-shown) ~ .valid-icon {
  opacity: 1;
}

input:valid:not([type="submit"]):not(:placeholder-shown) ~ .generate-username {
  display: none;
}

.generate-username {
  opacity: 1;
  transition: opacity 0.2s ease;
}

input:valid:not([type="submit"]):not(:placeholder-shown) ~ .generate-username {
  opacity: 0;
  pointer-events: none;
}

input:valid:not([type="submit"]):not(:placeholder-shown) ~ .valid-icon {
  opacity: 1;
}

input:valid:not([type="submit"]):not(:placeholder-shown) ~ .show_password {
  right: 5.5rem; /* move left so checkmark fits */
}