:root {
    --container-width: 1000px; /* Width of the container */
    --card-width: 240px; /* Width of individual cards to fit 4 in a row within 1000px */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html {
    scroll-behavior: smooth;
}


/* Animations */

.rotate-in-center {
	-webkit-animation: rotate-in-center 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	        animation: rotate-in-center 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.roll-in-blurred-left {
	-webkit-animation: roll-in-blurred-left 0.65s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
	        animation: roll-in-blurred-left 0.65s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
}

.slide-in-blurred-top {
	-webkit-animation: slide-in-blurred-top 0.6s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
	        animation: slide-in-blurred-top 0.6s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
}

.swing-in-top-fwd {
	-webkit-animation: swing-in-top-fwd 0.5s cubic-bezier(0.175, 0.885, 0.320, 1.275) 0.3s both;
	        animation: swing-in-top-fwd 0.5s cubic-bezier(0.175, 0.885, 0.320, 1.275) 0.3s both;
}

 @-webkit-keyframes swing-in-top-fwd {
    0% {
      -webkit-transform: rotateX(-100deg);
              transform: rotateX(-100deg);
      -webkit-transform-origin: top;
              transform-origin: top;
      opacity: 0;
    }
    100% {
      -webkit-transform: rotateX(0deg);
              transform: rotateX(0deg);
      -webkit-transform-origin: top;
              transform-origin: top;
      opacity: 1;
    }
  }
  @keyframes swing-in-top-fwd {
    0% {
      -webkit-transform: rotateX(-100deg);
              transform: rotateX(-100deg);
      -webkit-transform-origin: top;
              transform-origin: top;
      opacity: 0;
    }
    100% {
      -webkit-transform: rotateX(0deg);
              transform: rotateX(0deg);
      -webkit-transform-origin: top;
              transform-origin: top;
      opacity: 1;
    }
  }
  

 @-webkit-keyframes slide-in-blurred-top {
    0% {
      -webkit-transform: translateY(-1000px) scaleY(2.5) scaleX(0.2);
              transform: translateY(-1000px) scaleY(2.5) scaleX(0.2);
      -webkit-transform-origin: 50% 0%;
              transform-origin: 50% 0%;
      -webkit-filter: blur(40px);
              filter: blur(40px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateY(0) scaleY(1) scaleX(1);
              transform: translateY(0) scaleY(1) scaleX(1);
      -webkit-transform-origin: 50% 50%;
              transform-origin: 50% 50%;
      -webkit-filter: blur(0);
              filter: blur(0);
      opacity: 1;
    }
  }
  @keyframes slide-in-blurred-top {
    0% {
      -webkit-transform: translateY(-1000px) scaleY(2.5) scaleX(0.2);
              transform: translateY(-1000px) scaleY(2.5) scaleX(0.2);
      -webkit-transform-origin: 50% 0%;
              transform-origin: 50% 0%;
      -webkit-filter: blur(40px);
              filter: blur(40px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateY(0) scaleY(1) scaleX(1);
              transform: translateY(0) scaleY(1) scaleX(1);
      -webkit-transform-origin: 50% 50%;
              transform-origin: 50% 50%;
      -webkit-filter: blur(0);
              filter: blur(0);
      opacity: 1;
    }
  }
  

 @-webkit-keyframes roll-in-blurred-left {
    0% {
      -webkit-transform: translateX(-1000px) rotate(-720deg);
              transform: translateX(-1000px) rotate(-720deg);
      -webkit-filter: blur(50px);
              filter: blur(50px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateX(0) rotate(0deg);
              transform: translateX(0) rotate(0deg);
      -webkit-filter: blur(0);
              filter: blur(0);
      opacity: 1;
    }
  }
  @keyframes roll-in-blurred-left {
    0% {
      -webkit-transform: translateX(-1000px) rotate(-720deg);
              transform: translateX(-1000px) rotate(-720deg);
      -webkit-filter: blur(50px);
              filter: blur(50px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateX(0) rotate(0deg);
              transform: translateX(0) rotate(0deg);
      -webkit-filter: blur(0);
              filter: blur(0);
      opacity: 1;
    }
  }
  

 @-webkit-keyframes rotate-in-center {
    0% {
      -webkit-transform: rotate(-360deg);
              transform: rotate(-360deg);
      opacity: 0;
    }
    100% {
      -webkit-transform: rotate(0);
              transform: rotate(0);
      opacity: 1;
    }
  }
  @keyframes rotate-in-center {
    0% {
      -webkit-transform: rotate(-360deg);
              transform: rotate(-360deg);
      opacity: 0;
    }
    100% {
      -webkit-transform: rotate(0);
              transform: rotate(0);
      opacity: 1;
    }
  }
  

/* Game Card Container Style */

.container {
    margin: 0 auto;
    justify-content: center;
    width: var(--container-width);
    margin: 0 auto; /* Center the container */
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns, each taking 1 fraction of the available space */
    gap: 20px; /* Space between cards */
    padding: 30px; /* Padding around the grid */
}


.container.grid {
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 50px auto;
    justify-content:flex-start;
}

.container.grid .showcaseCard {
    position: relative;
    max-width: calc(33.33% - 20px);
    min-height: 600px !important;
    padding-bottom: 20px !important;
    margin-right: 20px;
    margin-bottom: 20px;
    transition: 0.4s all;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    margin:auto;
}

/* Adjust margin-right for every 3rd item in the grid */
.container.grid .showcaseCard:nth-child(3n) {
    margin-right: 0;
}

/* Ensure the last row of grid items doesn't have a margin-bottom */
.container.grid .showcaseCard:nth-last-child(-n+3) {
    margin-bottom: 0;
}

.grid .showcaseCard a{
    position: absolute;
    width: fit-content;
    height: fit-content !important;
    padding: 5px 20px; 
    bottom: 65px;
}
.grid .showcaseCard:hover{
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);

}

.game-card {
    margin-bottom: 20px;
    width: 250px;
    margin: auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.game-card img {
    width: 100%; /* Image takes full width of the card */
    height: 250px; /* Fixed height for the image */
    object-fit: cover; /* Ensures the images cover the area */
}

.game-card h3 {
    font-size: 1.2em;
    margin: 16px 0; /* Space above and below the game title */
}

.game-card p {
    font-size: 1em;
    margin: 8px 0; /* Space above and below the game stats */
    color: #333;
}


/* -- Skeleton -- */

@keyframes skeleton-loading {
    0% {
        background-color: #ddd;
    }
    50% {
        background-color: #ccc;
    }
    100% {
        background-color: #ddd;
    }
}

/* Skeleton card style */

.skeleton {
    animation: skeleton-loading 1s infinite ease-in-out;
    height: 250px; /* Match the height of your game card images */
    transition: 0.3s all;
}

.skeleton:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Showcase Cards */
/* Showcase container */

.showcaseCard-playing {
    white-space: nowrap !important; /* Prevent text from wrapping */
    overflow: hidden !important; /* Hide overflow text */
    text-overflow: ellipsis !important; /* Show ellipsis (...) for overflow text */
}

.showcase {
    height: 100%;
    transform: scale(0.85);
    flex: 1 1 calc(100% - 40px); /* Flex grow, flex shrink, and flex basis using calc */
    transform-origin: center; /* Ensures the scaling happens from the center */
    margin: 20px auto; /* Adjusts margin for visual alignment, might need tuning */
    gap: 40px;
    justify-content: center;
    align-items: flex-start; /* Align items to the top */
    margin: 0 auto;
    display: flex;
    transition: 0.3s all;
}

/* Base styles for all showcase cards */
.showcaseCard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: black;
    border-radius: 5px;
    margin: 10px;
    padding: 20px;
    transition: background-color 0.3s ease;
}

/* Specific styles for small showcase cards */
.showcaseCard-small {
    flex: 0 1 calc(50% - 40px); /* Smaller width */;
}

/* Specific styles for medium showcase cards */
.showcaseCard-medium {
    flex: 0 1 calc(50% - 25px); /* Medium width */
}

.showcaseCard-medium {
    cursor: default !important;
}

/* Specific styles for large showcase cards */
.showcaseCard-large {
    flex: 0 1 calc(45% - 20px); /* Larger width */
}

.showcaseCard-small .showcaseCard-logo {
    width: 150px; /* Custom size for large card logo */
    height: 150px;
}

.showcaseCard-medium .showcaseCard-logo {
    width: 200px; /* Custom size for large card logo */
    height: 200px;
}

.showcaseCard-large .showcaseCard-logo {
    width: 250px; /* Custom size for large card logo */
    height: 250px;
}

.showcaseCard-logo {
    border-radius: 25px;
}

/* Styles for the game name */
.showcaseCard-name {
    padding-top: 25px;
    margin: 0 auto;
    text-align: center;
    font-weight: bold;
    font-size: 26px;
    font-weight: bold;
    margin: 5px 0;
}

/* Styles for the playing count */
.showcaseCard-playing {
    font-weight: bold;
    font-size: 25px;
    margin: 3px 0;
}

/* Styles for the visits count */
.showcaseCard-visits {
    font-size: 25px;
    font-weight: bold;
    margin: 3px 0;
}

/* Showcase Skeleton Anim CSS */

/* Base showcase skeleton style */
.showcase-skeleton {
    border-radius: 8px;
    background-color: #eee;
    animation: skeleton-loading 1s infinite ease-in-out;
    transition: 0.3s all;
}

/* Hover effect for all showcase skeletons */
.showcase-skeleton:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Specific showcase skeleton sizes */
.showcase-skeleton-large {
    width: 250px;
    height: 250px;
}

.showcase-skeleton-medium {
    width: 200px;
    height: 200px;
}

.showcase-skeleton-small {
    width: 150px;
    height: 150px;
}

/* Header */

.header {
    transition: all 0.3s ease-in-out; /* Smooth transition for the sticky effect */
    height: 80px;
    padding: 20px;
    margin: 0 auto;
    align-items: center;
    color: white;
    display: flex;
    justify-content: space-between;
    background-color: #3399ff;
    width: 100%; /* Ensures the header takes up full width */
    top: 0;
    z-index: 100; /* Ensure it stays on top of other content, adjust as needed */
}

.sticky {
    position: fixed; /* Changes position to fixed when sticky */
    top: 0;
    left: 0;
    width: 100%; /* Maintain full width when sticky */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); /* Adds a shadow for better visibility */
}


.header-buttons a {
    font-weight: bold;
    padding-right: 20px;
    font-size: 20px;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
}

.header-buttons a:hover {
    transition: all 0.3s;
    font-size: 18px;
}

.header-logo {
    gap: 15px;
    align-items: center;
    display: flex;
}

.header-logo img {
    width: 70px;
}

/* Hero Section */

.hero-section {
    padding-top: 50px;
    padding-bottom: 50px;
    text-align: center;
    flex-direction: column;
    display: flex;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    color: white;
    height: 98vh !important;
    background-image: url(../src/background.webp);
    background-repeat: no-repeat;
    background-size: cover;
}

/* chemi dawerilia */
    @media screen and (max-width:768px) {
        .hero-section{
            background-size: 390vh;
        }
    }
/* chemi dawerilia */



@media screen and (max-width:768px) {
    .container.grid .showcaseCard:nth-child(3n) {
        margin-right: auto;
    }
    .roll-in-blurred-left{
        height: auto;
        width: 50px;
    }
    .totals-container img{
        height: auto;
        width: 30px;
    }
    .hero-section-title img{
        width: 70px !important;
    }
    .hero-section-title h1{
        font-size: 28px !important;
    }
    .hero-section p{
        font-size: 28px !important;
    }
    .hero-section-buttons a{
        font-size: 20px !important;
        padding: 5px 20px !important;

    }
}

.hero-section-title {
    align-items: center;
    display: flex;
}

.hero-section-title h1 {
    font-size: 80px;
}

.hero-section-info p {
    margin:  0 auto;
    text-align: center;
    width: 100%;
    font-weight: 500;
    font-size: 30px;
    text-wrap: wrap;
}

.hero-section-buttons {
    margin-bottom: 20px;
    margin-top: 20px;
}

.hero-section-title img {
    width: 150px;
}

#exploreOurGames {
    font-weight: bold;
    border-radius: 7px;
    background-color: #3399ff;
    border: none;
    color: white;
    padding: 15px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    transition: 0.3s all;
}

#exploreOurGames:hover {
    background-color: white;
    color: #3399ff;
    transition: 0.3s all;
}


#talkToUs {
    font-weight: bold;
    border-radius: 7px;
    background-color: white;
    border: none;
    color: #3399ff;
    padding: 15px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    transition: 0.3s all;
}

#talkToUs:hover {
    background-color: #3399ff;
    color: white;
    transition: 0.3s all;
}

