@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

*, *::after, *::before {
    font-family: 'Poppins',Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: rgb(255, 255, 255);
}

h1, h3{
    color: rgb(255, 255, 255);
}

.rtpJili{
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    
}

body{
    background-image: linear-gradient(90deg,#152537 0,#223f69 49%,#152537);
}

.links{
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: .5rem;
    position: fixed;
    bottom: clamp(3%, 100%, 98%);
    left: 50%;
    transform: translate(-50%, 50%);
    z-index: 3;
    width: 100%;
    background-color: #09133c;

}

.links a{
    color: black ;
    text-decoration: none;
    background-color:#16163a;
    color: white;
    width: 40vw;

}

.overlay {
    background-color: rgba(1, 1, 1, 0);
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
}

#gameDetailImage {
    max-width: 100%; /* Ensure the image fits within its container */
    height: auto;    /* Maintain aspect ratio */
}


.container {
    width: 80%;
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px;
    background: #181717;
    background-image: linear-gradient(90deg,#152537 0,#223f69 49%,#152537);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(25, 30, 68, 0.1);
    text-align: center;
    margin-top: 1.5rem;
}


.rtp-section {
    margin: 20px 0;
    position: relative;
}

label {
    font-size: 1.2em;
}

select {
    padding: 10px;
    font-size: 1em;
}



/* Existing styles */

#rtpDisplay {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer; /* Makes it look clickable */
}

/* New styles for color coding */
.low-rtp {
    color: red;
}

.high-rtp {
    color: green;
}

/* Styles for additional content */
#rtpDetails {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 4px;
    position: relative;
}

#rtpDetails.hidden {
    display: none;
}

#rtpDetails.lowWin{
    display: none;
}

#closeDetails {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2em;
    cursor: pointer;
}

/* Styles for the game list */
.game-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
 .game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin: auto;
    border: 1px solid #ddd;
    background-color: #f0f0f0;
    border-radius: 4px;
}


.game-item img{
    width: 100px;
    height: auto;
}

.game-list button {
    padding: 10px;
    font-size: .6rem;
    border: none;
    background-color: #007BFF;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 2;
}

.game-list button:hover {
    background-color: #16163a;
}

.rtp-value {
    margin-top: 5px;
    font-size: 0.9em;
}

/* Existing styles */

/* New styles for the game details section */
#gameDetailsSection {
    padding: 15px;
    background: #09133c;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 4;
    top: 2%;
    left: 50%;
    transform: translate(-50%, 0% );
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
}

h2{
    font-size: 1rem;
    color: yellow;
}


h4{
    font-size: .8rem;
}


#gameDetailsSection.hidden {
    
    display: none;
}

.lineStroke{
    background-color: black;
    width: 100%;
    height: 5px;
}

#closeDetails {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 5;
}

#selectedGameTitle {
    margin: 0;
    font-size: 1.5em;
}

#gameDetails {
    margin-top: 10px;
}

.banner{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}



footer{
    background-color: rgb(16, 30, 49);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    flex-direction: column;
    font-size: .8rem;
}