/*
Theme Name: DerekWilcox
*/

body {
    background-color: #eeeeee;
    max-width: 100vw;
    overflow-x: hidden;
}

.noOverflow {
    overflow-x: hidden;
    position: relative;
}

.negDesktopMargin {
    margin-top: -10%;
}

/* NAVIGATION STYLES */

.menuLogo {
    width: 15%;
    position: relative;
    z-index: 2;
}

#menuToggle {
    display: block;
    position: absolute;
    top: 30px;
    right: 50px;

    z-index: 1;

    -webkit-user-select: none;
    user-select: none;
}

#menuToggle input {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -7px;
    left: -5px;

    cursor: pointer;

    opacity: 0;
    /* hide this */
    z-index: 2;
    /* and place it over the hamburger */

    -webkit-touch-callout: none;
}

/*
 * Just a quick hamburger
 */
#menuToggle span {
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;

    background: #c41016;
    border-radius: 3px;

    z-index: 1;

    transform-origin: 4px 0px;

    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
        background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
        opacity 0.55s ease;
}

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

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

/* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
#menuToggle input:checked~span {
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
    background: #232323;
}

/*
 * But let's hide the middle one.
 */
#menuToggle input:checked~span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * Ohyeah and the last one should go the other direction
 */
#menuToggle input:checked~span:nth-last-child(2) {
    opacity: 1;
    transform: rotate(-45deg) translate(0, -1px);
}

/*
 * Make this absolute positioned
 * at the top left of the screen
 */
#menu {
    position: absolute;
    width: 500px;
    margin: -100px 0 0 0;
    padding: 50px;
    padding-top: 125px;
    right: -100px;

    background: #ededed;
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    /* to stop flickering of text in safari */

    transform-origin: 0% 0%;
    transform: translate(100%, 0);

    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

#menu li {
    padding: 0;
    font-size: 22px;
}

/*
 * And let's fade it in from the left
 */
#menuToggle input:checked~ul {
    transform: none;
    opacity: 1;
}

@media screen and (max-width: 768px) {
    #menu {
            position: absolute;
            width: 500px;
            margin: -100px 0 0 0;
            padding: 50px;
            padding-top: 125px;
            right: -100px;
    
            background: #ededed;
            list-style-type: none;
            -webkit-font-smoothing: antialiased;
            /* to stop flickering of text in safari */
    
            transform-origin: 0% 0%;
            transform: translate(100%, 0);
    
            transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        }

        #menuToggle {
            display: block;
            position: absolute;
            top: 50px;
            right: 50px;

            z-index: 1;

            -webkit-user-select: none;
            user-select: none;
        }
}

.pageLink {
    display: inline-flex;
    color: #c41016;
    font-weight: 900;
    transition: .3s;
}

.pageLink:hover {
    letter-spacing: 1px;
    transition: .3s;
}

.pageLinkArrow {
    display: inline-flex;
    color: #c41016;
}

a {
    text-decoration: none;
}

.menuItems {
    display: flex;
    justify-content: right;
}

.navOverlay {
    position: fixed;
    background-color: #fff;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    visibility: hidden;
    transition: .3s;
}

.active {
    visibility: visible !important;
    transition: .3s;
}

.navbar {
  width: 100%;
  box-shadow: 0 1px 4px rgb(146 161 176 / 15%);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 62px;
}

.navbar .menu-items {
  display: flex;
}

.navbar .nav-container li {
  list-style: none;
}

.navbar .nav-container a {
  text-decoration: none;
  color: #0e2431;
  font-weight: 500;
  font-size: 1.2rem;
  padding: 0.7rem;
}

.navbar .nav-container a:hover{
    font-weight: bolder;
}

.nav-container {
  display: block;
  position: relative;
  height: 60px;
}

.nav-container .checkbox {
  position: absolute;
  display: block;
  height: 32px;
  width: 32px;
  top: 20px;
  left: 20px;
  z-index: 5;
  opacity: 0;
  cursor: pointer;
}

