:root {
    --main_text: #000000;
    --main_bg: #fffff5;
    --main_txtbtn: #ffffff;
    --main_navbar_footer: linear-gradient(to right, #57ade6c9, #C011ECc9, #9C06FFc9, #290DFFc9, #00ABFEc9);
}

body {
    font-family: 'helvetica', 'sans-serif';
    margin: 0;
    background-color: var(--main_bg);
}
 .overlay_banner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .banner {
    background: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    width: 90%;
    max-width: 500px;
  }

  .banner p {
    margin: 0 0 20px;
  }

  .banner button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
  }

  .accept-btn {
    background: #4CAF50;
    color: white;
  }

  .decline-btn {
    background: #f44336;
    color: white;
  }

  @media (max-width: 600px) {
    .banner {
      width: 100%;
      height: 40%;
      border-radius: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
  }
.content-container {
    display: flex;
    justify-content: space-between;
    background-color: white;
    align-items: center;
    flex-wrap: wrap;
}

.text-container,
.image-container {
    flex: 1;
    margin-top: 20px;
}

a {
    text-decoration: none;
}

h1 {
    color: var(--main_text);
}

#section_info {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    position: relative;
    margin-top: 5%;
    box-shadow: 5px 5px 10px #a5a5a5a2;
}

.aboutus {
    margin-left: 10%;
    width: 80%;
    text-align: center;
}

.navbar {
    position: absolute;
    top: 0%;
    width: calc(100% - 60px);
    left: 0%;
    z-index: 10;
    background: var(--main_navbar_footer);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 10px;
    padding-bottom: 5px;
    color: #000000;
}

.logo img {
    height: 40px;
}

.buttons {
    display: flex;
}

.button {
    padding: 8px 16px;
    margin-left: 10px;
    background-color: var(--main_text);
    color: var(--main_txtbtn);
    text-decoration: none;
}

.button:hover {
    background-color: var(--main_text);
    color: var(--main_txtbtn);
}

#mainphoto-image {
    background: url('inexplicableinfinitygames.webp') top center no-repeat;
    background-size: cover;
    position: relative;
    height: 100vh;
    z-index: 0;
}


#legal {
    flex: 1;
    background-color: #f4f4f4;
    margin: auto !important;
}

.mainphoto-big-text {
    background-color: #fffff5e8;
    max-width: 1200px;
    margin: -30px auto 0;
    position: absolute;
    top: 40%;
    text-align: center;
    z-index: 2;
    left: 10%;
    right: 10%;
    padding: 0 20px;
}

