@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;700&display=swap");

/******************/
/***** Layout *****/
/******************/

body {
  background-color: #f3f3f3;
}

body * {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 23px;
  color: black;
  text-decoration: none;
}
#o-main {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
}

main {
  position: relative;
  background-color: #eee;
  color: black;
  padding: 40px 60px;
}
.main-side {
  background-color: #4d60a4;
  border-right: solid 10px #dddddd;
}
.is-author .main-side {
  background-color: #4cbb17;
}

header {
  height: 120px;
  /*border-right: solid 10px #dddddd;*/
  background-image: url("../img/logo-forgenext-menu.png");
  background-position: center center;
  background-size: 50%;
  background-repeat: no-repeat;
}
.main-side-sep {
  height: 10px;
  background-color: #f3f3f3;
}

/**********************/
/***** Fullscreen *****/
/**********************/

#o-main.fullscreen {
  grid-template-columns: 1fr;
}
#o-main.fullscreen .main-side {
  display: none;
}
#o-main.fullscreen main {
  background-color: #4d60a4;
  padding: 0;
}
.is-author #o-main.fullscreen main {
  background-color: #4cbb17;
}

/***************/
/***** Nav *****/
/***************/

nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px 0 20px 40px;
}

nav a {
  color: white;
  text-decoration: underline;
  font-weight: 700;
}
.nav-sep {
  margin-top: 60px;
}

.menu-item {
  width: 100%;
  display: grid;
  grid-template-columns: 30px 1fr;
  text-decoration: none;
  align-items: center;
}
.menu-item img {
  height: 20px;
  margin: auto;
}
.menu-item p {
  font-weight: 500;
  color: white;
  background-color: #4d60a4;
  font-size: 18px;
  text-align: left;
  margin: 0;
  padding: 6px;
  margin-top: 4px;
  transition: all 0.3s;
  border-radius: 10px 0 0 10px;
}
.menu-item-selected p,
.menu-item:hover p {
  background-color: #f3f3f3;
  color: #4d60a4;
  transform: translateX(10px);
  padding-left: 15px;
}

.is-author .menu-item p {
  background-color: #4cbb17;
}
.is-author .menu-item-selected p,
.is-author .menu-item:hover p {
  background-color: #f3f3f3;
  color: #4cbb17;
}

/*******************/
/***** Generic *****/
/*******************/

strong {
  font-weight: 700;
}
.flex-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.flex-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}
.flex-row-start {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
}
.flex-column-start {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
}

.boxzone {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 45px;
}

.width-limited {
  /*max-width: 1240px;*/
  margin: auto;
}
.margin10 {
  margin: 10px;
}

/******************/
/***** Titles *****/
/******************/

p {
  font-size: 16px;
  line-height: 23px;
  font-weight: 400;
  margin: 10px;
  text-align: center;
}

h1 {
  font-size: 34px;
  line-height: 40px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 20px;
  text-align: left;
  color: #4d60a4;
}

h2 {
  font-size: 26px;
  line-height: 40px;
  font-weight: 700;
  margin: 20px;
  text-transform: uppercase;
}

h3 {
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  margin: 10px;
  text-transform: uppercase;
}
h4 {
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  margin: 10px;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  h1 {
    font-size: 18px;
    margin: 10px;
  }
  h2 {
    font-size: 18px;
    margin: 10px;
  }

  h3 {
    font-size: 18px;
    margin: 10px;
  }
}

/*******************/
/***** xbutton *****/
/*******************/

.xbutton {
  background-color: white;
  display: inline-block;
  transition: background-color 0.3s;
  margin: 10px;
  cursor: pointer;
  pointer-events: all;
  border-radius: 5px;
  border: solid 2px white;
}
.xbutton:hover {
  background-color: #4d60a4;
}
.is-author .xbutton:hover {
  background-color: #4cbb17;
}
#o-login .xbutton:hover {
  background-color: #4d60a4;
}

.xbutton:hover p {
  color: white;
}
.xbutton p {
  text-transform: uppercase;
  font-style: normal;
  color: #4d60a4;
  margin: 8px 20px;
  font-weight: 700;
  font-size: 18px;
  transition: color 0.3s;
}
.is-author .xbutton p {
  color: #4cbb17;
}
#o-login .xbutton p {
  color: #4d60a4;
}
#o-login .xbutton:hover p {
  color: white;
}

