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

@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'),
}

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

:root {
  --dark: #151515;
  --white: white;
  --grey-4: #e6e6e6;
  --grey-3: #94A3B8;
  --grey-2: #64748b;
  --grey-1: #383838;
  --grey: #2a2c3f;

  --cb-green: #2ec291;
  --cb-green-dark: #1c996f;
  --cb-orange: #f6871f;
  --cb-orange-dark: #d67800;
  --cb-blue: #009dff;
  --cb-blue-dark: #008eaa;
  --cb-red: #ff005c;
  --cb-red-dark: #cf0a30;
  --cb-purple: #6e5cad;
  --cb-purple-dark: #170d40;
  --cb-icy-blue: #61d9e3;

  --cb2-primary: #211C25;
  --cb2-on-primary: #000000;
  --cb2-on-primary2: #334155;
  --cb2-purple: #8B5CF6;
  --cb2-purple-light: #CCA6FF;
  --cb2-purple-dark: #300931;
  --cb2-yellow: #DFFD51;

  --round: 1em;
  --round-sm: 0.3em;

  --cardshadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  --cardshadow-hover: 0 3px 12px rgba(0, 0, 0, 0.2);
  --navshadow: 0 8px 10px rgba(0, 0, 0, 0.1);

  --perrow: 3;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 1.4em;
  color: var(--cb2-on-primary2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--cb2-purple-light);
}

::-moz-selection {
  background: var(--cb2-purple-light);
}

hr {
  border-color: var(--grey-3);
  margin: 2rem 0;
}

p,
li,
table {
  margin: 0 0 1rem;
  line-height: 1.6em;
}

a {
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--cb2-on-primary2);
}

a:hover {
  color: var(--cb2-purple);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.05em;
}

h1 {
  font-size: 3.4rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.6rem;
}

h4 {
  font-size: 1.3rem;
}

h5 {
  font-size: 1.2rem;
}

h6 {
  font-size: 1.1rem;
}

@media only screen and (max-width: 767px) {
  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  h4 {
    font-size: 1.2rem;
  }

  h5 {
    font-size: 1.15rem;
  }

  h6 {
    font-size: 1.1rem;
  }
}

button,
input[type="submit"],
.button {
  font-weight: bold;
  display: inline-block;
  padding: 0.5em 2em;
  height: 3em;
  border-radius: var(--round);
  color: var(--cb2-on-primary);
  background-color: var(--cb2-yellow);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
}

button:hover,
input[type="submit"]:hover,
.button:hover {
  color: var(--cb2-on-primary);
  background-color: var(--cb2-purple);
}

input {
  display: inline-block;
  height: 3em;
  outline: none;
}

input[type="text"],
input[type="email"],
input[type="search"] {
  padding-left: 1em;
}

input,
textarea {
  border: 1px solid var(--grey-3);
}

input:focus,
textarea:focus {
  border-color: var(--grey-2);
}

.callout-casino-button.button {
  background-color: var(--cb-blue);
  text-align: center;
}

.callout-casino-button.button:hover {
  background-color: var(--cb-blue-dark);
}

button.nav-button {
  cursor: pointer;
  padding: 0;
  height: 1em;
  background: transparent;
}
button.nav-button:hover {
  opacity: 1;
}

button.nav-button svg path {
  fill: var(--grey-2);
}

button.nav-button:hover svg path {
  fill: var(--cb2-purple);
}

button.nav-button svg {
  width: 24px;
  height: 24px;
}

.container,
main {
  width: 1280px;
  padding: 1em;
  margin: 0 auto;
  max-width: 100%;
}

main figure,
main img,
main video {
  height: auto;
  max-width: 100%;
}

main iframe {
  max-width: 100%;
}

main pre {
  max-width: 100%;
  overflow: hidden;
}

.text-label {
  font-size: 0.8rem;
}

.text-light {
  color: var(--grey-2);
}

/* Header */

