body {
    font-family: 'Work Sans', sans-serif;
    margin: 0;
    background: black;
    font-size: 18px;
}

p, .rich-text {
    color: white;
    margin: 0;
    padding: 0;
    line-height: 27px;
}

.rich-text p:not(:first-child) {
    padding-top: 15px;
}

.rich-text li {
    list-style-position: outside;
    list-style-type: circle;
    padding: 10px;
    margin-left: 20px;
}

.rich-text b {
    font-weight: 700;
}

.rich-text h2 {
    margin-top: 20px;
    line-height: 45px;
}

.rich-text h3 {
    margin-top: 40px;
    line-height: 40px;
}

.rich-text h4 {
    padding-bottom: 20px;
    padding-top: 20px;
}

img.richtext-image.full-width {
    display: inline-block;
    width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: #3191ff;
}

a:hover {
    color: white;
}

h2 {
    font-size: 2.7rem;
    color: white;
    font-weight: 700;
    padding-bottom: 15px;
}

@media (max-width: 1023px) {
    h2 {
	font-size: 2.4rem;
    }
}


h3 {
    font-size: 2.0rem;
    color: white;
    font-weight: 700;
    padding-bottom: 15px;
}

h2:lang(ja), h3:lang(ja) {
    font-family: 'Noto Sans JP', sans-serif;
}

.nav_bar a:hover {
    color: white !important;
}

nav, footer {
    margin-right: auto;
    margin-left: auto;
}

/**
TOP MENU BAR
**/

nav {
    padding-left: 1.5%;
    padding-right: 1.5%;
    flex-direction: row;
    justify-content: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* z-index works only with positioned elements */
    z-index: 10001;
    /*background: black;*/
    background: rgba(0, 0, 0);
}

.sticky_nav {
    position: fixed;
    top: 0;
    padding-left: 0%;
    padding-right: 0%;
    /*background: black;*/
    background: rgba(0, 0, 0);
    width: 97%;
    padding-left: 1.5%;
    padding-right: 1.5%;
}

.mobile-menu {
    position: fixed;
    top: 0;
    padding: 0 4% 0px;
    /* 15px */
    top: 0px;
    left: 0px;
    opacity: 0;
    width: 200px;
    height: 0%;
    background: #181D1F;
    -webkit-transition: opacity .5s;
    transition: opacity .5s;
    padding-top: 40px;
    padding-bottom: 20px;
    text-transform: uppercase;
}