.xbutton-icon,
.xbutton-icon img {
  width: 50px;
  height: 50px;
}

.o-header .xbutton {
  background-color: red; /*#1f59d6;*/
  border: solid 1px rgba(0, 0, 0, 0.4);
}
.o-header .xbutton:hover {
  border-color: white;
}

.xbutton-pager {
  width: 30px;
  height: 30px;
  margin: 10px 2px;
}
.xbutton-pager a {
  margin: 0;
}
.xbutton-pager p {
  font-size: 20px;
  margin: 2px;
}
.xbutton-pager-done {
  cursor: auto;
  background-color: white;
}
.xbutton-pager-done:hover {
  border-color: rgba(255, 255, 255, 0.4);
}
.xbutton-pager-done p {
  color: #b02500;
}

/*******************/
/***** Buttons *****/
/*******************/

.button-link {
  display: inline-block;
  width: 100%;
  text-align: center;
}
.button-link span {
  text-decoration: underline;
  text-align: center;
}
.tool-selected {
  background-color: #b02500;
  border-color: #b02500;
  cursor: auto;
}
.tool-selected:hover {
  border-color: #b02500;
}
.button-disabled {
  pointer-events: none;
  user-select: none;
  opacity: 0.3;
}
.button-help {
  width: 30px;
  height: 30px;
  background-image: url("../img/button-help.png");
  background-size: contain;
}
.button-help:active {
  background-image: url("../img/button-help-hover.png");
}

.button-googlelogin p:before {
  content: " ";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("../img/google_logo.png");
  background-size: contain;
  margin-right: 10px;
  transform: translateY(3px);
}

.button-mini p {
  margin: 4px 10px;
}
.button-mini span {
  font-size: 14px;
}

/****************/
/***** Menu *****/
/****************/

#menu-burger {
  display: none; /* Hide menu burger */
}
#o-menu {
  display: none;
  position: absolute;
  width: 100%;
  z-index: 2;
}
#o-menu > div {
  position: relative;
}
.menu-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #333;
  width: 20vw;
  max-width: 20vw;
  min-width: 300px;
  position: absolute;
  right: 0;
  top: 0;
}
@media (max-width: 800px) {
  .menu-content {
    top: 60px;
  }
}

@media (max-width: 500px) {
  .menu-content {
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
  }
}
.menu-content a {
  height: 75px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(100% - 40px);
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
  font-size: 20px;
  font-weight: 500;
  color: white;
}
@media (max-width: 800px) {
  .menu-content a {
    height: 60px;
    font-size: 18px;
  }
}
.menu-content a:last-child {
  border-bottom: none;
}
.menu-content a:hover {
  font-weight: 700;
}

/****************/
/***** Form *****/
/****************/

.form-vertical {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.form-vertical input {
  text-align: center;
}
.form-vertical > * {
  margin: 10px;
}
.form-error {
  color: #dddddd;
  font-size: 16px;
  text-align: center;
  font-style: italic;
  padding: 0 20px;
}
#form-modifypassword .form-error {
  color: #ea3323;
}
input {
  /*all: unset;*/
}
input {
  outline: none;
}

input[type="text"],
input[type="password"],
textarea {
  font-size: 16px;
  background-color: white;
  color: black;
  padding: 10px 12px;
  border: none;
  resize: none;
  width: 250px;
  text-align: left;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}
form label {
  display: block;
  text-align: center;
  font-size: 20px;
  line-height: 5px;
  font-weight: 500;
  color: white;
}
@media (max-width: 700px) {
  .form-vertical > * {
    margin: 5px;
  }
  input[type="text"],
  input[type="password"],
  textarea {
    font-size: 16px;
    padding: 6px 10px;
    margin-bottom: 10px;
  }
  form label {
    font-size: 16px;
  }
}

/************************/
/***** Autocomplete *****/
/************************/

/*the container must be positioned relative:*/
.autocomplete {
  position: relative;
  display: inline-block;
}