li.menu-item {
  margin-bottom: 0;
}

#blog-header {
  z-index: 5;
  position: fixed;
  width: 100%;
  left: 0;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--navshadow);
}

#blog-header .container,
#blog-header .main-navigation {
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#blog-header .site-branding img {
  height: 15px;
}

#blog-header ul#blog-menu-main {
  display: flex;
  gap: 1.5em;
  align-items: center;
  list-style: none;
  text-align: center;
  padding: 0;
}

#blog-menu-main>li a {
  position: relative;
}

#blog-header [aria-current] {
  color: var(--grey);
}

#blog-menu-main [aria-current],
#blog-menu-main .post-active{
  color: var(--cb2-purple);
}


@media only screen and (min-width: 1200px) {
  #blog-header ul#blog-menu-main{
    width: 700px;
    max-width: 100%;
  }
  #blog-header ul#blog-menu-main li.wpml-ls-item {
    margin-left: auto;
  }

}

@media only screen and (min-width: 768px) {
  #site-navigation {
    margin-left: auto;
  }
  #blog-header ul#blog-menu-main ul.sub-menu {
    display: none;
    padding: 0.5em 1em;
    position: absolute;
    z-index: 3;
    margin-top: 1em;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--navshadow);
    list-style: none;
  }
  #blog-header ul#blog-menu-main .menu-item-has-children:hover ul.sub-menu {
    display: block!important;
  }

  #blog-header ul#blog-menu-main ul.sub-menu li {
    margin: 1em 0;
    display: flex;
    align-items: center;
  }

  ul#blog-menu-main .wpml-ls-current-language>a {
    display: none;
  }

  #blog-header .wpml-ls-current-language ul.sub-menu {
    display: none;
  }

  #blog-header .wpml-ls-current-language:hover ul.sub-menu {
    display: block;
  }

  #blog-header ul#blog-menu-main>li {
    font-weight: bold;
    text-align: center;
    padding: 1.5em 0;
    margin: 0;
  }

  #blog-search button {
    padding: 1em;
    margin-right: 1em;
  }

  #blog-header .blog-search-form {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--navshadow);
    position: absolute;
    left: 0;
    width: 100%;
    height: 5em;
    bottom: -5em;
    z-index: 2;
    display: none;
  }

  #blog-header .blog-search-form.active {
    display: block;
  }

  #blog-header .blog-search-form .search-form {
    justify-content: center;
  }

  #blog-header .blog-search-form .search-form input {
    width: 40vw;
  }
}

#blog-header ul#blog-menu-main>li.disabled button.nav-button {
  cursor: default;
  opacity: 0.2 !important;
}

#blog-header .wpml-ls-flag {
  object-fit: cover;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

#blog-header .wpml-ls-native {
    font-weight: normal;
}
#blog-header .wpml-ls-native img {
    border: 1px solid;
}
ul .wpml-ls-menu-item a:hover span,
#blog-header li > .wpml-ls-native {
    color: var(--cb2-purple);
}
#blog-header a .wpml-ls-native {
    color: var(--cb2-on-primary2)
}
#blog-header li > .wpml-ls-flag {
    border: 1px solid  var(--cb2-purple);
}


body {
  padding-top: 66px;
  /* padding-top: 100px; */
}

.otgs-development-site-front-end {
  display: none !important;
}

@media only screen and (min-width: 767px) {
  body.admin-bar #blog-header {
    top: 30px;
  }
}

#blog-header .menu-toggle {
  display: none;
  margin-left: 1em;
}

/* smaller desktop */
@media only screen and (max-width: 1024px) and (min-width: 768px) {
  #blog-header .site-branding img {
    height: 16px;
  }

  #blog-header ul#blog-menu-main>li {
    font-size: 0.8rem;
    padding: 1.5em 0.5em;
  }

  #blog-header .callout-casino-button.button {
    padding: 0.5em 1em;
  }
}