/* Total Playing and Visits */

.totals-container {
    gap: 20px;
    display: flex;
    justify-content: center;
    margin-top: 50px; /* Adjust as needed */
}

.total-item {
    flex-direction: column;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and number */
}

.total-icon {
    width: 50px !important; /* Adjust based on your icon size */
    height: 50px !important; /* Adjust based on your icon size */
}

#total-playing, #total-visits, #total-games {
    font-size: 24px; /* Large font size for emphasis */
    font-weight: bold;
    color: white;
}

.total-item p {
    font-weight: bold;
    margin: 0;
    color: white;
}

/* Misc */

.makeGameStatsTransparent {
    display: none;
}

.showcaseTitle {
    color: #3399ff;
    padding-top: 50px;
    padding-bottom: 50px;
    font-size: 50px;
    text-align: center;
    display: flex;
    margin: 0;
    align-items: center;
    justify-content: center;
}

/* About */

.aboutinfoheader1 {
    margin:  0 auto;
    color: #3399ff;
    font-size: 40px;
}

.about-info, .game-acquisition {
    padding-bottom: 50px;
    padding-top: 25px;
    flex-wrap: wrap;
    width: 600px;
    flex-direction: column;
    display: flex;
    margin: 0 auto;
}

.gametextacquistition {
    font-size: 25px !important;
}