.autocomplete-items {
  /*position: absolute;*/
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container:*/
  top: 100%;
  left: 0;
  right: 0;
}

.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff;
  border-bottom: 1px solid #d4d4d4;
}

/*when hovering an item:*/
.autocomplete-items div:hover {
  background-color: #e9e9e9;
}

/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
  background-color: DodgerBlue !important;
  color: #ffffff;
}

/******************/
/***** Msgbox *****/
/******************/

#msgbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 30;
}
#msgbox-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}
#msgbox-content {
  position: relative;
  padding: 14px 10px 6px 10px;
  background-color: white;
  border-radius: 2px;
  color: black;
  text-align: center;
  min-width: 300px;
  max-width: 600px;
}
#msgbox h3 {
  font-size: 22px;
  line-height: 24px;
  color: white;
}
#msgbox-content > p {
  font-size: 16px;
  margin: 22px 10px;
}
@media (max-width: 700px) {
  #msgbox-content {
    max-width: 90%;
  }
}
.msgbox-icon {
  width: 60px;
  height: 60px;
}

/*************************/
/**** Specific views *****/
/*************************/

.splashscreen {
  min-height: 100vh;
}

#o-homepage {
  background-color: #dddddd;
}
.homepage-logo {
  width: 200px;
  margin: 20px;
}
#o-homepage .xbutton {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 4px;
}
#o-homepage .xbutton p {
  font-size: 30px;
}
#o-homepage .xbutton img {
  height: 26px;
  margin-left: 20px;
}
#o-homepage .xbutton:hover {
  background-color: white;
  border-color: #4d60a4;
}
#o-homepage .xbutton:hover p {
  color: #4d60a4;
}
.is-author #o-homepage .xbutton:hover {
  border-color: #4cbb17;
}
.is-author #o-homepage .xbutton:hover p {
  color: #4cbb17;
}

.login-logo {
  width: 270px;
  margin: 40px;
}
@media (max-width: 600px) {
  #o-login {
    width: 100vw;
  }
}

#o-login .xbutton {
  width: 276px;
  margin: 14px 0;
}
#o-login .button-link span {
  color: white;
}

.o-settings a {
  text-decoration: underline;
  margin: 10px 20px;
  font-weight: 700;
  font-size: 18px;
}

/****************/
/***** Grid *****/
/****************/

.grid-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.grid-main {
  background-color: white;
  padding: 20px 20px 5px;
  border-radius: 10px;
}
.grid-header-icon {
  background-color: #4d60a4;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  box-shadow: 6px 0px 0px rgba(0, 0, 0, 0.1);
  translate: -20px 20px;
}
.is-author .grid-header-icon {
  background-color: #4cbb17;
}
.grid-header-icon img {
  height: 50px;
}

.o-grid {
  display: grid;
  gap: 4px 0;
}
.o-grid > div {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 30px;
  /*
  overflow: hidden;
  */
}

.grid-rowhead {
  position: relative;
  font-weight: 700;
  /*
  border-top: solid 1px grey;
  */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #4d60a4;
}
.is-author .grid-rowhead {
  color: #4cbb17;
}
.grid-rowhead > div {
  margin: 5px;
}
.grid-cell {
  overflow: hidden;
}
.grid-cell-bg-alt {
  background-color: rgba(77, 96, 164, 0.1);
}
.grid-cell-author.grid-cell-bg-alt {
  background-color: rgba(76, 187, 23, 0.1);
}

/***** Authors *****/
.grid-type-authors {
  grid-template-columns: 80px 150px 150px 180px 180px 1fr;
}

/***** Publishers *****/
.grid-type-publishers {
  grid-template-columns: 80px 150px 150px 150px 100px 1fr;
}

/***** Games *****/
.grid-type-games {
  grid-template-columns:
    repeat(3, 80px) repeat(3, 220px) repeat(3, 80px) 120px 300px 600px 500px
    repeat(3, 120px) 300px repeat(3, 200px) 80px
    1fr;
}

