@font-face {
  font-family: 'MidnightSans';
  font-weight: 800;
  src:  url('/wp-content/themes/cloudbet2/assets/fonts/midnight-sans-st-48-heavy-pro.woff2') format('woff2'),
}


::selection {
    color: black;
    background: #f6871f;
}
::-moz-selection {
    color: black;
    background: #f6871f;
}
.otgs-development-site-front-end {
  display: none !important;
}

body {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3 {
    &.heading-color {
        strong, b {
            font-weight: 700;
            color: #FF6B2F;
        }
    }
}
p,li,
table {
    line-height: 1.6;
}

.font-midnight {
    font-family: 'MidnightSans', 'Inter', sans-serif;
    text-transform: uppercase;
    font-weight: 900;
}

#toc_container,
.bg-gradient-surface {
    background: linear-gradient(180deg, #211C25,#141114);
}
.bg-gradient-fade-up {
    background: linear-gradient(#141114, transparent);
}
.bg-gradient-fade-down {
    background: linear-gradient(transparent,#141114);
}

.container {
    width: 1240px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1em;
    padding-right: 1em;
}

.social svg {
    height: 1.8rem;
    width: 1.8rem;
}
header {
    @media (min-width: 1024px) {
        padding-top: 1.2em;
    }
    &.scrolled {
        padding-top: 0;
        background:rgb(26 22 29);
        box-shadow: 0 2px 30px rgb(0 0 0 / 0.5);
    }

    .search {
        input {
            border-radius: 0;
            background-color: transparent;
            color: white;
            border-bottom: 1px solid rgba(255,255,255,0.5);
            line-height: 1rem;
            height: 1.5rem;
            font-size: 1rem;
            outline:none;
            &:focus {
                border-bottom: 2px solid white;
            }
        }
        svg {
            width: 30px;
        }
        svg path {
            fill: white;
            width: 30px;
        }
    }
    @media (min-width: 1024px) {
        .dropdown {
            max-width: 250px;
            pointer-events: none;
            opacity: 0;
            transform: scale(0.95) translateY(-10px);
            transition: all 0.3s ease;
        }
        .dropdown-parent:hover .dropdown {
            pointer-events: auto;
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
    @media (max-width: 1023px) {
        .container {
            padding-left:0;
            padding-right:0;
        }
        .dropdown {
            display: none;
            &.active {
                display: block;
            }
        }
        .navbar {
            font-size: 1.3em;
            width: 100%;
            pointer-events: none;
            opacity: 0;
            height: 0;
            transform-origin: top;
            transform: translateY(-10px) scale(0.98);
            transition: transform 0.3s ease;
            &>li {
                width: 100%;
                &>a {
                    font-weight: bold;
                }
            }
           
            .main-nav > li > a {
                font-family: 'MidnightSans', 'Inter', sans-serif;
                text-transform: uppercase;
            }
        }
        .search {
            display: block;
            input {
                margin-top: 2em;
            }
        }
    }
}

header.nav-open {
    background: #141114;
    .navbar {
        padding: 1em;
        margin-top: 1em;
        pointer-events: auto;
        opacity: 1;
        height: auto;
        transform: translateY(0) scale(1);
    }
}



section {
    position: relative;
    z-index: 1;
    .show-on-scroll {
        transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    &.scrolled .show-on-scroll {
        opacity: 1;
        transform: translateY(0);
    }
}
#home-cta {
    background-size:auto 100%;
}
.academy-home #hero {
    min-height: 500px;
    padding-top: 100px;
}
@media (min-width: 1024px) {
    #home-cta {
        background-size:100% 100%;
    }
    .academy-course #hero{
        padding-top: 50px;
    }
   .academy-home #hero {
        height: 670px;
        padding-top: 50px;
    }
}


.thumb .img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    height: 100%;
}
.thumb.thumb-row .img-wrapper {
    img {
        min-height: 100%;
    }
}
.thumb .link-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}
.thumb img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
@media (min-width: 1024px) {
    .thumb .img-wrapper {
        min-height: 200px;
    }
    .thumb.thumb-row .img-wrapper {
        min-height: 330px;
    } 
}
@media (max-width: 1023px) {
    .thumb .img-wrapper {
        height: 120px;
    } 
    /* cards should appear on backgrounds */
    .academy-home {
        #modules, #courses {
            background-repeat: repeat;
            background-size: 200% auto;
        }
    }
    .thumb, .accordion-header {
        border-color: #26202B;
    }
}