.about-info p  {
    font-size: 25px !important;
}

.gameinfosmall {
    font-size: 25px !important;
}

.gameinfoacquistition {
    font-size: 40px !important;
}

.about-info p {
    text-align: center;
}

.gameinfosmall {
    text-align: center;
    font-weight: 400;
    color: black;
    font-size: 20px;
}

/*  */

.gameinfoacquistition {
    font-size: 35px;
    margin: 0 auto;
    text-align: center;
    display: inline;
    text-align: left;
    font-size: 19px;
    font-weight: bold;
    color: black;
    padding-top: 30px;
    padding-bottom: 30px;
}


/* Let's Get Started */

.lets-get-started {
    padding-top: 50px;
    padding-bottom: 50px;
    border-radius: 8px;
    text-align: center;
    height: auto;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    display: flex;
    margin: 0 auto;
    background: radial-gradient(circle at 3% 7.4%, rgb(0, 144, 243) 0%, rgb(0, 86, 240) 90%);
    width: 80%;
}


.lets-get-started h1 {
    color: white;
    font-size: 60px;
}

.lets-get-started p {
    color: white;
    font-size: 30px;
    font-weight: bold;
    padding-bottom: 10px;
}

#talkToUsv2 {
    text-align: center;
    justify-content: center;
    align-items: center;
    display: inline-block;
    margin: 0 auto;
    width: 150px;
    font-weight: bold;
    border-radius: 7px;
    background-color: white;
    border: none;
    color: #3399ff;
    padding: 15px 15px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s all;
}