/***** Shows *****/
.grid-type-shows {
  grid-template-columns: 80px 100px 100px 140px 140px repeat(4, 200px) 80px 400px 80px 1fr;
}
.is-author .grid-type-shows {
  grid-template-columns: 80px 100px 100px 140px repeat(4, 200px) 80px 400px 1fr;
}
/***** Accounts *****/
.grid-type-accounts {
  grid-template-columns: 80px 200px 200px 200px 200px 200px 200px 1fr;
}

/***** Games Published *****/
.grid-type-games_published {
  grid-template-columns: 80px 300px 300px 300px 1fr;
}

/***** Icon Category *****/
.grid-type-icon_category {
  grid-template-columns: 80px 300px 300px 1fr;
}

/***** Icon Coef *****/
.grid-type-icon_coef {
  grid-template-columns: 80px 100px 300px 1fr;
}

.o-grid .grid-buttons {
  padding-left: 10px;
  text-align: left;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.grid-buttons a {
  font-size: 12px;
  text-decoration: underline;
}

.grid-editable input[type="text"] {
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: center;
  /*border: solid 1px pink;*/
  background-color: rgba(252, 250, 69, 0.3);
}

.grid-filters {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.grid-filters input[type="text"] {
  width: 150px;
  padding: 0;
  text-align: center;
  border: solid 1px #666;
  text-align: left;
  padding: 2px 5px;
}

.grid-action {
  user-select: none;
  cursor: pointer;
}
.grid-action:hover {
  color: #4d60a4;
}
.is-author .grid-action:hover {
  color: #4cbb17;
}

.grid-title-action {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  padding: 2px 8px;
  background-color: white;
  border: solid 2px white;
  transition: border-color 0.3s;
  margin-right: 10px;
}
.grid-title-action:hover,
.grid-title-action-border {
  border-color: #4d60a4;
}
.is-author .grid-title-action:hover {
  border-color: #4cbb17;
}

.grid-title-action img {
  width: 16px;
}
.grid-title-action p {
  margin: 0;
  color: #4d60a4;
  font-weight: 700;
  font-size: 16px;
  margin-left: 4px;
}
.is-author .grid-title-action p {
  color: #4cbb17;
}

.grid-search {
  border-radius: 10px;
  padding: 4px 8px;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}
.grid-search a {
  display: block;
  width: 20px;
  height: 20px;
  transform-origin: center;
  transition: all 0.3s;
  background-position: center;
  background-repeat: no-repeat;
}
.grid-search a:hover {
  transform: scale(1.2);
}
#grid-search-do {
  background-image: url("../img/icon/icon-search.png");
  background-size: 14px;
}
#grid-search-reset {
  background-image: url("../img/icon/icon-reset.svg");
  background-size: 20px;
}
.grid-search input[type="text"] {
  border: none;
}

/*****************/
/***** Popup *****/
/*****************/

.o-popup h3 {
  style: italic;
}

.o-popup h5 {
  margin-top: 40px;
}

.popup-list {
  display: grid;
  margin: auto;
  grid-template-columns: 250px 40px;
}

.o-popup input {
  text-align: center;
}

#popup-close {
  position: absolute;
  top: 10px;
  right: 20px;
}
#popup-close a {
  color: #4d60a4;
  text-decoration: underline;
}
.is-author #popup-close a {
  color: #4cbb17;
}

.popup-note {
  margin-top: 30px;
  font-size: 14px;
}

.o-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 29;
}
#popup-bg {
  position: absolute;
  width: 1000%;
  height: 1000%;
  background-color: rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%);
}
#popup-content {
  position: relative;
  padding: 40px;
  background-color: white;
  border-radius: 2px;
  color: white;
  text-align: center;
  min-width: 300px;
  max-width: 600px;
  margin: 40px;
}
#popup-content h3 {
  color: #4d60a4;
  margin-top: 0;
}
.is-author #popup-content h3 {
  color: #4cbb17;
}
#popup-content h4 {
  margin-bottom: 0;
}

/********************/
/***** Dropdown *****/
/********************/

.dropdown {
  position: relative;
  padding: 2px 30px 2px 12px;
  margin-left: 10px;
  background-color: white;
  border-radius: 10px;
  background-image: url("/img/icon/icon-sort-wait.svg");
  background-size: 15px 15px;
  background-repeat: no-repeat;
  background-position: right 5px center;
}