.mainphoto-big-text h1 {
    font-size: 3.5em;

    background: linear-gradient(to right, #57ade6c9, #C011ECc9, #9C06FFc9, #290DFFc9, #00ABFEc9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

    font-weight: 300;
    margin: 0.5em 0;
}

.mainphoto-big-text h2 {

    background: linear-gradient(to right, #57ade6c9, #C011ECc9, #9C06FFc9, #290DFFc9, #00ABFEc9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

    margin-bottom: 2.5em;
}

.mainphoto-big-text button {
    color: black;
    background-color: darkblue;
    border-radius: 25px;
    padding: 10px 25px;
    font-size: 0.85em;
    margin: 2%;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.news_section {
    max-width: 80%;
    margin: 20px auto;
    color: black;
    padding: 0 20px;
}

.news {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.news-item {
    border: 2px solid silver;
    background-color: whitesmoke;
    width: calc(45% - 5%);
    margin-bottom: 20px;
    text-align: center;
}

.news-item img {
    width: 100%;
    height: auto;
}

.news-item h3 {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 5px;
}

.news-item p {
    margin-bottom: 10px;
}

.show-all-btn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: var(--main_text);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.show-all-btn a {
    color: var(--main_txtbtn) !important;
}

@media screen and (max-width: 1000px) {

    .section_ {
        overflow-x: auto;
        width: 90% !important;
        margin-left: 3% !important;
    }

    .img_info {
        display: block;
        height: auto;
        width: 100% !important;
        position: relative;
        top: 0%;
        left: 25%;
    }
}

.mainphoto-big-text a {
    color: whitesmoke;
}

.mainphoto-big-text button a:hover {
    color: lime;
}

#section_games {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}


.play-now {
    text-decoration: none;
    display: inline-block;
    padding: 10px 20px;
    background-color: gold;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s;
}

.play-now a {
    text-decoration: none;
    color: white;
}

.play-now:hover {
    color: white;
    background-color: gold;
}

.game {
    width: calc(20% + 5%);
    text-align: center;
    margin-right: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    float: left;
    position: relative;
}

.game:nth-child(3n) {
    margin-right: 0;
}

.game img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.game h2 {
    margin-top: 0;
    font-size: 24px;
}

.section_ {
    width: 80%;
    margin-left: 10%;
    overflow-x: auto;
    border: 1px rgb(226, 226, 226) solid;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


.game p {
    margin-bottom: 10px;
    font-size: 16px;
}


.button_ {
    padding: 10px 20px;
    border-radius: 4px;
    color: #fff;
    border: none;
    font-weight: bold;
}

.tag {
    position: absolute;
    top: 5%;
    left: 5%;
    padding: 5px 10px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
}


.new {
    background-color: red;
}

.cloud {
    background-color: lightblue;
}

.time {
    background-color: darkcyan;
}

.InexplicableInfinityGames {
    background-color: #260fff;
}

.dream {
    background-color: #8b9cf6;
}

.row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.item {
    flex: 0 0 auto;
    width: 33.33%;
    min-width: 100px;
    padding: 10px;
    box-sizing: border-box;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.col {
    flex: 1 0 20%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    position: relative;
}

.content {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    text-align: center;
}

.col p {
    margin: 0;
}

.col {
    border: 1px solid #ccc;
    position: relative;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .mainphoto-big-text {
        background-color: #fffff5e8;
        max-width: 1200px;
        margin: -30px auto 0;
        position: absolute;
        top: 40%;
        text-align: center;
        left: 2%;
        right: 2%;
        padding: 0 20px;
    }

    .mainphoto-big-text h1 {
        font-size: 2.5em;
    }

    .game {
        width: calc(100% - 20px);
        margin-right: 0;
    }

    .footer-column {
        width: 100% !important;
    }

    .content-container {
        flex-direction: column;
    }

    .image-container img {
        max-width: 100%;
        height: auto;
    }

    .text-container,
    .image-container {
        order: 0;
        width: 100%;
    }

    .col {
        flex: 1 0 40%;
    }
}

.fbutton a {
    text-decoration: none;
    color: white;
}

button {
    opacity: 0;
    animation: fadeInButton 2s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInButton {
    to {
        opacity: 1;
    }
}

footer {
    background: var(--main_navbar_footer);
    padding: 20px;
    text-align: center;
    color: white;
}

.footer-column {
    display: inline-block;
    vertical-align: top;
    width: 20%;
    margin-bottom: 20px;
}


.fbutton {
    background-color: var(--main_text);
    color: var(--main_txtbtn);
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.fbutton:hover {
    background-color: #0056b3;
}

.social-icons {
    display: inline-block;
}

.social-icons img {
    width: 30px;
    margin: 0 5px;
}

.policy-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    font-size: 18px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
    border-radius: 5px;
}

.footer-content-center {
    text-align: center;
    width: 100%;
}

#legal {
    height: 10%;
    width: 90%;
    margin-left: 5%;
    margin-top: 10%;
    position: relative;
    text-align: center;
    box-shadow: 5px 5px 10px #888888;
}

@media screen and (max-width: 600px) {
    .news_section {
        padding: auto;
    }

    .news_section {
        max-width: 100%;
        margin: none;
        padding: 0 20px !important;
    }

    .news-item {
        width: 100%;
    }

    .section_games {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .row {
        flex-direction: column;
        white-space: normal;
    }

    .policy-button {
        display: block;
        width: 80%;
        box-sizing: border-box;
    }
}