* {
    font-family: "Montserrat", sans-serif;
    color: white;
    box-sizing: border-box;
}

body {
    background-color: #151515;
    margin: 0;
    padding: 0;
    position: relative;
}

.website-body {
    display: flex;
    flex-direction: row;
    min-height: calc(100vh - 45px);
}

.header {
    height: 45px;
    max-width: 100vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
}

.header .logo {
    height: 40px;
    margin: 2.5px;
    margin-left: 5px;
    cursor: pointer;
}

.header-links {
    position: absolute;
    right: 7px;
}

.header-links a {
    text-decoration: none;
    font-size: 18px;
    margin: 5px;
    color: white;
    transition: 0.3s ease;
}

.header-links a:hover {
    margin-left: 8px;
    margin-right: 8px;
    color: rgb(255, 249, 171);
}

.sidebar {
    width: 250px;
    min-height: 100%;
    box-sizing: border-box;
    text-decoration: none;
    padding-top: 5px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.rainbow {
    font-size: 34px;
    font-weight: bold;
    animation: rainbow 5s linear infinite;
}

@keyframes rainbow {
    0%   { color: red; }
    14%  { color: orange; }
    28%  { color: yellow; }
    42%  { color: green; }
    57%  { color: blue; }
    71%  { color: indigo; }
    85%  { color: violet; }
    100% { color: red; }
}
.content {
    top: 40px;
    left: 250px;
    height: 100%;
    margin: 0;
    padding: 0;
    width: calc(100% - 250px);
    min-height: calc(100vh - 45px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    margin: 0;
    margin-top: 20px;
    padding: 0;
}

p {
    width: 80%;
    text-align: center;
    text-indent: 25px;
    margin: 10px;
}

.gamesBrowse,
.searchinput {
    background-color: rgb(255, 255, 82);
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    border:1px solid rgba(255, 255, 255, 0.18);
    color: white;
    margin-top: 10px;
}

button {
    background-color: rgb(255, 255, 82);
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    border:1px solid rgba(255, 255, 255, 0.18);
    color: white;
    margin-top: 10px;
}

.sidebar a {
    text-decoration: none;
    transition: 0.3s ease;
    display: flex;
    height: 50px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    background-color: rgba(67,67,67,0.0);
    width: 100%;
    padding-left: 10px;
}
.sidebar a img {
    height: 35px;
    width: 35px;
    overflow: hidden;
    border-radius: 5px;
}

.sidebar a:hover {
    padding-left: 15px;
    background-color: rgba(67,67,67,0.3);
    color: rgb(255, 249, 171);
}

.searchinput {
    padding: 5px;
    width: 90%;
    padding-left: 8px;
    margin-top: 0;
    margin-bottom: 5px;
}

.glass,
button,
.searchinput {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    box-sizing: border-box;
}

.header-logo {
    margin-top: 20px;
}


.game-banner,
.game-card,
.game-icon {
    margin-top: 35px;
    border-radius: 10px;
    min-height: 125px;
    width: calc(100% - 40px);
    max-width: 600px;
    display:flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.article p {
    margin: 8px;
    text-align: left;
}

.article {
    text-align: left;
    padding-left: 10%;
}

h2 {
    margin: 10px;
    text-align: left;
}

.article h1{
    margin-bottom: 10px;
}

.gform {
    height: 500px !important;
    overflow: hidden !important;
    border:0;
}

.game-icon {
    margin-top: 10px;
}

.game-card {
    width: 100%;
    height: 110px;
    cursor: pointer;
    margin-top: 10px;
}

.game-icon img {
    border-radius: 10px;
}

.game-icon {
    width: 90px;
    min-height: 90px;
    overflow: unset;
}

.game-icon:hover h1{
    opacity: 1;
}

.desc {
    flex: 0;
    max-height: 0px;
    min-height: 90px;
    overflow: hidden;
    transition: 0.5s ease;
    opacity: 0;
}

.game-carousel div:hover .desc {
    flex: 1;
    max-width: 90%;
    max-height: 80%;
    z-index: 3;
    display: -webkit-box;          /* use flexbox-like layout for text */
    -webkit-box-orient: vertical;  /* vertical flow */
    -webkit-line-clamp: 3;         /* number of lines to show */
    overflow: hidden;              /* hide the rest */
    
    /* optional for consistent look */
    text-overflow: ellipsis; 
    opacity: 1;
}

.game-carousel div:hover h1 {
    width: 0;
    overflow: hidden;
    opacity: 0;
}

.game-banner h1,
.game-carousel div h1 {
    margin: 0;
    color: white;
    text-shadow:
    -2px -2px 0 black,
     2px -2px 0 black,
    -2px  2px 0 black,
     2px  2px 0 black;
     z-index: 2;
     transition: 0.5s ease;
     opacity: 1;
}

.game-suggest {
    margin-top: 0px;
    font-size: 22px;
    font-weight: 600;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    height: auto;
    border-radius: 10px;
    border:1px solid rgba(255, 255, 255, 0.18);
    width: calc(100% - 40px);
    max-width: 600px;
}

.game-suggest-carousel {
    display: flex;
    flex-direction: row;
    gap: 15px;
    width: 100%;
    margin-top: 8px;
    margin-left: 10px;
    margin-right: 10px;
    border-top: 2px solid white;
    overflow: wrap;
}

.game-suggest-carousel .game-icon {
    flex: 1;
    width: unset !important;
    min-height: unset !important;
    height: unset !important;
    aspect-ratio: 1 / 1 !important;
}

.game-icon h1 {
    margin: 0;
    color: white;
    text-shadow:
    -2px -2px 0 black,
     2px -2px 0 black,
    -2px  2px 0 black,
     2px  2px 0 black;
     z-index: 2;
     transition: 0.5s ease;
    opacity: 0;
    position: absolute;
    bottom: -45px;
    padding: 5px !important;
    font-size: 24px;
    padding-left: 10px;
    padding-right: 10px;
    background-color: #222;
    border-radius: 8px;
    border:1px solid rgba(255, 255, 255, 0.18);
}

.game-banner img,
.game-carousel div img,
.game-icon img{
    min-height: 100%;
    width: 100%;
    position: absolute;
    z-index: 1;
    opacity: 0.5;
}

.game-icon img{
    opacity: 0.9;
}

.game {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: calc(100% - 40px);
    margin: 20px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.ad {
    background-color: transparent;
    display: none !important; /* delete once verified */
}

.horizontal {
    display: none;
    width: 100%;
    max-width: 600px;
    max-height: 120px;
}

.desktop {
    display: block;
    width: 100%;
    max-width: 600px;
    margin-top: 15px;
}

.vertical {
    width: 120px;
    max-height: 100%;
}

#game-iframe {
    border-radius: 8px;
    margin-right: 15px;
    margin-left: 15px;
    aspect-ratio: 16 / 9;
}

.game-description {
    padding: 12px;
    border-radius: 10px;
    border:1px solid rgba(255, 255, 255, 0.18);
    width: calc(100% - 40px);
    max-width: 600px;
    margin: 15px;
    text-align: left;
    font-size: 14px;
}
.game-description h1 {
    font-size: 22px;
    margin-top: 0;
}

.game-description * {
    text-align: left !important;
    width: 99% !important;
}
.game-description h2 {
    font-size: 18px;
}

.cool-background {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #121212, #1a1a1a, #2a2a2a, #222222);
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -3;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.incognito-button {
    position:fixed;
    bottom: 10px;
    right: 10px;
    border-radius: 6px;
    display: flex;
    width: 50px;
    height: 50px;
    border:1px solid rgba(255, 255, 255, 0.18);
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.incognito-button img {
    margin: 0;
    padding: 0;
    fill: white;
    width: 80%;
}

#incognito-window {
    width: 300px;
    height: 200px;
    transition: 0.5s ease;
    position: fixed;
    bottom: 70px;
    border-radius: 10px;
    right: -300px;
    opacity: 0;
    border:1px solid rgba(255, 255, 255, 0.18);
    padding: 10px;
    display: flex;
    align-items: center;
    flex-direction: column;
    z-index: 999;
}

#incognito-window h1 {
    margin: 0;
    padding: 0;
    font-size: 22px;
}

#incognito-window button {
    font-size: 16px;
    padding: 7px;
    cursor: pointer;
}

.explorecontainer {
    width: 90%;
    display: flex;
    gap: 20px;
}

.explorecontainer .explore {
    flex: 1;
}

.header-h1 {
    font-size: 50px;
}

#popup-ad {
    position: fixed;
    top:0;
    left:0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index:9999;
    width: 100vw;
    min-height: 100vh;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.popup-x {
    position: fixed;
    top: 5px;
    right: 5px;
    padding: 5px;
    cursor: pointer;
}

.gamebar {
    border-radius: 8px;
    margin-right: 15px;
    margin-left: 15px;
    width: calc(100% - 30px);
    border-radius: 8px;
    margin-top: 10px;
    height: 50px;
    aspect-ratio: 16 / 9;
    padding: 5px;
    padding-left: 10px;
    display: flex;
    align-items: center;
    border:1px solid rgba(255, 255, 255, 0.18);
    font-size: 20px;
    font-weight: 600;
    gap: 10px;
}

#stats {
    font-weight: 400;
    font-size: 14px;
    border-left: 2px solid white;
    padding-left: 10px;
}

.gamebar img {
    position: absolute;
    right: 10px;
    height: 70%;
    cursor: pointer;
}

#like-btn {
    right: 50px;
}

