/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Custom Styles */
* {
  box-sizing: border-box;
}

html {
  background-color: rgb(50, 56, 68);
}

body * {
  color: white;
  font-family: "Roboto", Sans-serif;
  font-weight: 300;
  text-align: center;
}

a {
  text-decoration: none;
}

/* Header Styling */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  background-image: url("https://certaintyinc.wpengine.com/wp-content/uploads/2019/09/latest_news_slider_bg.jpg");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 184px;
  padding: 20px;
}

header img {
  max-width: 100%;
}

nav {
  margin-bottom: 20px;
}

nav ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  max-width: 1120px;
  margin: auto;
  font-size: 22px;
  padding: 10px;
}

nav ul li a {
  font-weight: 400;
  padding: 13px 20px;
}

nav ul li a:hover {
  color: rgb(97, 206, 112);
  border-bottom: 3px solid rgb(97, 206, 112);
}

.active {
  color: rgb(97, 206, 112);
  border-bottom: 3px solid rgb(97, 206, 112);
}

/* Main Content Styling */

.section-background-image {
  height: 330px;
  background-attachment: fixed;
  background-image: url("https://holdmyticket-res.cloudinary.com/image/upload/f_auto/v1672359531/Certainty-Theater-Carlsbad-Home-slider-02.jpg_hhcgu5.png");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: contain;
}

.title-section {
  height: 550px;
  background-size: cover;
  display: flex;
  background-position: center;
}

.title-section-shows {
  background-image: url("https://holdmyticket-res.cloudinary.com/image/upload/f_auto/v1672359626/marshall-hypno-line_dkvs8e.jpg");
}

.title-section-theater-rental {
  background-image: url("https://holdmyticket-res.cloudinary.com/image/upload/f_auto/v1672787516/Certainty-Theater-Carlsbad-Home-slider_w2j648.jpg");
}

.black-underlay {
  width: fit-content;
  margin: auto;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 30px 200px;
}

.background-image {
  background-image: url("https://certaintyinc.wpengine.com/wp-content/uploads/2019/09/latest_news_slider_bg.jpg");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}

main {
  max-width: 1120px;
  margin: auto;
  padding: 20px 10px 70px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 22px 0;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 24px;
}

p {
  font-size: 22px;
  line-height: 40px;
}

iframe {
  width: 100%;
  margin-bottom: 20px;
}

.about-video {
  max-width: 710px;
  max-height: 400px;
}

.map {
  height: 300px;
}

figure {
  height: 0;
  padding-bottom: 56.25%;
  position: relative;
  width: 100%;
}

figure > iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

.spacing-top {
  margin-top: 4rem;
}

.minor-spacing-top {
  margin-top: 1rem;
}

.big-title {
  font-size: 64px;
  font-weight: 400;
}

.big-text {
  font-size: 32px;
  font-weight: 400;
}

small {
  color: #cdcdcd;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 19px;
  font-weight: 100;
  line-height: 1.2em;
}

.section-tagline {
  margin: 70px 0 0 0;
  background-color: #6d01af;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-tagline h3 {
  font-size: 40px;
  font-weight: 400;
}

.shows-section {
  width: 100%;
  display: flex;
  margin-top: 50px;
  gap: 1em;
}

.shows-section > * {
  max-width: 50%;
  height: fit-content;
}