#talkToUsv2:hover {
    background-color: black;
    color: white;
    transition: 0.3s all;
}

#chatIcon {
    padding-right: 5px;
    width: 23px;
}

/* Footer */

.footerlogo img {
    width: 70px;
}

.footerlogo {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.services {
    font-size: 15px;
    padding-top: 3px;
    gap: 50px;
    text-align: center;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    display: flex;
}

.company {
    flex-direction: column;
    display: flex;
}


.company a {
    text-align: left;
    text-decoration: none;
    color: black;
    font-weight: 600;
    transition: 0.3s all;
}

.company a:hover {
    transition: 0.3s all;
    color: #3399ff;
}

.service a {
    text-align: left;
    text-decoration: none;
    color: black;
    font-weight: 600;
    transition: 0.3s all;
}

.service a:hover {
    transition: 0.3s all;
    color: #3399ff;
}

.footer {
    padding-bottom: 10px;
}

.Copyright {
    padding-top: 15px;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    text-align: center;
    color: black;
    font-size: 20px;
}

/* Showcase Card Playnow */

.showcaseCard {
    padding-bottom: 10px !important ;
}

.showcaseCard a {
    text-decoration: none;
    color: white;
    width: 80%;
    height: 60px !important;
    background-color: #08b46c;
    font-size: 25px;
    font-weight: bold;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    font-weight: bold;
    display: flex;
    transition: 0.3s all;
}

.showcaseCard a:hover {
    font-size: 26px;
    background-color: #3399ff;
    color: white;
    transition: 0.3s all;
}

.showcaseCard-visits {
    padding-bottom: 15px;
}

/* Burger */

/* Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Burger menu and icon styles */
.burger-menu-container {
    display: none; /* Hide the burger menu container by default */
    position: fixed; /* Fixed position to stay on the page */
    top: 15px; /* Align to the top with margin */
    left: 15px; /* Align to the left with margin */
    z-index: 9999; /* High z-index to stay on top */
}

.burger-icon {
    display: none; /* Hide the burger icon by default */
    cursor: pointer;
    width: 50px; /* Set the width of the burger icon */
    height: auto; /* Maintain aspect ratio */
}

.burger-menu {
    display: none; /* Hide the dropdown initially */
    position: absolute; /* Position it absolutely to float over content */
    top: 50px; /* Position it right below the burger icon */
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.burger-menu a {
    display: block; /* Block display for full-width links */
    text-decoration: none; /* No underline */
    padding: 15px; /* Padding for spacing */
    color: #333;
    border-bottom: 1px solid #ccc; /* Borders between items */
}

.burger-menu a:last-child {
    border-bottom: none; /* No border for the last item */
}

.burger-menu a:hover,
.burger-menu a:focus {
    background-color: #e7e7e7; /* Background color change on hover/focus */
}

/* Responsive styles for screens up to 768px wide */
@media (max-width: 768px) {
    .burger-menu-container {
        display: block; /* Show the burger menu container */
    }

    .burger-icon {
        display: block; /* Show the burger icon */
    }

    .burger-menu {
        display: none; /* Keep the dropdown hidden until clicked */
    }
    .container.grid .showcaseCard{
        max-width: calc(100% - 20px);

    }
}


/* Additional styles may follow */

/* Game Card */

.game-card {
    font-weight: 900;
}

.game-card h3 {
    font-size: 25px;
}

.game-card p {
    font-size: 20px;

}

#total-playing, #total-visits, #total-games {
    font-size: 35px !important;
    width: 90%;
    text-wrap: wrap;
}

.total-item p {
    font-size: 40px;
}

.showcaseCard a {
    width: calc(95% + 10px); /* Extend the button beyond the parent's width */
}

.showcaseCard p {
    font-size: 25px !important;
}

.showcase p {
    font-size: 28px !important;
}

/* Nav */
