/* Theme stylesheet from the WordPress "tailorstoday" theme. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Inter-Italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/Inter-Bold.woff2") format("woff2");
}

/* --dailyColor, --dailyColorLight and --textColor follow the calendar: they're
   set by daily-color.js (see /admin/colors). #ccc shows only until it runs. */
:root {
  --dailyColor: #ccc;
  --bodyColor: #fcfcfc;
  --font-color-copy: #535353;
  --font-color-heading: #333;
  --font-color-light: #999;
  --weight-normal: 400;
  --weight-bold: 700;
}
::-moz-selection {
  color: var(--textColor);
  background: var(--dailyColor);
}
::selection {
  color: var(--textColor);
  background: var(--dailyColor);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  background-color: var(--dailyColor);
}
html,
body {
  font-family: "Inter", Helvetica, sans-serif;
  font-size: 62.5%;
}
body {
  font-size: 1.6rem;
  background-color: var(--bodyColor);
  font-weight: var(--weight-normal);
  line-height: 1.45; /* 1.725; */
}

header{
  transition: background-color 1s 1s ease-in-out;
  background-color: var(--dailyColor);
  height: 1.2rem;  
}

aside,
main {
  padding: 4rem 5rem;
}
aside {
  text-align: left;
  padding-top: 8rem;
  padding-bottom: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--font-color-heading);
}

hr {
  margin: 4rem 0;
  opacity: .25;
  border-style: none !important;
  background-image: linear-gradient(to right, black 50%, rgba(255,255,255,0) 0%);
  background-position: bottom;
  background-size: 4px 2px;
  background-repeat: repeat-x;
  height: 2px;
}

main {
  overflow: hidden;
}
main h2 {
  margin-bottom: 1.8rem;
  font-weight: var(--weight-bold);
}
article {
  margin-bottom: 4.8rem;
  color: var(--font-color-copy);
}
article.movie.reviews{
  display: none;
}
article.movie.reviews.shown{
  display: block;
}
article a {
  color: #2f4f4f;
}
article:nth-of-type(1) {
  margin-top: 0;
}
article blockquote ~ p {
  color: var(--font-color-light);
}
article blockquote,
article p {
  margin: 1.4rem 0 2.4rem;
}
article blockquote cite {
  display: block;
  color: #999;
  margin-top: 0.8rem;
}
article cite::before {
  content: "—";
  margin-right: 0.8rem;
  display: inline-block;
}
aside h1{
  font-size: 4rem;
}

main h2 {
  line-height: 1.55;
}

.mark {
  background-color: var(--dailyColor);
  display: block;
  height: 6.4rem;
  width: 6.4rem;
  border-radius: 100%;
}

ol {
  list-style: inside decimal;
  margin: 2rem auto 3rem 1.6rem;
}
ul {
  list-style: inside bullet;
  margin: 2rem auto 3rem 1.6rem;
}

li {
  margin: 0.2rem auto 0.4rem;
}
pre {
  padding: 1.6rem;
  background-color: var(--dailyColor);
  margin: 2rem auto 3rem;
  font-size: 1.4rem;
  color: var(--textColor);
}

#reviews-toggle{
  display: flex;
  cursor: pointer;
  margin: 40px auto 0;
  justify-content: center;
  position: absolute;
  top: 0px;
  left: 48px;
}

#reviews-toggle p{
  margin: 2px 0 0 12px;
  line-height: 22px;
}

#reviews-toggle .reviews-tooltip {
  background-color: var(--dailyColor);
  color: var(--textColor);
  font-size: small;
  padding: .6rem 1.2rem .5rem;
  border-radius: .4rem;
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 1rem;
  text-align: center;
  line-height: 1;
  opacity: 0;
  height: 0px;
  width: 0px;
  transform: translateX(-2000px);
  pointer-events: none;
}

#reviews-toggle .reviews-tooltip.shown {
  transform: translateX(0px);
  height: auto;
  width: auto;
  opacity: 1;
  transition: opacity .32s ease-in .5s;
  pointer-events: auto;
}

#reviews-toggle .reviews-tooltip:before{
  content: '';
  width: 0; 
  height: 0; 
  border-top: .4rem solid transparent;
  border-bottom: .4rem solid transparent; 
  border-right: .4rem solid var(--dailyColor);
  position: absolute;
  left: -.4rem
}

#reviews-toggle .reviews-count{
  display: inline-block;
  margin: 0 .4rem 0 0;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  width: 42px;
  height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  cursor: pointer;
  background-color: #ddd;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--dailyColor);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--dailyColor);
}

input:checked + .slider:before {
  -webkit-transform: translateX(18px);
  -ms-transform: translateX(18px);
  transform: translateX(18px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 18px;
}

.slider.round:before {
  border-radius: 50%;
} 

@media screen and (min-width: 960px) {
  #layout {
    grid-template-columns: 4fr 8fr;
    display: grid;
    max-width: 128rem;
    margin: 0px auto;
  }
  aside,
  main {
    padding: 8rem 10rem;
  }
  aside {
    text-align: center;
    padding: 8rem 0 8rem 0rem;
    width: 24rem;
    margin-left: 14rem;    
  }
  aside span {
    position: sticky;
    top: 9.2rem; /* 8rem + 1.2rem for the header */ 
    left: 0;
  }
  aside h1 {
    font-size: 3.2rem;
    font-weight: var(--weight-bold);
    line-height: 1.1;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
  }

  aside p {
    margin-top: 1.8rem;
    font-size: 1.6rem;
    color: var(--font-color-light);
  }
  #reviews-toggle{
    margin: 40px auto 0;
    justify-content: center;
    position: fixed;
    top: initial;
    right: initial;
    bottom: 20px;
    left: 20px;
  }
}

/* From WordPress's built-in styles, for the one file-download block. */
.wp-element-button {
  cursor: pointer;
}
.wp-block-file__button {
  background: #32373c;
  color: #fff;
  text-decoration: none;
}