.text-section {
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.text-section * {
  text-align: left;
}

.text-section h2,
.text-section span {
  font-family: "Raleway", sans-serif;
  font-size: 26px;
  font-weight: 300;
}

.text-section span {
  margin-bottom: 30px;
}

.text-section p,
.text-section ul li {
  font-size: 17px;
  line-height: 1.3em;
  margin-bottom: 20px;
  font-family: "Raleway", sans-serif;
}

.text-section p {
  font-weight: 100;
}

.text-section ul li {
  font-weight: 200;
  display: flex;
}

i {
  background-color: #1a80b6;
  padding: 10px;
  font-size: 14px;
  border-radius: 50%;
  margin-right: 14px;
  height: 100%;
}

.main-image {
  transition-duration: 0.3s;
}

.main-image:hover {
  transform: scale(1.1);
}

.picture-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.picture-grid a {
  width: 30%;
  height: 120px;
  margin: 3px;
  -webkit-filter: brightness(100%);
}

.theater-rental-picture-grid a {
  width: 48%;
}

.theater-picture-grid {
  margin-top: 20px;
}

.theater-picture-grid a {
  padding: 0;
  margin: 0;
  width: 33.3%;
  height: 250px;
}

.picture-grid a img {
  height: 100%;
  width: 100%;
  margin: auto;
  object-fit: cover;
  overflow: hidden;
}

.picture-grid a:hover {
  -webkit-filter: brightness(50%);
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.theater-rental-main {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.theater-rental-main p {
  padding: 0 25px;
  border-left: 2px solid #0073aa;
}

.theater-rental-main > * {
  max-width: 50%;
}

.about-main,
.contact-main {
  background-color: white;
  max-width: 100%;
  padding: 20px 2.5% 40px 2.5%;
}

.about-main *,
.contact-main * {
  font-family: "Raleway", Sans-serif;
  color: black;
}

.about-main h1 {
  font-size: 41px;
  padding-bottom: 20px;
}

.about-section {
  display: flex;
  gap: 2em;
}

.email {
  color: #00ccff;
}

.about-video-container {
  width: 90%;
  max-width: 1120px;
  max-height: 450px;
  border-bottom: 1px solid #111111;
  padding-bottom: 10px;
}

.about-video-container figure {
  max-width: 710px;
  margin: auto;
}

.black-text {
  color: #000000;
}

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

.about-marshall-text {
  font-weight: 400 !important;
  font-size: 15px !important;
  line-height: 1.8em !important;
}

.about-marshall {
  max-width: 1120px;
}

.quote {
  height: 200px;
  background-color: #eaeaea;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 20px;
}

.quote * {
  font-size: 33px;
}

.person {
  margin-left: auto;
}

.contact-main {
  padding-top: 50px;
  padding-bottom: 75px;
}

.contact-container {
  max-width: 1140px;
  width: 100%;
}

form {
  width: 100%;
}

.form-info,
textarea {
  border: 1px solid #e5e5e5;
  font-size: 24px;
}

.form-info {
  height: 50px;
  width: 30%;
}

.middle {
  margin: 0 0.75%;
}

textarea {
  width: 92.5%;
  height: 100px;
  display: block;
  margin: 20px auto;
  padding-top: 30px;
}

.send {
  color: white;
  background-color: black;
  width: 92.5%;
  font-size: 17px;
  height: 40px;
}

.site-info {
  display: flex;
  background-image: url("https://holdmyticket-res.cloudinary.com/image/upload/f_auto/v1672871642/carlsbad-village_pydw5c.jpg");
  background-size: cover;
  background-position: center;
}

.site-info div {
  height: 350px;
  width: 33.3%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-info div h3,
.number {
  font-size: 35px;
}

.site-info div.one {
  background-color: rgba(181, 181, 181, 0.69);
}

.site-info div.two {
  background-color: rgba(96, 131, 201, 0.73);
}

.site-info div.three {
  background-color: rgba(99, 99, 99, 0.7);
}

#touch {
  display: none;
}

.contact-socials {
  height: 200px;
  background-color: white;
}

.social-icons.contact-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
}

.social-icons.contact-socials a {
  font-size: 46px;
  color: white;
  border-radius: 50%;
  padding: 25px 10px;
  width: 96px;
  height: 96px;
}

.fa-facebook {
  transition-duration: 0.25s;
  background-color: #3b5998;
}

.fa-facebook:hover {
  background-color: #4f69a1;
}

.fa-twitter {
  transition-duration: 0.25s;
  background-color: #1da1f2;
}

.fa-twitter:hover {
  background-color: #38aef8;
}

.fa-instagram {
  transition-duration: 0.25s;
  background-color: #3f729b;
}

.fa-instagram:hover {
  background-color: #528ec0;
}

.last-image {
  margin: auto !important;
}

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

#top-arrow {
  opacity: 70%;
  display: none;
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
}

#top-arrow:hover {
  opacity: 100%;
}

@media screen and (max-width: 1600px) {
  .section-background-image {
    height: 250px;
  }
}

@media screen and (max-width: 1350px) {
  .section-background-image {
    height: 200px;
  }
}

@media screen and (max-width: 1200px) {
  .section-background-image {
    height: 150px;
  }
}