/* Mobile header */
@media only screen and (max-width: 767px) {
  body {
    padding-top: 50px;
  }

  #blog-header {
    padding: 0.5em 1em;
  }

  #blog-header .site-branding img {
    height: auto;
    width: 70%;
  }

  #blog-header .container,
  #blog-header .main-navigation {
    padding: 0;
  }

  #blog-header .menu-toggle,
  .site-branding {
    display: block;
    position: relative;
    z-index: 2;
  }

  #blog-header .callout-casino-button {
    position: relative;
    z-index: 2;
    white-space: nowrap;
  }

  #blog-header .main-navigation {
    display: block;
    padding: 6rem 1em 1em;
    position: fixed;
    height: 100vh;
    width: 100%;
    overflow: auto;
    left: 0;
    top: 0;
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.6s ease-in-out;
  }

  #blog-header.menu-open .main-navigation {
    transform: translateY(0%);
    opacity: 1;
  }

  #blog-header ul#blog-menu-main {
    display: block;
  }

  #blog-header .wpml-ls-item .nav-button,
  #blog-search .nav-button {
    display: none;
  }

  #blog-header .wpml-ls-current-language ul.sub-menu {
    padding: 2em 0 1em;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    justify-content: center;
    border-top: 1px solid var(--grey-3);
  }

  #blog-header .wpml-ls-current-language ul.sub-menu li {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    width: 33%;
    margin: 0;
  }

  #blog-header .wpml-ls-native,
  #blog-header .wpml-ls-current-language ul.sub-menu a * {
    font-size: 1rem;
    font-weight: normal;
    color: var(--cb2-on-primary2);
  }


  nav #blog-search,
  nav #blog-search .search-form {
    width: 100%;
  }

  #blog-header ul#blog-menu-main>li {
    margin: 0 0 2rem;
  }

  #blog-search label {
    width: 100%;
  }

  #blog-menu-main .menu-item>a {
    font-size: 2em;
    font-weight: bold;
  }

  #blog-menu-main ul.sub-menu {
    padding: 1em 0;
    list-style: none;
  }
  #blog-menu-main ul.sub-menu a{
    font-size: 1em;
  }

  .menu-toggle,
  .menu-icon {
    width: 30px;
    min-height: 35px;
  }

  .menu-icon .line {
    width: 30px;
    height: 2px;
    background-color: var(--grey-1);
    display: block;
    margin: 8px auto;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
  }

  .menu-icon:hover {
    cursor: pointer;
  }

  #blog-header.menu-open .menu-icon .line:nth-child(1) {
    -webkit-transform: translateY(10px);
    -ms-transform: translateY(10px);
    -o-transform: translateY(10px);
    transform: translateY(10px);
  }

  #blog-header.menu-open .menu-icon .line:nth-child(3) {
    -webkit-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    -o-transform: translateY(-10px);
    transform: translateY(-10px);
  }
}

/* footer */
.footer-item-wrapper li {
  line-height: 1em;
}
.footer-item-wrapper a {
  line-height: 1.2em;
  display: inline-block ;
  margin-bottom: 0.5em;
}
.footer-social-item svg {
    width: 36px; height: 36px;
}
@media only screen and (max-width: 767px) {
.site-footer .container>div {
  width: 300px;
  max-width: 100%;
}
}

/* Landing Pages */
.page-title {
  font-size: 1.5rem;
  font-weight: normal;
  margin-bottom: 2rem;
}

.blog-thumb {
  transition: all 0.3s;
  /* box-shadow: var(--cardshadow); */
  border-radius: var(--round);
  overflow: hidden;
  position: relative;
}

.blog-thumb .blog-thumb-title {
  font-weight: bold;
  display: block;
  font-size: 1.1rem;
  line-height: 1.2em;
  margin: 0.5em 0;
  color: var(--dark);
}

.blog-thumb:hover {
  box-shadow: var(--cardshadow-hover);
}