.dropdown p {
  padding: 2px 6px;
  margin: 0;
}
.dropdown-button,
.dropdown-invite {
  cursor: pointer;
  user-select: none;
}

.dropdown p:hover {
  background-color: white;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  background-color: #ddd;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  /*padding: 12px 16px;*/
  z-index: 1;
  transform: translateX(-6px);
}

.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown:hover .dropdown-content.dropdown-close {
  display: none;
}
.dropdown-reset {
  font-style: italic;
}

/************************/
/***** Buttons Icon *****/
/************************/

.button-icon {
  display: block;
  width: 20px;
  height: 20px;
  margin: 5px;
  transform-origin: center;
  transition: all 0.3s;
}
.button-icon:hover {
  transform: scale(1.2);
}
.button-icon-modify {
  background: url("/img/icon/icon-modify.svg");
}
.button-icon-confirm {
  background: url("/img/icon/icon-confirm.svg");
}
.button-icon-cancel {
  background: url("/img/icon/icon-cancel.svg");
}
.button-icon-delete {
  background: url("/img/icon/icon-delete.svg");
}
.button-icon-removenotify {
  background: url("/img/icon/icon-removenotify.svg");
}
.button-icon-add {
  background: url("/img/icon/icon-add.svg");
}
.button-icon-new {
  background: url("/img/icon/icon-new.svg");
}
.button-icon-help {
  background: url("/img/icon/icon-help.svg");
}
.button-icon-export {
  background: url("/img/icon/icon-export.svg");
}
.button-icon-reorder {
  background: url("/img/icon/icon-reorder.svg");
}
.grid-buttons .button-icon-confirm,
.grid-buttons .button-icon-cancel {
  display: none;
}

/*****************/
/***** Pager *****/
/*****************/

.grid-pager {
  margin: 10px;
}
.grid-pager a {
  margin: 5px;
  color: #4d60a4;
  text-decoration: none;
}
.is-author .grid-pager a {
  color: #4cbb17;
}
.grid-pager a:hover {
  text-decoration: underline;
}
.grid-pager span {
  margin: 5px;
  color: #4d60a4;
  font-weight: 700;
  text-decoration: underline;
}
.is-author .grid-pager span {
  color: #4cbb17;
}

/**********************/
/***** Icons Sort *****/
/**********************/

.icon_sort {
  width: 15px;
  height: 15px;
  background-position: center;
  background-size: 15px 15px;
  background-repeat: no-repeat;
}
.icon_sort_wait {
  background-image: url("/img/icon/icon-sort-wait.svg");
}
.icon_sort_asc {
  background-image: url("/img/icon/icon-sort-asc.svg");
}
.icon_sort_desc {
  background-image: url("/img/icon/icon-sort-desc.svg");
}

/*********************/
/***** Analytics *****/
/*********************/

.o-analytics {
  display: grid;
  grid-template-columns: repeat(2, 270px);
}
.analytics-item {
  width: 240px;
  height: 250px;
  background-color: white;
  border-radius: 10px;
  margin: 0 20px 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 10px;
}
.analytics-item h3 {
  color: #606060;
  text-transform: none;
  text-align: center;
  font-weight: 500;
}
.analytics-item-value {
  height: 70px;
  width: 100%;
  background-image: url("../img/analytics-plus.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 32px;
  color: white;
  padding-bottom: 3px;
}
.analytics-minus .analytics-item-value {
  background-image: url("../img/analytics-minus.png");
}
.analytics-item-comment {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
}
.analytics-compared {
  font-weight: 700;
  color: #6cb83c;
}
.analytics-minus .analytics-compared {
  color: #ea3323;
}

/*********************/
/***** Send Mail *****/
/*********************/

.fgn_sendmail h3 {
  margin-left: 40px;
}

.fgn_sendmail li {
  list-style: disc;
  margin-left: 60px;
}

.fgn_sendmail a {
  width: 220px;
  margin: 20px 60px;
}

/********************/
/***** Fast Sel *****/
/********************/

.fastsel-running {
  cursor: pointer;
}
.fastsel-running:hover {
  border: solid 2px #ea3323;
}
.fastsel-titlebutton {
  border-color: #ea3323;
}