@media screen and (max-width: 1080px) {
  .section-background-image {
    height: 250px;
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
  }

  .title-section {
    height: 300px;
  }

  .black-underlay {
    padding: 3% 20%;
    font-size: clamp(20px, 4vw, 64px);
  }

  .text-section h2,
  .text-section span {
    font-size: 20px;
  }

  .text-section p {
    font-size: 13px;
  }

  .text-section ul li {
    font-size: 17px;
  }

  .picture-grid a {
    width: 48%;
  }

  .theater-picture-grid a {
    width: 50%;
    height: 250px;
  }

  .site-info div {
    height: 200px;
  }

  .site-info div h3,
  .number {
    font-size: 23px;
  }
  .social-icons.contact-socials a {
    font-size: 30px;
    padding: 15px;
    width: 60px;
    height: 60px;
  }

  h1.title {
    font-size: 24px;
  }

  .big-title {
    font-size: 20px;
  }

  .big-text {
    font-size: 16px;
    line-height: 1;
  }

  .section-tagline {
    height: 100px;
  }

  .section-tagline h3 {
    font-size: 16px;
  }

  .contact-main h1 {
    font-size: 16px;
  }

  .form-info,
  textarea {
    font-size: 16px;
  }

  .form-info {
    width: 92.5%;
  }

  .middle {
    margin: 20px 0.75%;
  }

  textarea {
    width: 92.5%;
    height: 100px;
    display: block;
    margin: 20px auto;
    padding-top: 30px;
  }

  .send {
    font-size: 15px;
  }

  /* mobile nav */

  #menuToggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
    margin-top: 20px;
  }

  #menuToggle input {
    display: flex;
    width: 40px;
    height: 32px;
    position: absolute;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
  }

  #menuToggle span {
    display: flex;
    width: 29px;
    height: 2px;
    margin-bottom: 5px;
    position: relative;
    background: rgb(124, 129, 134);
    border-radius: 3px;
    z-index: 1;
    transform-origin: 5px 0px;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
      background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
  }

  #menuToggle span:first-child {
    transform-origin: 0% 0%;
  }

  #menuToggle span:nth-last-child(2) {
    transform-origin: 0% 100%;
  }

  #menuToggle input:checked ~ span {
    opacity: 1;
    transform: rotate(45deg) translate(-3px, -1px);
  }
  #menuToggle input:checked ~ span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
  }

  #menuToggle input:checked ~ span:nth-last-child(2) {
    transform: rotate(-45deg) translate(0, -1px);
  }

  .slide {
    width: 100vw;
    height: 0px;
    overflow: hidden;
    text-align: center;
    transition: height 0.4s ease;
  }

  .slide li {
    display: none;
    padding: 10px;
    width: 90%;
    transition-duration: 0.25s;
  }

  .slide li a {
    color: rgba(0, 0, 0, 0);
  }

  #touch {
    opacity: 0;
    height: 0px;
  }

  #touch:checked ~ .slide {
    height: 300px;
  }

  #touch:checked ~ .slide li {
    background-color: white;
    display: inline;
  }

  #touch:checked ~ .slide li a {
    color: black;
    font-size: 13px;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1120px;
    margin: auto;
    font-size: 22px;
    padding: 10px;
  }

  nav ul li a {
    font-weight: 400;
    padding: 13px 20px;
  }

  nav ul li a:hover {
    color: #55595c !important;
    border-bottom: none;
  }

  .active {
    color: #55595c;
    border-bottom: none;
  }

  .slide li:hover {
    color: black;
    background-color: #55595c !important;
  }

  .slide li a:hover {
    color: white !important;
  }

  .active {
    color: white !important;
  }

  .active-mobile {
    background-color: #55595c !important;
  }
}

@media screen and (max-width: 767px) {
  .shows-section,
  .theater-rental-main {
    flex-direction: column;
  }
  .shows-section > *,
  .theater-rental-main > * {
    max-width: 100%;
    margin: auto;
  }

  .shows-section > img,
  .theater-rental-main > img {
    max-width: 90%;
  }

  .text-section ul {
    margin: auto;
  }

  .text-section ul li {
    flex-direction: column;
    text-align: center;
  }

  .text-section ul li i {
    width: fit-content;
    margin: auto;
  }

  .odd {
    flex-direction: column-reverse;
  }

  .picture-grid a {
    width: 100%;
    height: 500px;
  }

  .picture-grid a img {
    width: 100%;
  }

  .theater-picture-grid a {
    width: 50%;
    height: 250px;
  }

  .about-section {
    flex-direction: column;
  }

  .image-section {
    padding-bottom: 50px;
  }

  .about-marshall h1 {
    font-size: 24px;
    text-align: center;
  }

  .quote * {
    font-size: 24px;
  }

  .person {
    margin: 0 auto;
  }

  .site-info {
    flex-direction: column;
  }

  .site-info div {
    width: 100%;
  }

  .site-info div h3,
  .number {
    font-size: 23px;
  }
}

@media screen and (max-width: 480px) {
  .theater-picture-grid a {
    width: 100%;
    height: fit-content;
  }

  .theater-picture-grid a img {
    object-fit: contain;
  }
}

/* Footer Styling */

footer {
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  height: 200px;
  gap: 8px;
  background-color: rgb(38, 42, 50);
}

footer small {
  font-size: 13px;
  color: #9d9d9d;
}

footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-top: 20px;
}

footer .social-icons a {
  font-size: 20px;
  color: #818a91;
  background-color: #2f3032;
  border-radius: 50%;
  padding: 10px;
  width: 40px;
}

/* Image load animation */
.animate {
  animation: fadeInAnimation ease 3s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}
@keyframes fadeInAnimation {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