.nav-container .hamburger-lines {
  display: block;
  height: 26px;
  width: 32px;
  position: absolute;
  top: 17px;
  left: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-container .hamburger-lines .line {
  display: block;
  height: 4px;
  width: 100%;
  border-radius: 10px;
  background: #ffffff;
}

.nav-container .hamburger-lines .line1 {
  transform-origin: 0% 0%;
  transition: transform 0.4s ease-in-out;
}

.nav-container .hamburger-lines .line2 {
  transition: transform 0.2s ease-in-out;
}

.nav-container .hamburger-lines .line3 {
  transform-origin: 0% 100%;
  transition: transform 0.4s ease-in-out;
}

.navbar .menu-items {
  padding-top: 120px;
  box-shadow: inset 0 0 2000px rgba(255, 255, 255, .5);
  height: 100vh;
  width: 100%;
  transform: translate(-150%);
  display: flex;
  flex-direction: column;
  margin-left: -40px;
  padding-left: 50px;
  transition: transform 0.5s ease-in-out;
  text-align: center;
}

.navbar .menu-items li {
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.logo {
  position: absolute;
  top: 5px;
  right: 15px;
  font-size: 1.2rem;
  color: #0e2431;
}

.nav-container input[type="checkbox"]:checked ~ .menu-items {
  transform: translateX(0);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
  transform: rotate(45deg);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
  transform: scaleY(0);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
  transform: rotate(-45deg);
}

.nav-container input[type="checkbox"]:checked ~ .logo{
  display: none;
}

/*FONTS*/
@import url('https://fonts.googleapis.com/css2?family=Khand:wght@300;400;500;600;700&display=swap');
@font-face {font-family: Creation; src: url('/wp-content/themes/DerekWilcox/assets/fonts/Creation.otf');}
@font-face {font-family: Khand; src: url('/wp-content/themes/DerekWilcox/assets/fonts/Khand-Regular.ttf');}
@font-face {font-family: Khand-bold; src: url('/wp-content/themes/DerekWilcox/assets/fonts/Khand-Bold.ttf');}

/*TEXT*/
p {
    font-family: 'Khand', sans-serif;
}

h1, h2, h3, h4, h5 {
    font-family: 'Khand-bold', sans-serif;
}

h2 {
    font-weight: 600;
}

.blackText {
    color: #0f1013;
}

.whiteText {
    color: #fff;
}

.heroTitle {
    font-size: calc(3.5rem + .9vw) !important;
}

.p-6 {
    padding: 6rem;
}

.signature {
    font-family: Creation;
}

.programsText {
    font-family: 'Khand', sans-serif;
    text-transform: uppercase;
    font-size: 3rem;
    font-weight: 300;
    line-height: 3rem;
    transition: .3s;
}

/*BUTTONS*/
.btn-primary {
font-family: 'Khand', sans-serif;
background-color: #ec1c23;
border-radius: 50px;
border-color: #ec1c23;
font-size: 3rem;
font-weight: 300;
text-transform: uppercase;
padding: 3px 100px;
letter-spacing: .2rem;
line-height: 3rem;
transition: .3s;
}

.btn-primary:hover {
    background-color: #c41016;
    border-color: #c41016;
    letter-spacing: .25rem;
    transition: .3s;
}

.mobileShow {
    display: none;
}

.footerHeading {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.footerLinks {
    font-size: 1rem;
    font-weight: 300;
    text-transform: capitalize;
}

.footerLegal {
    font-size: 1rem;
    font-weight: 300;
    text-transform: capitalize;
}

/* MOBILE */

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

    .mobileShow {
            display: grid;
    }

    .desktopShow {
        display: none !important;
    }

    .heroTitle {
        font-size: 2rem !important;
    }

    .btn-primary {
        font-size: 1.5rem !important;
        padding: 3px 20px;
    }

    .programsText {
        font-size: 1.8rem !important;
    }

    .negDesktopMargin {
        margin-top: 0px;
    }
}