/* ============================================ */
/*                 Base Styles                 */
/* ============================================ */

/* Global Font Family */

html{
    scroll-behavior:smooth;
    overflow-x: hidden;
}
body{
    background-color: #f8f8ff;
    font-weight: 400;
    font-size: 1.05rem;
    color: #1a1a1a;
    line-height: 1.3em;
    overflow-x: hidden;
}

/* Body scrollbar styles */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #dfdfef;
}

::-webkit-scrollbar-thumb {
    background-color: #bbbbdd;
    border-radius: 8px;
}

body {
    scrollbar-width: auto;
    scrollbar-color: #bbbbdd #dfdfef;
}

/* Video Progress Bar */
.video-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: rgba(255, 255, 255, 0.12);
    pointer-events: none;
    transition: width 0.3s ease;
    z-index: 10;
}

/* Hero Section */
.hero-backdrop {
    position: absolute;
    inset: -40px -380px;
    background: #f8f8ff88;
    -webkit-mask-image: 
        linear-gradient(to right, transparent 0px, black 200px, black calc(100% - 200px), transparent 100%), 
        linear-gradient(to bottom, transparent 0px, black 10px, black calc(100% - 10px), transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: 
        linear-gradient(to right, transparent 0px, black 200px, black calc(100% - 200px), transparent 100%), 
        linear-gradient(to bottom, transparent 0px, black 10px, black calc(100% - 10px), transparent 100%);
    mask-composite: intersect;
    pointer-events: none;
}

.case-studies-backdrop {
    position: absolute;
    inset: 0px -100px;
    background: #f8f8ff99;
    -webkit-mask-image: 
        linear-gradient(to right, transparent 0px, black 200px, black calc(100% - 200px), transparent 100%),
        linear-gradient(to bottom, transparent 0px, black 50px, black calc(100% - 50px), transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: 
        linear-gradient(to right, transparent 0px, black 200px, black calc(100% - 200px), transparent 100%),
        linear-gradient(to bottom, transparent 0px, black 50px, black calc(100% - 50px), transparent 100%);
    mask-composite: intersect;
    pointer-events: none;
    z-index: 0;
}

.case-study-container {
    position: relative;
    width: 80%;
    max-width: 72rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-section {
    width: 100%;
    padding:0px 2rem;
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    box-sizing: border-box;
    min-height: 100vh;
}

.hero-content {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;

}

.hero-heading {
    font-size: clamp(2rem, 2.5vw, 3.5rem);
    font-weight: 900;
    margin: 0 0 1.5rem 0;
    color: #000;
    line-height: 1.2;
}

.hero-paragraph {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight:400;
    margin: 0 0 1.5rem 0;
    line-height: 15;
    text-wrap: pretty;

}

.hero-paragraph:last-child {
    margin-bottom: 0;
}

.hero-paragraph p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #000;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

.hero-paragraph p:last-child {
    margin-bottom: 0;
}

.video-box {
    width: 40%;
    border-radius: 15px;
    align-items: center;
    min-width:380px;
    box-sizing: border-box;
    background-color:#efefff; 
    border:3px solid #bbbbdd; 
    position: relative; 
    display: flex; 
    flex-direction: column;
    height:auto;
    color:#8888aa;
    
}

.hero-video-box {
    width:50%;
}

.video-box-wrapper {
    padding: 0px;
}

/* Video box top header */
.video-box-header {
    padding-top:20px !important;
    font-weight: 300;
    color: #a1a1bb;
}

/* Hero Video Navigation Buttons */
.video-box {
    position: relative;
}



.hero-video-container {
    position: relative;
    width: calc(100% - 40px);
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 852 / 480;
    margin: 20px 20px 0 20px;
    box-sizing: border-box;
    background-color: black;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
    display: block;
    opacity: 1;
}

/* Video loader */
.video-loader {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,1);
    color: #ddddff;
    z-index: 5;
}

.videoInfoSection {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    margin: auto;
    padding-top: 10px;
    padding-bottom: 5px;
}

/* Video title and arrows container */
.video-title-arrows {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    align-self: center;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Video title display */
.video-title-display {
    height: 3em;
    font-size: 1em;
    font-weight: 700;
    text-align: center;
    flex: 1;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-wrap: balance;
}

/* Video description scrollbar wrapper */
.video-box-wrapper .descriptionScrollbarWrapper {
    height: 190px;
    margin-top: 9px;
}

/* Video description */
.video-description {
    font-size: 0.9em;
    font-weight: 400;
    max-width: 380px;
    text-align: center;
    line-height: 1.3;
    display: block;
    padding-top: 0;
    padding-bottom: 18px;
    transition: opacity 0.3s ease;
    color: #777799;

}

.hero-video-description {
    max-width: 360px !important;
}

/* Arrow indicator */
.video-arrow {
    background-color: transparent;
    height: 40px;
    width: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-video-arrow{
    height:20px;
}

.video-arrow-triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 15px solid #bbbbdd;
}

.videoInfoSection::before,
.videoInfoSection::after {
    content: '';
    flex: 1 1 auto;
    min-width: 0;
}

.videoInfo {
    flex: 0 1 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color:fuchsia;
    margin: 0 00px; /* ensures exactly 20px gap between videoInfo and each arrow */
}

/* Video Navigation Dots */
.video-nav-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-bottom: 20px;
}

.video-nav-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #bbbbdd;
    color: #555577;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.video-nav-dot:hover {
    background-color: #9999cc;
    transform: scale(1.1);
}

.video-nav-dot.active {
    background-color: #6644ff;
    color: #ffffff;
    transform: scale(1.15);
}

.descriptionScrollbarWrapper {
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    width: calc(100% - 1px);
    box-sizing: border-box;
    mask-image: 
        linear-gradient(to bottom, transparent 5px, black calc(5px + 2.25%), black 95.5%, transparent 100%),
        linear-gradient(to bottom, black 0%, black 100%);
    mask-size: calc(100% - 20px) 100%, 20px 100%;
    mask-position: left center, right center;
    mask-repeat: no-repeat;
    -webkit-mask-image: 
        linear-gradient(to bottom, transparent 5px, black calc(5px + 2.25%), black 95.5%, transparent 100%),
        linear-gradient(to bottom, black 0%, black 100%);
    -webkit-mask-size: calc(100% - 20px) 100%, 20px 100%;
    -webkit-mask-position: left center, right center;
    -webkit-mask-repeat: no-repeat;
}

.descriptionScrollbarWrapper::-webkit-scrollbar {
    width: 24px;
}

.descriptionScrollbarWrapper::-webkit-scrollbar-track {
    background: transparent;
}

.descriptionScrollbarWrapper::-webkit-scrollbar-thumb {
    background-color: #bbbbdd;
    border-radius: 12px;
    border: 6px solid transparent;
    background-clip: padding-box;
}



.descriptionScrollbarWrapper {
    scrollbar-width: auto;
    scrollbar-color: #bbbbdd transparent;
}

.hidden-video-description,
.hidden-video-title {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.hero-nav-btn {
    position: relative;
    font-weight: 300;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #bbbbdd;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    font-size: clamp(1.5rem, calc(1.5rem + 0.5rem * ((100vw - 900px) / 252px)), 2rem);
    flex: 0 0 auto; /* prevent arrows from stretching; keeps them adjacent to videoInfo */
    transform: none;
    padding: 0;
    flex-shrink: 0;
}

.hero-nav-btn:hover {
    color: #9993bb;
}

.hero-nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    z-index: -2;
}

.hero-nav-img {
    height: clamp(24px, 3vw, 32px);
    width: clamp(24px, 3vw, 32px);
}


/* Video box description paragraphs stack vertically */
.video-box-wrapper .hidden-video-description,
.video-box-wrapper [id$="VideoDescription"] {
    display: block !important;
}

.video-box-wrapper [id$="VideoDescription"] p {
    display: block;
}

.games-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #ccccdd;
}