.richtext {
    a {
        text-decoration: underline;
        &:hover {
            color:#CCA6FF;
        }
    }
    .wp-block-pullquote {
        padding: 1em 0;
    }
    p, ul, ol, blockquote, table, img {
        margin-bottom: 1.5em;
    }
    td {
        padding: 0.5em;
        border: 1px solid #333;
    }
    ol {
        padding-left: 1.2em;
        list-style-type: decimal;
    }
    ul {
        padding-left: 1.2em;
        list-style-type: disc;
    }
    li {
        margin-bottom: 0.3em;
    }
    h1, h2, h3, h4 {
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        margin-bottom: 0.5em;
        * {
            font-weight: 700;
        }
    }
    h1 {
        font-size: 2.1rem;
        color: #FF6B2F;
    }
    h2 {
        font-size: 1.9rem;
    }
    h3 {
        font-size: 1.3rem;
    }
    h4 {
        font-size: 1.2rem;
    }
    h5 {
        font-size: 1.1rem;
    }
    h5 {
        font-size: 1.20rem;
    }
    @media only screen and (max-width: 1023px) {
        h1 {
            font-size: 2.25rem;
        }
        h2 {
            font-size: 1.7rem;
        }
        h3 {
            font-size: 1.5rem;
        }
        h4 {
            font-size: 1.25rem;
        }
        h5 {
            font-size: 1.125rem;
        }
    }
    blockquote {
        color:#CCA6FF;
        padding-left: 1em;
        border-left: 2px solid;
        p {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
        }
        cite {
            font-size: 1rem;
        }
    }
}

#toc_container {
    width: 100%!important;

    a { text-decoration: none;}

    .toc_title {
        font-family: 'MidnightSans', 'Inter', sans-serif;
        text-transform: uppercase;
    }
    .toc_list>li>a {
        font-family: 'Inter', sans-serif;
        font-weight: bold;
    }
    .toc_title {
        font-size: 0.8rem;
    }
    ul {
        list-style:none!important;
        margin-left: 1em;
        margin-bottom: 0;
    }
    li {
        margin: 0.5em 0;
    }
}

.error-404 {
    min-height: 90dvh!important;
}

.academy-accordion {
    .accordion-content {
        height:0;
        pointer-events: none;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.6s ease;
    }

    &.active .accordion-header {
        border-color: #8d52da;
        .arrow {
            transform: rotate(180deg);
            transition: transform 0.3s ease;
        }
    }

    &.active .accordion-header {
        border-color: #8d52da;
    }
      
    &.active .accordion-content {
        height: auto;
        pointer-events: auto;
        opacity: 1;
        transform: translateY(0);
    }
}
@media  (max-width: 1023px) {
    .academy-accordion {
        .title {
            margin-bottom: 0.8em;
        }
        .btn {
            white-space: nowrap;
        }
        .accordion-header{
            .arrow {
                position: absolute;
                bottom: 1em;
                right: 1em;
            }
        }
        [data-read-id]{
            right: -3px;
            position: relative;
        }
    } 
}
#faq .academy-accordion {
    .accordion-header{
        .arrow {
            position: relative!important;
        }
    }
}

[data-read-id] {
    opacity: 0.3;
    .check {
        opacity: 0;
    }
    &.active {
        opacity: 1;
        path {
            opacity: 1!important;
            fill: #55A370;
        }
    }
}

/* CAROUSEL */
.glide a,
.glide p {
  white-space: pre-wrap;
}
button.glide__bullet {
    background-color: white;
    opacity: 0.5;
    border-radius: 50%;
    width: 0.8rem;
    height: 0.8rem;
    padding:0;
}
button.glide__bullet--active {
    opacity: 0.9;
}

/* QUIZ */
.ays-quiz-container {
    background: transparent!important;
    .ays-fs-title {
        font-family: 'MidnightSans', 'Inter', sans-serif;
        text-transform: uppercase;
    }
    
}

/* Calculators */
.calculator-wrapper {
    input[type="text"],
    input[type="number"],
    select {
        background-color: transparent;
        border-radius: 5px;
        border: 1px solid rgba(255,255,255,0.5);
        padding: 0.5rem 1rem;
        &:focus {
            border-color: #8d52da;
            outline: none;
        }
    }
    .field input[type="text"],
    .field input[type="number"],
    .field select {
        width: 100%;
        height: 3em;
        margin-top: 0.5em;
    }
    button {
        height: 3em;
    }
    input[type="radio"] + span {
        padding-right: 1em;
    }
    .calculator {
        width: 450px;
        max-width: 100%;
        margin: 1em auto;
        border: 1px solid #333;
        border-radius: 10px;
        padding: 2em 1em;
    }
    .result {
        margin-top: 1em;
        padding: 1em;
        border-radius: 10px;
        background-color: #202862;
        p {
            margin: 0;
        }
    }
}

footer {
    background: radial-gradient(
    80% 100% at 50% 92%,
    #202862,
    #141114,
    transparent
    );
}