@font-face {
    font-family: 'Gamerbase';
    src: url('/fonts/Euclid Circular A.woff');
}
@font-face {
    font-family: 'GamerbaseLogo';
    src: url("/fonts/Molot.otf") format("opentype");
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

h3, h4, h5{
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
}

button, input, textarea{
    font-family: 'Gamerbase' !important;
}

body{
    height:             100%;
    margin:             0;
    font-family:        'Gamerbase', sans-serif;
    font-size:          14px;
    color:              var(--textColor);
    background-color:   var(--colorPrimaryDark);
}

a {
    text-decoration: none;
    color: var(--textColor);
}

.g-container.filled a{
    color: var(--colorAccentShiny);
}

input[type=text], input[type=number], input[type=search], input[type=password], input[type=email], textarea{
    padding: 4px 6px;
    border-radius: 4px;
}

input[type=radio]{
    cursor: pointer;
}

select{
    padding: 4px 8px;
    border-radius: 4px;
}

.g-input-wide{
    padding: 10px 12px !important;
}

.g-table{
    display: table;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
    border-spacing: 0;
    background: var(--backgroundContainer);
}

.g-table th{
    text-align: left;
}

.g-table>thead>tr>th, .g-table>tbody>tr>th, .g-table>tfoot>tr>th, .g-table>thead>tr>td, .g-table>tbody>tr>td, .g-table>tfoot>tr>td {
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #ddd;
}

.g-red{
    color: darkred;
}

.g-green{
    color: darkgreen;
}

.g-full{
    width: 100%;
}

.g-fit-content{
    width: fit-content;
}

.g-pointer{
    cursor: pointer;
}

[x-cloak] { 
    display: none !important; 
}

a:hover, a:active, a:focus{
    text-decoration: none;
}

.custom-toast{
    background: var(--colorPrimary) !important;
    opacity: 1 !important;
    color: var(--textColor) !important;
}

#toast-container.toast-bottom-center>div, #toast-container.toast-top-center>div{
    width: 90% !important;
}

#toast-container>div{
    padding: 15px !important;
    text-align: center !important;
}

.g-spaced-padding{
    padding: 10px;
}

.g-block{
    display: block;
}

.g-italic{
    font-style: italic;
}

.g-link-shiny{
    color: var(--colorAccentShiny);
}

.g-spaced-top{
    margin-top: 10px !important;
}

.g-spaced-bottom{
    margin-bottom: 10px !important;
}

.g-badge{
    background: var(--colorPrimaryDark);
    border-radius: 4px;
    color: white;
    padding: 2px 8px;
    font-size: 12px;
}

.g-badge.red{
    background: var(--colorLightRed);
}

.g-badge.blue{
    background: var(--colorPlaystationBlue);
}

.g-badge.turquoise{
    background: var(--colorTurquoise);
}

.g-badge.purple{
    background: var(--colorPurple);
}

.g-badge.green{
    background: var(--colorXboxGreen);
}

.g-badge.gray{
    background: var(--colorMidGray);
}

.g-rounded-max{
    border-radius: 500px;
}

.g-container{
    margin:     0 auto;
    padding:    0;
}

