.d0blackbox {background-color: #0F0F0F; margin: 1em 0; padding:20px; min-height:0px; display:block;}
.d0whitebox {background-color: #FFFFFF; margin: 1em 0; padding:20px; min-height:0px; display:block;}

@media only screen and (min-width: 800px) {
.d0blackcoverright {background: linear-gradient(90deg,rgba(15, 15, 15, 0) 0%, rgba(15, 15, 15, 0) 33%, rgba(15, 15, 15, 1) 33%, rgba(15, 15, 15, 1) 100%);}
.d0blackcoverleft {background: linear-gradient(270deg,rgba(15, 15, 15, 0) 0%, rgba(15, 15, 15, 0) 33%, rgba(15, 15, 15, 1) 33%, rgba(15, 15, 15, 1) 100%);}

.d0blackgradcoverright {background: linear-gradient(90deg,rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 50%, rgba(0, 0, 0, 0.65) 100%);}
.d0blackgradcoverleft {background: linear-gradient(270deg,rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 50%, rgba(0, 0, 0, 0.65) 100%);}
}

@media only screen and (max-width: 799px) {
.d0blackcoverright {background: rgba(15, 15, 15, 1);}
.d0blackcoverleft {background: rgba(15, 15, 15, 1);}

.d0blackgradcoverright {background: rgba(0, 0, 0, 0.65);}
.d0blackgradcoverleft {background: rgba(0, 0, 0, 0.65);}
}

.sf-menu > li > a {font-weight: 100;}

@media only screen and (min-width: 800px) {
  .d0fivecolumnwrapper {
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    width: 100%;
  }

.d0fivecolumn {
  flex: 1 1 20%;
  box-sizing: border-box;
  padding: 0 5px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.d0fivecolumn img {
  float: none !important;
  flex-shrink: 0;
}
}

@media only screen and (max-width: 799px) {
  .d0fivecolumnwrapper {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .d0fivecolumn {
    flex: 0 0 100%;
    scroll-snap-align: start;
    width: 100%;
    flex-direction: row !important;
    align-items: center !important;
  }

  .d0fivecolumn p:first-child {
    flex-shrink: 0;
  }

  .d0fivecolumn p:last-child {
    text-align: left;
  }
}

@media only screen and (max-width: 799px) {
  .d0fivecolumnwrapper .d0fivecolumn.d0fivecolumn {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  .d0fivecolumnwrapper .d0fivecolumn.d0fivecolumn p:first-child {
    flex-shrink: 0;
  }

  .d0fivecolumnwrapper .d0fivecolumn.d0fivecolumn p:last-child {
    text-align: left;
  }
}

.d0deepheaderbox {
    background-color: rgba(0, 0, 0, 0.6);
    margin: 1em 0;
    padding: 20px;
    min-height: 0px;
    display: block;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

@media only screen and (min-width: 992px) {
    .d0splashspace {
        min-height: 75vh;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
    }
}

#r8_content h2 {color: #D9AF5D;}
#r8_content h3 {font-family: "News Cycle", sans-serif;}

#r8_content .btn-default {border-radius: 5px !important;}

.btn-statement {
  position: relative;
  color: #111;
  background-color: #A47A2E; /* the solid colour, sits underneath */
  border-radius: 5px !important;
  overflow: hidden;
  z-index: 0;
}

.btn-statement::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    33deg,
    rgba(251, 230, 153, 1) 0%,
    rgba(217, 175, 93, 1) 50%,
    rgba(233, 200, 120, 1) 72%,
    rgba(251, 230, 153, 1) 100%
  );  
  border-radius: inherit;
  transition: opacity 0.5s ease-in-out;
}

.btn-statement:hover::before {
  opacity: 0;
}

#r8_content li:before {color: #D9AF5D !important;}

@media (max-width : 799px) 
{
#body h1, 
#body h2, 
#body h3,
#body p
{text-align: center;}
}

.sf-menu > li ul {background: #0f0f0f;}
.sf-menu li ul li a {color: #fff;}
.sf-menu li ul li a:hover {background: linear-gradient( 33deg, rgba(251, 230, 153, 1) 0%, rgba(217, 175, 93, 1) 50%, rgba(233, 200, 120, 1) 72%, rgba(251, 230, 153, 1) 100%); color: #111; border-radius: 5px;}

@media (min-width: 1201px) {
    #r8_logo img {
        max-width: 100%;
        max-height: 150px;
        margin-top: 10px;
    }
}

@media (min-width: 1201px) {
    #r8_navbar .navbar {
        height: 170px;
        margin-top: 0;
    }
}

#deepPage .btn-statement {background-color: #e9c063;}
#deepPage .btn-statement:hover {background-color: #A47A2E;}

@media only screen and (max-width: 799px) {.btn {display: block !important; white-space: normal !important;}}

/*CHANGE MOBILE MENU BACKGROUND AND TEXT*/

@media (max-width: 991px) {
    .mm-ismenu, .mm-ismenu.mm-light {
        background-color: #0f0f0f;
        color: #e9c063;
    }}
/*CHANGE DIVIDERS BETWEEN MOBILE MENU ITEMS*/

@media (max-width: 991px) {
    .mm-menu.mm-light .mm-list>li:after, .mm-menu .mm-list>li:after, .mm-menu.mm-light .mm-header, .mm-menu.mm-light .mm-header {
        border-color: #0f0f0f;
 }}

/*CHANGE MOBILE DROPDOWN ARROW COLOUR*/

@media (max-width: 991px) {
    .mm-menu .mm-list>li>a.mm-subopen:after, .mm-menu .mm-list>li>a.mm-subclose:before, .mm-menu.mm-light .mm-list>li>a.mm-subopen:after, .mm-menu.mm-light .mm-list>li>a.mm-subclose:before, .mm-menu.mm-light .mm-header a:before {
        border-color: #e9c063;
}}

.mm-menu.mm-vertical .mm-list li.mm-opened > a.mm-subopen, .mm-menu.mm-vertical .mm-list li.mm-opened > ul {background-color: rgba(180, 134, 49, 0);}

#header div.menu_container {background-color: #0f0f0f; border-bottom: none; box-shadow: none;}

#header a.mobile-menu {
position: relative;
  color: #111;
  background-color: #A47A2E; /* the solid colour, sits underneath */
  border-radius: 5px !important;
  overflow: hidden;
  z-index: 0;
    }

#header a.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    33deg,
    rgba(251, 230, 153, 1) 0%,
    rgba(217, 175, 93, 1) 50%,
    rgba(233, 200, 120, 1) 72%,
    rgba(251, 230, 153, 1) 100%
  );  
  border-radius: inherit;
  transition: opacity 0.5s ease-in-out;
}

#header a.mobile-menu-right {display: none;}

/* Remove focus outline for mouse users only */
:focus:not(:focus-visible) {
  outline: none;
}

.modal-header {border-bottom: none;}
.modal-footer {border-top: none;}