.blog-thumb-img {
  height: 160px;
  width: 100%;
}

.blog-thumb-img img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.blog-thumb .placeholder {
  object-fit: contain;
  opacity: 0.2;
}
/* 
.blog-thumb-caption {
  padding: 0.5rem 1rem 2rem;
}

.blog-thumb-caption p {
  color: var(--grey-2);
} */

.blog-thumb-category {
  box-shadow: var(--cardshadow);
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  border-radius: 2em;
  padding: 0.5rem;
  background-color: var(--cb2-primary);
}

.blog-thumb-category a {
  color: var(--cb2-purple-light);
  transition: all 0.2s;
}

@media only screen and (min-width: 768px) {
  .blog-thumb.blog-thumb-row {
    display: flex;
    grid-column: 1 / span 3;
    max-height: 200px;
  }

  .blog-thumb.blog-thumb-row .blog-thumb-img {
    width: 40%;
    height: 200px;
    min-width: 40%;
  }

  .blog-thumb:hover {
    transform: translateY(-2px);
  }
}

/* Grid */

.pagination {
  text-align: center;
  padding: 2em 0;
}
.pagination .nav-links {
  display: flex;
  gap: 0.8em;
  align-items: center;
  justify-content: center;
}
.pagination .nav-links .prev {
  transform: rotate(180deg);
}
.pagination .nav-links span {
  line-height: 1.3em;
  font-weight: bold;
}
.pagination .nav-links svg:hover rect {
  fill: var(--cb2-purple-light);
}

.blog-grid-title {
  margin: 1rem 0 3rem;
}

@media only screen and (min-width: 768px) {
  .blog-grid .pagination .nav-links>* {
    padding: 0 0.5em;
  }

}

@media only screen and (max-width: 767px) {
  .blog-thumb {
    margin-bottom: 1em;
  }

  .blog-thumb-img {
    height: 100px;
  }

  .blog-grid.featured .blog-thumb:first-child .blog-thumb-img {
    height: 200px;
  }
}

/* grid columns */
@media only screen and (min-width: 1024px) {

  .blog-grid {
    display: grid;
    gap: 2rem;
    /* grid-template-columns: repeat(var(--perrow), 1fr); */
  } 

  .blog-grid .pagination {
    grid-column: 1 / span var(--perrow);
  }

  /* Home featured post grid */
  .blog-grid.featured {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .blog-grid.featured .blog-thumb:first-child {
    grid-row: 1 / span 2;
  }

  .blog-grid.featured .blog-thumb:first-child .blog-thumb-title {
    font-size: 2.4rem;
  }

  .blog-grid.featured .blog-thumb:first-child .blog-thumb-img {
    height: 420px;
    max-height: 80vh;
  }
}

@media only screen and (max-width: 1023px) and (min-width:450px) {
  .blog-grid.featured {
    display: grid;
    gap: 1em;
    grid-template-columns: 1fr 1fr;
  }

  .blog-grid.featured .blog-thumb:first-child {
    grid-column: 1 / span 2;
  }
}

ul.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  line-height: 1;
  align-items: center;
  padding: 0;
  list-style: none;
}

ul.breadcrumb li {
  display: flex;
  margin: 0;
  align-items: center;
}

ul.breadcrumb li::after {
  display: block;
  content: ">";
  padding: 0 0.5em;
}

ul.breadcrumb li:last-child::after {
  display: none;
}

/* category, 404, etc */
.no-results {
  margin-top: 2rem;
  margin-bottom: 1rem;
  grid-column: 1 / span 3;
}

/* post detail */

article.post .post-thumbnail img {
  width: 100%;
  border-radius: var(--round);
}

/* 
article.post .post-thumbnail {
  margin-bottom: 2rem;
}


article.post .entry-header h4 {
  margin-bottom: 1rem;
} */

/* table of contents from plugin */
#toc_container {
  margin-bottom: 4rem;
}
#toc_container a {
  text-decoration: none;
}