.g-container.vertical-padding{
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.g-container.horizontal-padding{
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.g-container.filled{
    background-color: var(--backgroundContainer);
    padding: 10px;
}

.g-container.spaced{
    padding-top: 100px;
}

.g-title{
    display: flex;
    align-items: center;
    gap: 5px;
}

.g-navbar-wrapper{
    width:              100%;
    height:             60px;
    background-color:   var(--colorPrimaryDark);
    position:           fixed;
    top:                0;
    z-index:            1030;
}

.g-navbar-container{
    display:            flex;
    gap:                20px;
    justify-content:    space-between;
    align-items:        center;
    padding:            0 5px;
    user-select:        none;
}

.g-navbar-menu{
    display:        flex;
    justify-content:flex-end;
    gap:            15px;
    align-items:    center;
    padding-right:  15px;
    flex-grow:      1;
}

.g-navbar-aside-content i {
    color:      var(--textColorContrast);
    height:     100%;
    display:    flex;
    align-items:center;
}

.g-navbar-search-wrapper{
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    justify-content: flex-end;
}

.g-navbar-aside{
    width:              300px;
    height:             100%;
    background-color:   var(--backgroundContainer);
    position:           fixed;
    right:              -300px;
    top:                0;
    z-index:            1032;
    transition-duration:0.3s;
    color:              var(--textColorContrast);
    border-left:        5px solid var(--colorPrimary);
}

.g-navbar-aside-header{
    min-height:         60px;
	background-color:   var(--colorPrimary);
    display:            flex;
    flex-direction:     row-reverse;
    justify-content:    space-between;
}

.g-navbar-aside-header *{
    color: white;
}

.g-navbar-aside-header-profile{
    display:        flex;
    align-items:    center;
    gap:            10px;
    padding:        5px;
}

.g-navbar-aside-header-profile-subtext{
    font-size:0.9em;
    color: silver;
}

.g-navbar-aside-header-profile img{
    height: 50px;
    width:  50px;
}

.g-navbar-aside-header-profile > div{
    display:flex;
    flex-direction: column;
}

.g-navbar-aside-header button{
    border:         0;
    font-size:      20px;
    margin-right:   10px;
    color:          lightgray;
    background:     transparent;
    z-index:        10;
    cursor:         pointer;
}

.g-navbar-aside-header h4{
    font-size:          1.5em;
	padding:            0;
    margin:             15px;
    flex-grow:          1;
}

.g-navbar-aside-content{
    overflow-y:     auto;
    height:         100%;
    padding-bottom: 100px;
    display:        flex;
    flex-direction: column;
    gap:            10px;
    justify-content:space-between;
}

.g-navbar-aside-content-inner{
    display:        flex;
    flex-direction: column;
}

.g-navbar-notifications-description > a{
    display: inline-block;
    outline: 0;
    border: 0;
    cursor: pointer;
    background-color: var(--colorAccent);
    border-radius: 4px;
    padding: 2px 8px;  
    font-size: 0.9em;
    color: white;
}

.g-navbar-aside-content-row{
    display:            flex;
    gap:                10px;
	padding:            10px;
	flex-grow:          1;
	text-align:         left;
	flex-basis:         100%;
	-webkit-user-select:none;
	-moz-user-select:   none;
	-ms-user-select:    none;
	user-select:        none;
}

.g-navbar-aside-content-row-icon{
    font-size:  30px;
    color:      silver;
}

.g-navbar-aside-content-row-link{
	width:      100%;
    display:    flex;
    color:      var(--textColorContrast);
    height:     50px;
    align-items:center;
    gap:        15px;
    padding:    0 15px;
}
.g-navbar-aside-content-row-link:hover, 
.g-navbar-aside-content-row-link:hover i{
	background-color: var(--colorPrimary);
    text-decoration: none;
    color: var(--textColor);
}
.g-navbar-aside-content-row-link:focus{
	outline:        none;
	text-decoration:none;
}

.g-navbar-row-divider{
	height:             1px;
	width:              100%;
    overflow:           hidden;
    background-color:   lightgray;
	padding:            0;
	margin:             5px 0;
}

.g-navbar-menu-item{
    display:        flex;
    height:         60px;
    align-items:    center;
    position:       relative;
    cursor:         pointer;
}

.g-navbar-footer{
    display:        flex;
    flex-direction: column;
    gap:            10px;
    align-items:    center;
}

.g-navbar-footer > div {
    display:            flex;
    justify-content:    center;
}

.g-navbar-footer a{
    color:  var(--textColorContrast);
}

.g-navbar-logo{
    font-family:    'GamerbaseLogo';
    text-transform: uppercase;
    width:          auto;
    padding:        0;
    border-radius:  0;
    cursor:         pointer;
    font-size:      36px;
    line-height:    36px;
    display:        flex;
    align-items:    center;
}

.g-global-search-input{
    height: 40px;
    border: 0;
    z-index: 100;
    flex-grow: 1;
    max-width: 500px;
    padding: 0px 16px !important;
}

.g-global-search-results-container{
    background-color: var(--colorPrimary);
    width: 100%;
    max-width: 500px;
    position: absolute;
    max-height: 90vh;
    overflow-y: auto;
    top: 50px;
    right: 0;
    z-index: 99;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-weight: bold;
}

.g-search-input-loading{
    transition-duration:unset;
    background:         #fff url('/img/resources/loading.svg') no-repeat right center;
    background-size:    30px;
    padding-right:      30px;
}

.g-global-search-category{
    display:        flex;
    flex-direction: row;
    border-bottom:  1px solid #d4d4d5;
}
.g-global-search-category-title{
    flex-basis: 80px;
    flex-shrink:0;
    padding:    10px;
}
.g-global-search-category-results{
    border-left:1px solid #d4d4d5;
    flex-grow:  1;
}

.g-search-item{
    padding:        10px;
    border-bottom:  1px solid #d4d4d5;
    display:        flex;
    gap:            10px;
}

.g-search-item:hover{
    background-color: var(--colorAccent);
    color: var(--textColor);
    cursor: pointer;
}

.g-search-item:last-child{
    border-bottom:unset;
}

.g-search-item > img {
    width:  30px;
    height: 30px;
}

.g-search-item span {
    word-break: break-word;
}

.g-search-item > i{
    align-self: center;
}

.g-search-header{
    padding: 10px;
    display: flex;
    gap: 10px;
    background-color: var(--colorAccent);
    align-items: center;
    cursor: pointer;
}

.guides-container{
    display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.guides-pagination {
	display: flex;
    margin: 10px 0;
}

.guides-pagination a:hover{
	cursor: pointer;
	background: lightsteelblue;
}

.guide-card-square-container{
    flex:1 0 29%;
	min-width: 200px;
    height:200px;
    color:var(--textColor);
    position:relative;
	border-radius: 6px;
    background-size: cover;
    background-position: center;
}

.guide-card-square-container.full{
    flex-basis: auto;
}

.guide-card-square-container:hover{
    opacity:0.8;
    cursor:pointer;
}

.guide-card-square-content{
    position:           absolute;
    bottom:             0;
    width:              100%;
    background-color:   var(--backgroundTranslucent);
    padding:            0 10px;
}

.guide-card-square-image{
    width:100%;
}

.guide-card-new-badge{
    background: var(--colorPrimaryDark);
    border-radius: 4px;
    color: white;
}

.guide-card-summary{
    margin-top: 10px;
}

.guide-card-list-container{
	display: block;
	background-color: var(--backgroundContainer);
	color: var(--textColorContrast);
	width: 100%;
	position:relative;
	padding:10px;
	border-radius:6px;
}
.guide-card-list-container:hover {
	opacity: 0.8;
	cursor: pointer;
}
.guide-card-list-content {
	display: flex;
	flex-direction: row;
}
.guide-card-list-content div:first-child {
	min-width: 90px;
	max-width: 90px;
	margin-right: 10px;
}
.guide-card-list-content div:first-child img{
	width: 70px;
	height: 70px;
}

.guide-card-list-mini-container{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.guide-card-list-mini-content {
	display: flex;
    flex-direction: row;
    gap: 10px;
    background-color: transparent;
    background-color: var(--colorPrimary);
    color: var(--textColor);
    width: 100%;
    position: relative;
    padding: 10px;
    border-radius: 6px;
}
.guide-card-list-mini-content img{
    width: 70px;
    height: fit-content;
}
.guide-card-list-mini-content h4{
    margin: 0;
}
.guide-card-list-mini-content:hover {
	opacity: 0.8;
	cursor: pointer;
	color: var(--textColor);
}
.guide-card-list-mini-content div:first-child {
	min-width: 330px;
	max-width: 330px;
	height: 100px;
	margin: 0 auto;
}
.guide-card-list-mini-content div:first-child img{
	width: 70px;
	height: 70px;
}

.ad-title{
    color:gray;
    text-align: center;
    padding-bottom: 10px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: end;
}

.ad-title-light{
    color:#cecece;
    text-align: center;
    padding-bottom: 10px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: end;
}

.ad-bar{
    height: 105px;
    background-color: silver;
    width: 100%;
    margin: 0 auto;
}

.ad-aside{
    height: 600px;
    background-color: silver;
    width: 300px;
    margin: 0 auto;
}

.g-container-with-aside{
    display:flex;
    flex-direction: column;
}

.g-container-bside{
    width: 100%;
}

.g-container-aside{
    width: 100%;
    padding: 10px;
}

.home-latest-guides-title{
    display:flex;
    justify-content: space-between;
    align-items: center;
}

.btn{
    display: inline-block;
    outline: 0;
    border: 0;
    cursor: pointer;
    background-color: var(--colorAccent);
    border: 0;
    border-radius: 4px;
    padding: 2px 14px;
    font-size: 1em;
    color: var(--textColor);
    line-height: 26px;
    width: fit-content;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
}

.btn:active{
    opacity: 0.8;
}

.btn:disabled{
    filter: grayscale(80%);
    cursor: not-allowed;
    opacity: 1 !important;
}

.btn.secondary{
    display: inline-block;
    outline: 0;
    border: 0;
    cursor: pointer;
    background-color: var(--backgroundSecondary);
    border: 0;
    border-radius: 4px;
    padding: 2px 14px;
    font-size: 1em;
    color: var(--textColorContrast);
    line-height: 26px;
    width: fit-content;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
}

.btn.secondary-contrast{
    background-color: transparent;
    color: var(--textColorContrast);
    border: 1px solid var(--textColorContrast);
    box-shadow: 4px 3px 0px 0px var(--textColorContrast);
}

.btn.wide{
    padding: 4px 28px;
}

.btn.full{
    width: 100%;
}

.btn.big{
    padding: 8px 16px;
}

.g-card{
    background-color: var(--backgroundGuideGroup);
    padding: 10px;
    border-radius: 4px;
    color: var(--textColorContrast);
}

.g-flex-column{
    display: flex;
    flex-direction: column;
}

.g-flex-grow{
    flex-grow: 1;
}

.g-flex-spaced{
    display: flex;
    gap: 10px;
}

.g-flex-spaced.centered{
    align-items: center;
}

.g-flex-spaced-column{
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.g-align-self-center{
    align-self: center;
}

.g-tabs{
    display:flex;
    gap: 5px;
}

.g-tabs-content{
    padding: 10px;
    margin-top: 10px;
    border: 1px solid var(--colorAccent);
}

.g-tab {
	margin-top: 0;
}

.g-tab button {
    position: relative;
    display: block;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: bold;
    height: 100%;
    background-color: var(--backgroundContainer);
    margin-right: 5px;
    border: 0;
    color: var(--textColorContrast);
}
.g-tab.active button {
    background-color: var(--colorAccent);
    color: var(--textColor);
}

.g-tab button:hover {
    background-color: var(--colorAccent);
    color: var(--textColor);
    cursor: pointer;
}

.g-guide-toolbar{
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--colorPrimary);
    color: var(--textColor);
}

.g-guide-toolbar-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.g-guide-toolbar-actions > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.g-switch {
    --input-focus: var(--colorAccent);
    --font-color: #323232;
    --font-color-sub: #666;
    --bg-color: #fff;
    --bg-color-alt: #666;
    --main-color: #323232;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 50px;
    width: fit-content;
    height: 20px;
    cursor: pointer;
    user-select: none;
}

.g-switch.full{
    width: 100%;
}

.g-switch-toggle {
    opacity: 0;
    width: 0;
    height: 0;
}

.g-switch-slider {
    border-radius: 5px;
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: silver;
    transition: 0.3s;
    width: 50px;
}

.g-switch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    border: 2px solid var(--main-color);
    border-radius: 5px;
    left: 0;
    bottom: 1px;
    background-color: var(--bg-color);
    box-shadow: 0 3px 0 var(--main-color);
    transition: 0.3s;
}

.g-switch-toggle:checked + .g-switch-slider {
    background-color: var(--input-focus);
}

.g-switch-toggle:checked + .g-switch-slider:before {
    transform: translateX(30px);
}

.g-modal-wrapper{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    z-index: 999;
}

.g-modal-wrapper.active {
    height: 100%;
}

.g-modal-panel{
    position: fixed;
    top: 60px;
    max-height: 90vh;
    z-index: 999;
    overflow: auto;
    opacity: 0;
    max-width: 568px;
    background: var(--backgroundContainer);
    padding: 20px;
    margin: 10px;
    border-radius: 4px;
    box-shadow: 0 0 10px 0px black;
    color: var(--textColorContrast);
}

.g-modal-panel.active{
    opacity: 1;
    transform: none;
}

.g-modal-wrapper.active .g-modal-backdrop {
    visibility: visible;
    opacity: 1;
}

.g-modal-wrapper .g-modal-backdrop{
    visibility: hidden;
    opacity: 0;
}

.g-modal-footer{
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.g-modal-backdrop{
    position:       fixed;
    z-index:        998;
    top:            0;
    right:          0;
    bottom:         0;
    left:           0;
    display:        flex;
    justify-content:center;
    align-items:    center;
    user-select:    none;
}

.g-modal-backdrop-shaded{
    background: rgba(0, 0, 0, .5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    color: var(--textColor);
}

.g-profile-last-comments-container{
    padding: 10px;
}

.g-profile-comment{
    width: 100%;
    padding: 5px;
    background-color: var(--backgroundContainer);
    border-radius: 4px;
    color: var(--textColorContrast);
}

.g-profile-comment a{
    color: var(--colorAccentShiny);
}

.g-login-body{
    background-color: var(--colorPrimary);
}

.g-login-wrapper{
    width:          100%;
    max-width:      380px;
    margin:         10px auto 0 auto;
    display:        flex;
    flex-direction: column;
}

.g-login-container{
    background-color:   var(--backgroundContainer);
    color:              var(--textColorContrast);
    margin-top:         10px;
    padding:            10px;
    border-radius:      4px;
}

.g-login-form{
    display:        flex;
    flex-direction: column;
    gap:            10px;
}

.g-login-form h1{
    margin-bottom: 0;
}