.fullscreen #game-iframe {
    width: calc(100vw - 120px);
    border-radius: 0;
    border: 0;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    background-color: black;
}

.fullscreen .vertical {
    position: fixed;
    right: 0;
    top: 0;
    max-height: 50vh;
    margin: 0;
    background-color: black;
}
.fullscreen #fullscreenad {
    top: 50vh;
    bottom: 0;
}

.fullscreen .gamebar {
    position: fixed;
    left: 0;
    bottom: 0;
    margin: 0;
    width: calc(100vw - 120px);
    border-radius: 0;
    height: calc(100vh - (((100vw - 120px) * 9) / 16));
    font-size: 22px;
    background-color: #111;
    z-index: 99;
}

.fullscreen {
    overflow: hidden;
}

.iframe {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    flex: 1;
    width: 100%;
}

.footer {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    margin-top: 100px;
    margin-bottom: 20px;
    flex: 1;
}

.footer a {
    border-left: 2px solid white;
    text-decoration: none;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 18px;
}

.footer a:first-child {
    border-left: none;
}

.footer a:hover {
    text-decoration: underline;
}

.game-matrix {
    width: 90%;
    text-align: center;
}

.row {
    display: flex;
    width: 100%;
    margin-top: 8px;
    gap: 8px;
    border-radius: 8px;
}

.gm-link {
    width: calc(100% - 24px);
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
    position: relative;
}

.gm-link:hover .gm-name {
    opacity: 0;
    height: 0;
}

.gm-link:hover .gm-desc {
    opacity: 1;
}

.gm-desc {
    overflow: hidden;
    font-size: 12px !important;
    width: 95%;
    margin-left: 2.5%;
    padding: 5px;
    text-align: center;
    opacity: 0;
    transition: 0.5s ease;
    z-index: 3;
}

.gm-desc h1 {
    margin: 0;
    font-size: 14px;
    margin-bottom: 2px;
}

.gm-desc p {
    margin: 0;
    text-align: center;
    width: 100%;
    font-size: 10px;
    text-indent: 0;
}

.gm-image {
    width: 100%;
    min-height: 100%;
    position: absolute;
    top:0;
    left: 0;
    z-index: -1;
    opacity: 0.5;
}

.gm-name {
    z-index: 2;
    margin: 0;
    color: white;
    text-shadow:
    -2px -2px 0 black,
     2px -2px 0 black,
    -2px  2px 0 black,
     2px  2px 0 black;
     z-index: 2;
     transition: 0.5s ease;
     opacity: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    overflow: none;
}