#toc_container ul {
  list-style: disc;
  padding-left: 1.5em;
}

#toc_container ul li {
  margin-bottom: 0;
}

#toc_container ul ul {
  margin: 0 0 0.5em 0;
}

#toc_container .toc_title {
  font-weight: bold;
  font-size: 1.3rem;
}

article.post .entry-content {
  font-size: 1.2em;
  color: #515151;
  /* width: 80ch; */
  max-width: 100%;
}

.entry-title,
.toc_title,
article.post .entry-content h1,
article.post .entry-content h2,
article.post .entry-content h3 {
  color: var(--dark);
}

article.post .entry-content a {
  color: var(--cb2-purple-dark);
  text-decoration: underline;
}
article.post .entry-content a:hover {
  color: var(--cb2-purple);
}

article.post .entry-content ul,
article.post .entry-content h1,
article.post .entry-content h2,
article.post .entry-content h3,
article.post .entry-content h4,
article.post .entry-content h5,
article.post figcaption,
article.post figure img {
  margin-top: 1em;
  margin-bottom: 1.3rem;
}

article.post figcaption {
  font-size: 0.9em;
  color: var(--grey-2);
}

article.post .entry-content ul li {
  margin-bottom: 0.8em;
}

.entry-tags {
  margin-bottom: 3rem;
}

.entry-tags h4,
.entry-share h4 {
  margin-bottom: 0.5rem;
}

.entry-tags a {
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-right: 1em;
  margin-bottom: 1em;
}

.entry-share {
  margin-bottom: 2em;
}

nav.post-navigation {
  margin: 3em auto;
}

nav.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  font-size: 1.1rem;
}

nav.post-navigation .nav-next {
  text-align: right;
}

nav.post-navigation span.nav-subtitle {
  font-size: 0.8em;
  display: block;
}


/* legacy classes */
.w-richtext-align-fullwidth,
.w-richtext-align-center {
  width: 100%;
  text-align: center;
}

/* search */
.search-form {
  max-width: 100%;
  display: grid;
  grid-template-columns: 3fr 1fr;
  margin-top: 1em;
}

main .search-form {
  /* non header */
  width: 400px;
}

.search-form {
  display: flex;
  align-items: center;
}
.search-form input {
  width: 100%;
  border-radius: 0.5em 0 0 0.5em;
  border-color: var(--grey-3);
}
.search-form button {
  width: 3rem;
  border-radius: 0 0.5em 0.5em 0;
  padding: 0;
  background-color: var(--grey-3);
}
.search-form input:focus {
  border-color: var(--cb2-purple);
}
.search-form input:focus+button {
  background-color: var(--cb2-purple);
}
.search-form svg {
  width: 20px;
  height: 20px;
}
.search-form path {
  fill: white;
}

.site-author h1 {
  font-size: 1.4rem;
}

.blog-callout {
  color: white;
  background-color: var(--cb2-purple-dark);
}
.blog-callout span {
  font-family: 'MidnightCondensed', sans-serif;
}
.blog-callout a.button {
  border-radius: 3em;
}
.blog-callout-banner{
  box-shadow: 0 4px 6px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: 1em;
}
.blog-callout-square {
    background-image:url(../img/callout-bg.png);
    background-size: cover;
}
@media only screen and (max-width: 768px) {
  .blog-callout a.button {
    padding: 0.5em 1em;
  }
  .blog-callout-banner {
    box-shadow: none;
  }
}

/* carousel fixes */
.glide .blog-thumb a,
.glide .blog-thumb p {
  white-space: pre-wrap;
}
.glide__slides {
  padding-bottom: 1em!important;
}
button.glide__bullet {
  background-color:transparent;
  border-radius: 50%;
  width: 0.8rem;
  height: 0.8rem;
  border: 1px solid var(--grey-2);
  padding:0;
}
button.glide__bullet--active {
  background-color: var(--grey-3);
}