@media only screen and (min-width: 1024px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    z-index: -1 !important;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.mobile-menu-submenu-container {
    display: none;
    -webkit-transition: all .5s;
    transition: all .5s;
}

.mobile-menu ul {
    padding-top: 15px;
}

.mobile-menu li {
    padding-top: 10px;
    padding-bottom: 10px;
    border-top: solid 1px #3191ff4e;
}

.mobile-menu li a {
    color: white;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.1rem;
    text-decoration: none;
}

.mobile-menu li a:lang(ja) {
    font-family: 'Noto Sans JP', sans-serif;
}


.mobile-menu.visible {
    display: block;
    opacity: 1;
    left: 0;
    width: 200px;
    height: 100%;
}

div.nav_bar {
    display: flex;
    justify-content: flex-end;
}

.nav_bar_right {
    padding: 0;
    margin: 0;
}

.nav_bar_item, .submenu_item {
    /* every item in the menu and in dropdown submenus */
    color: white;
    padding: 0px 22px;
    text-decoration: none;
    text-align: center;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding-top: 20px;
    padding-bottom: 20px;
    position: relative;
}

.nav_bar_item.active:after {
    transform: translateY(0) !important;
}

.nav_bar_item:lang(ja), .submenu_item:lang(ja) {
    font-family: 'Noto Sans JP', sans-serif;
}

/* moved to the template to enable dynamic size */

/*
.nav_bar_item.submenu_drawer:after {
}
*/

.nav_bar_item.submenu_drawer:hover .nav_drawer {
    opacity: 1;
    display: flex;
    flex-direction: column;
}

.nav_bar_item.submenu_drawer:hover .nav_bar_drawer_title_arrow {
    transform: rotate(180deg);
}

.nav_bar_item:after {
    /* a div added under the item of the main menu to for a dropdown background */
    display: block;
    background-color: #3191ff;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-100%);
    transition: transform .6s cubic-bezier(.25, 1, .25, 1), height .6s cubic-bezier(.25, 1, .25, 1);
    width: 100%;
    height: 100%;
    z-index: -1;
}

.nav_bar_item:hover:after {
    /* show a dropdown background when the parent item is hovered */
    transform: translateY(0);
}

/* Hover over dropdown menu buttons */

.submenu_item {
    /* an item in a dropdown menu */
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 16px;
    padding-right: 17px;
    transition: background-color ease 0.7s;
}

.submenu_item:hover {
    background-color: black;
    transition: background-color ease 0.7s;
}

.nav_drawer {
    opacity: 0;
    height: 0px;
    position: absolute;
    left: 0px;
    margin: 0;
    padding: 0;
    display: none;
    top: 54px;
    transition: transform .6s cubic-bezier(.23, 1, .32, 1), height .6s cubic-bezier(.23, 1, .32, 1);
}

.nav_bar_drawer_title_arrow {
    transition: transform .6s cubic-bezier(.23, 1, .32, 1);
}

.nav_button {
    display: none;
    color: #3191ff;
}

@media only screen and (max-width: 1023px) {
    nav {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        padding-left: 4% !important;
        padding-right: 4% !important;
        font-size: 1.5rem;
    }
    .sticky_nav {
        width: 92%;
    }
    .nav_button {
        display: block;
        /* inline-block*/
    }
    nav div.nav_bar {
        display: none;
    }
}

/** MAIN CONTENT **/

main {}

.content {
    max-width: 1600px;
    margin: 0 auto;
}

.content-main-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.content-block {
    padding-left: 1.5%;
    padding-right: 1.5%;
    /*padding-bottom: 20px;*/
}

@media (max-width: 1023px) {
    .content, .content-block {
        padding-left: 4%;
        padding-right: 4%;
    }
}

.content .game_image {
    max-width: 100%;
    -moz-transition: all 0.3s;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    display: block;
}

.content .game_image.hover {
    -moz-transform: scale(1.2);
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

@media (min-width: 1024px) {
    .game_image_side {
        height: 100%;
        /* side images need to fill in all the available space, but not in the mobile mode where there's no grid */
    }
}

.featured_game_1 {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 3;
}

.featured_game_1_platforms {
    width: auto;
    height: 5%;
    position: absolute;
    right: 25px;
    top: 25px;
    z-index: 10000;
}

.featured_game_2 {
    grid-column-start: 3;
    grid-column-end: 4;
    grid-row-start: 1;
    grid-row-end: 2;
}

.featured_game_2_platforms, .featured_game_3_platforms, .other_game_platforms {
    width: auto;
    height: 7%;
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 10000;
}

.featured_game_3 {
    grid-column-start: 3;
    grid-column-end: 4;
    grid-row-start: 2;
    grid-row-end: 3;
}

.volume_mute, .volume_unmute {
    font-size: 2vw;
    color: white;
}

@media (max-width: 1023px) {
    .content {
        grid-template-columns: 1fr;
    }
    .game_link:first-child {
        top: 15px;
    }
    .game_link {
        top: 15px;
        padding-top: 30px !important;
    }
    .volume_mute, .volume_unmute {
        font-size: 7vw;
        color: white;
    }
    .featured_game_1_platforms {
        height: 7%;
        right: 15px;
    }
    .featured_game_1 {
        grid-column-start: 1 !important;
        grid-column-end: 4 !important;
        grid-row-start: 1 !important;
        grid-row-end: 2 !important;
    }
    .featured_game_2 {
        grid-column-start: 1 !important;
        grid-column-end: 4 !important;
        grid-row-start: 2 !important;
        grid-row-end: 3 !important;
    }
    .featured_game_3 {
        grid-column-start: 1 !important;
        grid-column-end: 4 !important;
        grid-row-start: 3 !important;
        grid-row-end: 4 !important;
    }
}

video {
    object-fit: cover;
    width: 100% !important;
    height: auto !important;
}

.volume_mute {
    display: none;
    transition: opacity 0.3s;
    opacity: 0.5;
}

.volume_mute:hover {
    transition: opacity 0.3s;
    opacity: 1;
}

.volume_unmute {
    transition: opacity 0.3s;
    opacity: 0.5;
}

.volume_unmute:hover {
    transition: opacity 0.3s;
    opacity: 1;
}

.icon_platform {
    -webkit-filter: drop-shadow(0 0 0.35rem #222);
    filter: drop-shadow(0 0 0.35rem #222);
}

.icon_platform:not(:first-child) {
    padding-right: 1.5%;
}

/** Footer **/

footer {
    background-color: rgb(35, 35, 35);
    color: white;
    min-height: 80px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    color: #868686;
}

.footer-social {
    margin-top: 0;
    height: auto;
    background-color: rgb(35, 35, 35);
    font-size: 0.9rem;
    padding-top: 30px;
    padding-bottom: 10px;
    display: flex !important;
    padding-left: 1.5%;
    padding-right: 1.5%;
    align-items: center;
    justify-content: space-between;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    padding-top: 0px;
    color: white;
}

.footer-social-icons-item:not(:first-child) {
    padding-left: 25px;
}

.footer-content {
    font-size: 0.8rem;
    line-height: 1.2rem;
    padding-left: 1.5%;
    padding-right: 1.5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 1023px) {
    .footer-content {
        padding-left: 4%;
        padding-right: 4%;
    }
    .footer-social {
        padding-bottom: 20px;
    }
    .footer-text {
        font-size: 0.7rem;
        line-height: 0.8rem
    }
}

.footer-text {
    max-width: 900px;
    text-align: center;
    padding-right: 20px;
    /* for mobile devices */
    padding-left: 20px;
    /* for mobile devices */
}

.main_header {
    width: 100%;
    text-align: center;
}

.main_header_bg {
    background-color: #3191ff;
    margin-top: 60px;
    margin-bottom: 60px;
    margin-right: auto;
    margin-left: auto;
    display: inline-block;
    padding-left: 3%;
    padding-right: 3%;
    padding-top: 1%;
    padding-bottom: 1%;
}

.main_header_bg h2 {
    color: white;
    font-weight: 700;
    padding-bottom: 0px;
}

/* NEWS */

.news_content {
    padding-left: 4%;
    padding-right: 4%;
    display: grid;
    grid-template-columns: 33.3333% 33.3333% 33.3333%;
}

.news_list_content {
/*    column-gap: 3%;
    column-count: 3;
    display: block !important;*/

    display: flex;
    flex-wrap: wrap;

    padding-left: 4%;
    padding-right: 4%;
}

@media (max-width: 1023px) {
    .news_content {
        grid-template-columns: 100%;
    }
    .news_list_content {
        column-gap: 0 !important;
        column-count: 1 !important;
        padding-left: 4%;
        padding-right: 4%;
    }
}

/* FEATURED ARTICLE */

.featured_article_preview {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 3;
}

.featured_article_content {
    color: white;
    grid-column-start: 3;
    grid-column-end: 4;
    grid-row-start: 1;
    grid-row-end: 3;
    display: flex;
    flex-direction: column;
}

.featured_article_preview_frame {
    position: relative;
    overflow: hidden;
    /*width: 100%;*/
    height: auto;
    padding-right: 15px;
}

@media (min-width: 1024px) {
    .featured_article_content {
        padding-left: 6%;
    }
}

/* Minature articles */

.article {
    color: white;
    padding-top: 50px;

}

@media (min-width: 1024px) {
    .article {
	width: 31.33%;
    }
    .article_column_gap {
	width: 3%;
    }
}


@media (max-width: 1023px) {
    .article {
        padding-top: 20px !important;
        padding-right: 0 !important;
    }
    .featured_article_preview {
        grid-column-start: 1 !important;
        grid-column-end: 2 !important;
        grid-row-start: 1 !important;
        grid-row-end: 2 !important;
    }
    .featured_article_content {
        grid-column-start: 1 !important;
        grid-column-end: 2 !important;
        grid-row-start: 2 !important;
        grid-row-end: 3 !important;
    }
    .featured_article_preview_frame {
        padding-right: 0px;
    }
}

.article_content {
    display: flex;
    flex-direction: column;
    background-color: white;
    border: double;
}

/* Common elements between minature articles and featured articles */

.article_header h2 {
    font-size: 42px;
    padding-top: 7px;
    font-weight: 700;
}

div.article header.article_header {
    padding-top: 20px;
}

@media only screen and (max-width: 1023px) {
    header.article_header {
        padding-top: 20px;
    }
}

.article_header time {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.article_description {
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    line-height: 27px;
    font-weight: 400;
    flex: 1;
    padding-top: 20px;
}

.article_read_more_section {
    padding-top: 20px;
}

.article_more {
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    color: #3191ff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
}

.article_more:hover {
    color: white;
}

/* COMMON BLOCKS */

.screenshot_gallery_item {
    width: 50vw;
    display: block;
    float: left;
    margin: 0;
    padding: 0;
}

.screenshot_gallery_item img {
    opacity: 0.35;
}

.screenshot_gallery_item.active img{
    opacity: 1;
}

.screenshot_gallery_item:not(.active) {
    cursor: pointer;
}

.screenshot_gallery_container {
    overflow: hidden;
    width: 100%;
    position: relative;
    margin: 0 auto;
}

.screenshot_gallery_item.active .gallery_external {
    display: block;
    opacity: 0.5;
}

.gallery_arrow {
    position: absolute;
    font-size: 3vw;
    top: calc(50% - 1.5vw);
    color: rgb(255,255,255);
    opacity: 0.5;
    display: none;
}

.gallery_arrow.right {
    left: 35px;
}

.gallery_arrow.left {
    right: 35px;
}


.gallery_external {
    position: absolute;
    font-size: 2vw;
    top: 1.2vw;
    right: 1.2vw;
    color: rgb(255,255,255);
    opacity: 0.1;
    transition: opacity 0.15s ease-in-out;
}

@media (min-width: 1024px) {
    .gallery_external:hover {
	color: #3191ff !important;
    }

    .gallery_arrow {
	padding: 0.6vw 0.7vw !important;
	background-color: gray;
    }
    .gallery_arrow.right {
	border-radius: 0 1vw 1vw 0 !important;
    }

    .gallery_arrow.left {
	border-radius: 1vw 0 0 1vw !important;
    }

    .gallery_arrow:hover {
	background-color: #3191ff !important;
    }

    .screenshot_gallery_item.active .gallery_arrow.mobile {
	display:none !important;
    }
}

.gallery_dots {
	display: none;
}

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

    .gallery_dots {
	display: block !important;
	position: absolute;
	z-index: 10;
	width: 100%;
	bottom: 5%;
	left: 50%;
    }

    .gallery_dots .dot {
      display: inline-block !important;
      margin: 2px !important;
      vertical-align: middle !important;
      border-radius: 2vw !important;
      opacity: 0.7;
      background: #222 !important;
      width: 2.7vw !important;
      height: 2.7vw !important;
      transition: background-color 0.6s, opacity 0.6s;
    }

    .gallery_dots .dot.active {
	background-color: white !important;
	opacity: 0.8;
	border-radius: 3vw !important; 
	width: 2.7vw !important;
	height: 2.7vw !important;
    }


    .gallery_arrow {
	font-size: 5vw;
	top: calc(50% - 2.5vw);
    }
    .gallery_external {
	font-size: 5vw;
	top: 2.5vw;
	right: 2.5vw;
    }
    /*.gallery_external {
	display: none !important;
    }*/

    .screenshot_gallery_item.active .gallery_arrow:not(.mobile) {
	display:none !important;
	opacity: 0 !important;
    }
    .screenshot_gallery_item.active .gallery_arrow.right {
	opacity: 0.5;
	display: block;
	right: 2.5vw !important;
	left: unset !important;
    }

    .screenshot_gallery_item.active .gallery_arrow.left {
	opacity: 0.5;
	display: block;
	left: 2.5vw !important;
	right: unset !important;
    }


    .screenshot_gallery_container {
    }
    .screenshot_gallery_strip {
    }
    .screenshot_gallery_item {
        width: 100vw;
        opacity: 1 !important;
    }
}

.content-row-split-in-columns {}

/* Scroll-up button present everywhere */

#scroll_up_button {
  display: inline-block;
  background-color: #3191ff;
  width: 50px;
  height: 50px;
  text-align: center;
  border-radius: 4px;
  position: fixed;
  bottom: 50px;
  right: 30px;
  transition: background-color .3s, opacity .5s, visibility .5s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}
#scroll_up_button::after {
  content: "\f077";
  font-family: "Font Awesome 5 Free";
  font-weight: 700;
  font-style: normal;
  font-size: 1.5em;
  line-height: 50px;
  color: #fff;
}
#scroll_up_button:hover {
  cursor: pointer;
  background-color: #333;
}
#scroll_up_button:active {
  background-color: #555;
}


/* Styles for the content section */

@media (max-width: 1023px) {
  #scroll_up_button.show {
      opacity: 0;
      visibility: hidden;
  }
}
@media (min-width: 1024px) {
  #scroll_up_button {
    margin: 30px;
  }
  #scroll_up_button.show {
      opacity: 1;
      visibility: visible;
  }
}

/* Universal buttons... used on game pages and on the home page */

.btn {
    background-color: #3191ff;
    color: #ffffff;
    font-family: 'Work Sans', sans-serif;
    font-size: 1.125rem;
    height: 50px;
    line-height: 50px;
    border: 0;
    text-transform: uppercase;
    padding: 0 20px 0 20px;
    font-weight: 700;
    display: inline-block;
}

.btn:hover {
    border: 2px solid #3191ff;
    background-color: transparent;
    color: #3191ff;
    height: 46px;
    line-height: 46px;
    cursor: pointer;
    padding-left: 18px;
    padding-right: 18px;
}

.btn-dark {
    border: 2px solid #3191ff;
    background-color: transparent;
    color: #3191ff;
}

.btn-dark:hover {
    background-color: #3191ff;
    color: #ffffff;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 20px;
    padding-right: 20px;
}
