:root {
  --gradientColor: linear-gradient(44.89deg, #ff4a84 9.29%, #efbe37 121.2%);
  --offsetTop: 85px;
}
body {
  min-width: 318px;
  overflow-x: hidden;
  overflow-y: auto;
}

main {
  background: var(--gradientColor);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: grid;
  /* grid-template-rows: auto 1fr; */
  grid-template-rows: 1fr;
  min-height: 100vh;
}

.box {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

header {
  padding: 10px 32px 10px 0;
}

header .logo {
  background: #fff;
  padding: 5px;
  border-radius: 10px;
  height: 100%;
  min-height: 65px;
  max-height: 65px;
}

.customScroll::-webkit-scrollbar {
  width: 4px;
  height: 10px;
}
.customScroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 20px;
}
.customScroll::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 20px;
}
.customScroll::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.videoContainer {
  /* width: 360px; */
  width: 100%;
  height: 475px;
  /* max-height: 550px; */
  margin: 0 auto;
  position: relative;
  /* overflow: hidden; */
  transition: all 0.3s ease;
}

.videoDetails {
  position: absolute;
  top: 0;
  /* top: 70%; */
  left: 0;
  color: #fff;
  border-radius: 0.3rem 0.3rem 0 0.3rem;
  padding: 0 10px;
  min-height: 53px;
  padding-top: 10px;
  padding-bottom: 30px;
  width: 100%;
  max-width: 70%;
  transform: scale(0);
  /* overflow: hidden; issue with safari*/
  transition: all 0.3s ease;
}
.videoDetails.show {
  transform: scale(1);
}

.videoDetails.safariBr {
  top: 60px;
}

.playLogo {
  position: absolute;
  top: -1px;
  right: 0;
  background-color: transparent;
  /* border-radius: 0.3rem 0rem 0.3rem 0; */
  padding: 10px;
  min-height: 53px;
  transition: all 0.3s ease;
  /* filter: brightness(0) invert(1); */
  background-color: #fff;
  border-radius: 0.3rem;
}

.kidName {
  margin-bottom: 10px;
}

.videoDetails svg {
  color: #ff5382;
  width: 25px;
  height: 25px;
}

.claps {
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.videoDetails .name,
.videoDetails .count,
.videoDetails .text {
  font-size: 1.2rem;
  font-weight: 700;
  margin-left: 5px;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.videoDetails .text {
  margin-left: 2px;
}

.claps .image {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-image: url("./img/clapped@2x.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.kidName .image {
  display: inline-block;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
}

.kidName .image.onlyText {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  font-weight: bold;
}

.video-error {
  color: red;
  border: 1px solid #fff;
  font-size: 18px;
  font-weight: bold;
}
.videoErrorMsg.hide {
  display: none;
}

.videoErrorMsg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  z-index: 9;
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.jssocials-shares {
  display: flex;
  flex-direction: column;
}
.jssocials-shares a {
  border-radius: 4px;
}

/* .detailSection .box {
  margin-bottom: var(--offsetTop);
} */

@media only screen and (min-width: 768px) {
  /* .videoSection video {
    position: sticky;
    top: 55%;
    transform: translateY(-50%);
  } */
  .detailSection .box {
    /* normal scroll */
    /* max-height: calc(100vh - var(--offsetTop)); */
    /* margin-top: calc(var(--offsetTop) * -1); */
    /* max-height: calc(100vh - var(--offsetTop) * 2);
    overflow-y: auto; */
    /* fixed scroll 1 */
    /* position: fixed;
    right: 0;
    top: 10px;
    bottom: 10px;
    right: 15px;
    max-height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow-y: auto; */
    /* fixed scroll 2 */
    /* position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    max-height: 100vh;
    overflow: hidden;
    padding-right: 0; */
    margin-bottom: 0 !important;
  }
  /* .detailSection .box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0 !important;
  } */
  /* .detailSection > div:last-child {
    margin-bottom: 0 !important;
  } */
}

.shareBtn,
button.link {
  outline: none;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 25px;
  /* padding: 0; */
  margin-top: 10px;
}

.shareBox {
  display: none;
}
.shareBox.show {
  display: block;
}

.shareBtn i,
button i {
  pointer-events: none;
}

.shareBtn.bottom {
  position: absolute;
  z-index: 9;
  top: 80%;
}

.shareBtn.link-info:focus,
.shareBtn.link-info:hover,
button.link-info:focus,
button.link-info:hover {
  color: #fff;
}

#urlCopy {
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  position: absolute;
  left: -100%;
}

.copyBtn {
  position: relative;
}
.copyBtn button {
  background-color: silver;
  font-size: 20px;
  font-weight: bold;
  margin-top: 0;
}
.copyBtn span {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  font-weight: bold;
}

/* @media only screen and (max-width: 768px) {
  .videoContainer {
    width: 100%;
  }
} */

@media only screen and (max-width: 678px) {
  .videoContainer {
    height: 475px !important;
    min-height: calc(100vh - (2rem + 50px));
    margin: 1rem 0;
  }
  .centerResp {
    justify-content: center;
  }
  .qrCode {
    margin: 0 auto;
    display: block;
  }
}

@media only screen and (max-width: 400px) {
  .centerResp {
    flex-direction: column;
  }
  .centerResp a {
    margin-right: 0 !important;
  }
}