.role-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.role-container {
    position: relative;
    width: 80%;
    max-width: 44rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.role-backdrop {
    position: absolute;
    inset: 0 -300px;
    background: #f8f8ff99;
    -webkit-mask-image: 
        linear-gradient(to right, transparent 0px, black 360px, black calc(100% - 360px), transparent 100%), 
        linear-gradient(to bottom, transparent 0px, black 50px, black calc(100% - 50px), transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: 
        linear-gradient(to right, transparent 0px, black 360px, black calc(100% - 360px), transparent 100%), 
        linear-gradient(to bottom, transparent 0px, black 50px, black calc(100% - 50px), transparent 100%);
    mask-composite: intersect;
    pointer-events: none;
    z-index: 0;
}

* {
    font-family: 'Roboto', sans-serif;
}

/* Card Styles */
.card {
    background-color:#f8f8ff;
    margin: 0 auto;
}

.card.gamecard {
    row-gap: 0.5rem;
    padding: clamp(1rem, 1.5vw, 2rem);
    width: 90%;
    max-width: 64rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: 15px;
    border: 1px solid #110033;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
    min-width: 0;
    font-size: clamp(0.9rem, 1.5vw, 1rem) !important;
    line-height: 1.3em;
    box-sizing: border-box;
}

.game-note {
    padding: clamp(0.75rem, 1vw, 1.25rem);
    width: 21rem !important;
    text-align: center;
}

.gamecard-top {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: clamp(2rem, 2vw, 6.75rem);
    width: 100%;
}

.gamecard-bottom {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(2rem, 2vw, 6.75rem);
    width: 100%;

}

.gamecard-bottom-left {
    flex: 0 0 auto;
    width:50%;
    max-width: 428px;
}

.gamecard-bottom-right {
    flex: 1;
}

.gamecard-platform-mobile {
    display: none;
}

.card.rolecard {
    text-align: left;
    gap: clamp(1rem, 2vw, 6.75rem); /* 48px - 108px */
    padding: 2rem 3rem 2rem 3rem;
    width: 100%;
    max-width: 44rem;
    background-color: transparent;
    position: relative;
    z-index: 1;
}

.card.casecard {
    gap: clamp(2rem, 4vw, 12rem); /* 48px - 108px */
    padding: 2rem 3rem 2rem 3rem;
    width: 100%;
    max-width: 72rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background-color: transparent;
    position: relative;
    z-index: 1;
}

.card.casecard.flipped {
    gap: clamp(1rem, 2vw, 6.75rem); /* 48px - 108px */
    flex-direction: row-reverse;

}

.video-box-wrapper-content {
    width: 50%;
    min-height: 200px;
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 1;
}


.casecard-content{
    width: 50%;
    height: 100%;
    position: relative;
    z-index: 1;
}
.casecard-back {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

.casecard-back a {
    flex: 0 0 auto;
    text-align: center;
}

.casecard-back-desktop {
    display: flex;
}

.casecard-back-mobile {
    display: none;
}

@media only screen and (max-width: 850px) {
    .casecard-back-desktop {
        display: none;
    }
    
    .casecard-back-mobile {
        display: flex;
    }
}

.game-title {
    color: #bbbbcc;
    font-size: 0.9em;
    font-weight: 500;
    margin: 0 0 0.1rem 0;
    text-transform: uppercase;
}


.header{
    font-size: clamp(1.9375rem, 2vw, 5rem);
    color: #1a1a1a;
    margin: 0;
    font-weight: 900;
    line-height: 1.1em;
    text-align: inherit;
    text-wrap: balance;


}

.smallheader{
    font-size: clamp(1.9375rem*0.8, 2vw*0.8, 5rem*0.8);
    color: #1a1a1a;
    margin: 0;
    font-weight: 800;
    line-height: 1.1em;
    text-align: inherit;
    text-wrap: balance;
}

/* ============================================ */
/*                 Game Card Styles            */
/* ============================================ */

/* Game Card Picture Container */
.gamecard-image-container {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 50%;
}
.gamecard-text{
    width: calc(90% + 10% * ((100vw - 768px) / 1152px));
}

.gamecard-picture {
    position: relative;
    display: inline-block;
    line-height: 0;
    width: 100%;
    max-width: 428px;
    height: 243px;
    box-sizing: border-box;
}

/* Game Card Picture */
.gamecard-picture img {
    border: 5px solid #bbbbdd; /* border */
    object-fit: cover;
    border-radius: 15px;
    width: 100%;
    max-width: 428px;
    height: 243px;
    display: block;
    box-sizing: border-box;
}

/* Dual-image wrapper (for last gamecard) - keeps combined width equal to single image */
.dual-image-wrapper {
    width: 428px; /* match single .gamecard-picture max-width */
    display: flex;
    gap: 10px; /* same gap used in template */
    justify-content: center;
    align-items: stretch;
    box-sizing: border-box;
}

.dual-image-wrapper .gamecard-picture.dual {
    width: 100%;
    height: 365px; /* 50% taller than 243px */
    max-width: none;
    display: block;
}

.dual-image-wrapper .gamecard-picture.dual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    border: 5px solid #bbbbdd;
    box-sizing: border-box;
}


/* Game Card Content */
.gamecard-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-start;
    min-width: 50%;
}

/* Game Card Links Container */
.gamecard-links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
}



 .firsttable {
  width: 75% !important;
}

