@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;700&display=swap");
@font-face {
    font-family: "nasalization";
    src: url("../fonts/nasalizationrg.otf") format("truetype");
}
@font-face {
    font-family: "floridaSerialRegular";
    src: url("../fonts/Florida-Serial Regular.ttf") format("truetype");
}
* {
    margin: 0;
    padding: 0;
    font-family: 'Khula', sans-serif;
}

.no-border {
    border: none !important;
}

#header-title {
    font-family: 'nasalization';
    text-align: center;
    color: white;
    padding-left: 0;
    font-size: clamp(0.85rem, 3.5vw, 1.25rem);
}

@media (min-width: 768px) {
    #header-title {
        padding-left: 100px;
    }
}

.section-title {
    font-size: 1.2em;
}

#suggested_games_title {
    margin-left: 0;
    margin-bottom: 1.2em;
}

.suggested-games-section {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.card-title {
    font-family: "floridaSerialRegular";
}

.game-frame-wrapper {
    position: relative;
    width: 100%;
}

#game-iframe {
    display: block;
    width: 100%;
    height: min(56.25vw, 400px);
    min-height: 220px;
    border: 0;
    border-radius: 1.5rem;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

#fullscreen-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
    background-color: #70c8ff;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    border-radius: 20%;
    border: 3px solid #5da7d5;
    padding: 0;
    box-sizing: border-box;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

#fullscreen-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

#fullscreen-button:hover {
    transform: scale(1.05);
}

.game-frame-wrapper.game-frame-fullscreen,
.game-frame-wrapper:fullscreen,
.game-frame-wrapper:-webkit-full-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    width: 100vw;
    height: 100vh;
    max-width: none;
    background: #000;
    border-radius: 0;
}

.game-frame-wrapper.game-frame-fullscreen #game-iframe,
.game-frame-wrapper:fullscreen #game-iframe,
.game-frame-wrapper:-webkit-full-screen #game-iframe {
    width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: 0;
    box-shadow: none;
}

body.game-fullscreen-active {
    overflow: hidden;
}

@media (min-width: 768px) {
    #game-iframe {
        height: 400px;
    }
}

#game-name {
    font-family: 'floridaSerialRegular';
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .carousel-item {
        margin-right: 0;
        flex: 0 0 33.333333%;
        display: block;
    }

    .carousel-inner {
        display: flex;
    }
}

/* ========================================================================================================================================================================================================================================================================== */

#game_info_section {
    width: 100%;
    margin-left: 0;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    #game_info_section {
        width: 100%;
        margin-left: 0;
        margin-top: 0;
    }
}

/* ========================================================================================================================================================================================================================================================================== */

.play-link p {
    color: white;
}

.bug-text {
    font-size: 12px;
}

.card:hover .hidden {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s, visibility 0.3s;
}

.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}


.suggested-game-card {
    background-color: #2f2344 !important;
    color: white;
    margin-left: 0;
    border-radius: 15px !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    transform: scale(1);
    transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 0.35s cubic-bezier(0.29, 0.97, 0, 1.85);
    overflow: hidden;
}

.suggested-game-card .card-title {
    font-size: 0.95rem;
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
    padding: 0 0.5rem;
}

.suggested-game-card .card-img-top {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-bottom: 0.5px solid white;
}

.suggested-game-col {
    display: flex;
}

@media (hover: hover) {
    .suggested-game-card:hover {
        box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
        transform: scale(1.02);
    }
}

.card-img-top {
    border-radius: 15px 15px 0px 0px !important;
}
/* ================================================================================================================================================================================== */

.play-link > p {
    color: #908a9c;
    font-family: 'Roboto Mono', monospace;
    font-size: 15px;
    letter-spacing: 1px;
    transition: font-size .35s cubic-bezier(0.42, 0, 0.05, 0.99), color .35s cubic-bezier(0.42, 0, 0.05, 0.99);
}

.playDivider {
    transform-origin: left;
    transform: scaleX(0);
    transition: transform .35s cubic-bezier(0.42, 0, 0.05, 0.99);
}

.play-link:hover > p{
    /* font-size: 17px; */
    color: white;
}

.play-link:hover .playDivider{
    transform: scaleX(1);
}

.play-link:not(:hover) .playDivider{
    transform-origin: right;
    transform: scaleX(0);
}
/* ================================================================================================================================== */

.light-mode .game-link.active {
    color: black;
}

.dark-mode .game-link.active {
    color: white;
}

.light-mode .game-link:not(.active) {
    color: grey;
}

.dark-mode .game-link:not(.active) {
    color: grey;
}

.light-mode .game-link:not(.active):hover {
    color: black;
}

.dark-mode .game-link:not(.active):hover {
    color: white;
}

.light-mode #game-name,
.light-mode #game-description {
    color: black;
}

.dark-mode #game-name {
    color: white;
}
.dark-mode #game-description {
    color: #b7b2bc;
}

.light-mode #game_info_section
.light-mode .list-group-item {
    background-color: white;
    color: black;
}

.dark-mode #game_info_section,
.dark-mode .list-group-item {
    background-color: #140022;
    color: #b7b2bc;
    border-color: #b7b2bc;
}

.light-mode .divider {
    background-color: black;
}

.dark-mode .divider {
    background-color: #2f2344;
}

.list-group-item span {
    float: right;
}

/* .light-mode .section-title {
    font-weight: bold;
} */

.dark-mode .section-title {
    color: white;
}

/* ========================================================================================================================================================================================================================================================================== */
footer {
    background-color: #302144;
    color: white;
    padding: 20px;
    font-family: 'nasalization'; 
}

#contactUsDiv{
    width: 6.4em;
    margin-left: 13em;
}

#contactUs {
    float: right;
    margin-top: 1em;
    color: #908a9c;
    text-decoration: none;
    transition: color .35s cubic-bezier(0.42, 0, 0.05, 0.99);
}

#contactUsDivider{
    background:linear-gradient(to right, rgb(29, 13, 68) 5%, rgb(89, 38, 81) 15%, rgb(165, 63, 91) 35%, rgb(239, 89, 102) 55%, rgb(244, 124, 51) 75%, rgb(249, 160, 0));
    transform-origin: left;
    transform: scaleX(0);
    transition: transform .35s cubic-bezier(0.42, 0, 0.05, 0.99);
}

#contactUsDiv:hover #contactUsDivider{
    transform: scaleX(1);
    color: white;
}

#contactUsDiv:not(:hover) #contactUsDivider{
    transform-origin: right;
    transform: scaleX(0);
    color: #908a9c;
}

#contactUsDiv:hover #contactUs{
    color: white;
}

.dark-mode #contactUsDiv:not(:hover) #contactUs{
    color: #908a9c;
}
.light-mode #contactUsDiv:not(:hover) #contactUs{
    color: #bbbbbb;
}
.social-icon {
    width: 40px;
    height: 40px;
    margin: 5px;
    background-color: #fff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    transform: scale(1);
    transition: transform 0.35s cubic-bezier(0.29, 0.97, 0, 1.85), -webkit-transform .35s cubic-bezier(0.29, 0.97, 0, 1.85), -o-transform .35s cubic-bezier(0.29, 0.97, 0, 1.85);
}

.social-icon:hover {
    text-decoration: none;
    transform: scale(1.1);
}