.resizable {
    font-size: clamp(0.9rem, 1.5vw, 1rem) !important;

}
/* Text Links Container */
.textlinks-container {
    margin:0 !important;
    padding:0 !important;
}


.textlinks-container.narrow {
    width: auto;
}

.textlinks-container.wide {
    width: auto;
}

/* Link Headers */
.link-header {
    color: #9999bb;
    margin-top: auto;
    margin-bottom: 0.5em;
    line-height: 1.2;
    text-align: center;
    font-weight: 300;
}

.link-header span {
    font-weight: 500;
}

/* Global link styling */
a,
.link {
    color: #8888aa;
    transition: color 0s ease;
    font-weight: 500;
    line-height: 1;
    text-decoration: underline;
}

::selection {
    background-color: #aaaaff; /* highlight color */
    color: #000000; /* text color */
  }

a:hover,
.link:hover {
    color: #6644ff;
}

.case-study-link.bold {
    font-weight: 500;
}


/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #6644ff00;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 15px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.video-overlay:hover {
    background-color: #6644ff88;
}

.video-overlay:hover .video-text {
    opacity: 1;
}

.video-text {
    color: white;
    font-size: 32pt;
    font-weight: bold;
    width: 85%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 2px 2px 8px black;
}



/* ============================================ */
/*                 Modal Styles                */
/* ============================================ */

/* Video Modal */
#videoModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(32, 0, 51, 0);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

#videoContent {
    position: relative;
    width: 70%;
    max-width: 1200px;
    background-color: black;
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


    
.platform-icon {
    width: 28px;
    height: 28px;
}

.small-icon {
    width: 12px;
    height: 12px;
}

@keyframes blinkArrow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.blink-arrow {
    animation: blinkArrow 2s ease-in-out infinite;
}

.blink-arrow.dismissed {
    animation: none;
    opacity: 0;
}



.lds-ellipsis,
.lds-ellipsis div {
  box-sizing: border-box;
}
.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ellipsis div {
  position: absolute;
  top: 33.33333px;
  width: 13.33333px;
  height: 13.33333px;
  border-radius: 50%;
  background: currentColor;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

/* Video loader overlay - moved to earlier in file */
.video-loader .lds-ellipsis {
        width: 48px;
        height: 24px;
        position: relative;
}
.video-loader .lds-ellipsis div {
        top: 6px;
        width: 8px;
        height: 8px;
}

/* Adjust positions and animations for the smaller loader so it is visually centered */
.video-loader .lds-ellipsis div:nth-child(1) {
    left: 4px;
    animation: lds-ellipsis1-small 0.6s infinite;
}
.video-loader .lds-ellipsis div:nth-child(2) {
    left: 4px;
    animation: lds-ellipsis2-small 0.6s infinite;
}
.video-loader .lds-ellipsis div:nth-child(3) {
    left: 20px;
    animation: lds-ellipsis2-small 0.6s infinite;
}
.video-loader .lds-ellipsis div:nth-child(4) {
    left: 36px;
    animation: lds-ellipsis3-small 0.6s infinite;
}

@keyframes lds-ellipsis1-small {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}
@keyframes lds-ellipsis3-small {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}
@keyframes lds-ellipsis2-small {
    0% { transform: translate(0, 0); }
 100% { transform: translate(16px, 0); }
}



/* ============================================ */
/*            Gamecard Case Links              */
/* ============================================ */

.gamecard-caselinks {
    display: flex;
    box-sizing: border-box;
    padding: 0 0px;
    gap: 0px;
    width: 120%;
    position: relative;
    left: 50%;
transform: translateX(
  calc(
    -50% -
    clamp(
      0px,
      (1920px - 100vw) * (100 / 1920),
      100px
    )
  )
);
}

.gamecard-caselink {
    overflow:visible;

}
.gamecard-caselinks > div {
    flex: 1;
    text-align: center;

}



/* ============================================ */
/*                 Responsive                  */
/* ============================================ */

@media only screen and (max-width: 950px) {
    .hero-section {
        flex-direction: column;
        padding: 1rem 0.5rem;
        width: 100%;
        max-width: 600px;
        margin: 4rem auto;
        box-sizing: border-box;
    }
    
    .hero-content {
        width: 100%;
        margin-bottom: 2rem;
        box-sizing: border-box;

    }
    
.hero-nav-img {
    height: clamp(24px, 4.5vw, 32px);
    width: clamp(24px, 4.5vw, 32px);
}

    .video-box-wrapper {
        padding: 20px 20px 0 20px !important;
    }

    .video-box {
        width: 100%;
        max-width: 500px !important;
        box-sizing: border-box;
        max-height: none;
        align-self: center;
        padding: 0;

    }

    .card.gamecard .gamecard-game-title{
        display:none;
    }
    

    .video-text {
        font-size: 24pt;
    }
    
    .icon-container {
        width: 90%;
    }
    
    .gamecard-links-container {
        gap: 1rem;
        width: 100%;
        margin-top: 0;
    }
    


    
     .firsttable {
      width: 55% !important;
      transform: translateX(10px);
      min-width: 300px;
    }

    .card {
        flex-direction: column !important;
        padding: 1rem 1.5rem;
        width: 90%;
    }

    .case-study-container {
        width: 100%;
    }

    .role-container {
        width: 100%;
    }

    .card.gamecard {
    text-align: center;
    gap: 0.5rem;
    max-width: 500px;
    width: 80%;
    }

    .gamecard-text {
        width:80%;
        align-self:center;
    }

    .gamecard-image-container {
        width: 90%;
    }

    .card.rolecard {
        width:80%;
        max-width: 600px;
        padding: 1rem 0rem;
    }

    .card.casecard {
        flex-direction: column !important;
        padding: 1rem 0rem;
        width: 90%;
        max-width: 700px;
    }

    .card.casecard.flipped {
        flex-direction: column !important;
    }

    .casecard-content {
        width: 90% !important;
        align-self:center;
    }
    
    .video-box-wrapper-content {
        width: 90% !important;
    }

    .gamecard-image-container {
        flex: 0 0 auto;
        min-width: 0;
        max-width: 100%;
        justify-content: center;
    }

    .gamecard-top {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .gamecard-bottom {
        flex-direction: column;
        align-items: center;

    }

    .gamecard-bottom-left {
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .gamecard-bottom-right {
        width: 100%;
    }

    .gamecard-platform-mobile {
        display: block;
    }

    .gamecard-platform-desktop {
        display: none;
    }
    
    .gamecard-picture {
        max-width: 100%;
        height: auto;
    }
    
    .gamecard-picture img {
        flex: 0 0 auto;
        min-width: 0;
        max-width: 100%;
        max-height: 100%;
        height: auto;
    }

.gamecard-caselinks {
    width: 100%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    gap:10px;
    padding-top:20px;
}

    .game-note {
        width: 21rem !important;
    }

}

@media only screen and (max-width: 610px) {
    .casecard-back {
        flex-direction: column;
        align-items: center;
    }
    
    .casecard-back a {
        width: auto;
        min-width: auto;
    }
}
