* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; 
    overflow-x: hidden; 
    position: relative; 
    background-color: #00bcd4; /* Background color for scoreboard */
}

.card {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.btn {
    display: block;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.btn-play {
    background: #ffd700;
    color: black;
}

.btn-install {
    background: #fff;
    color: #333;
}

.sky-container {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, #0d1b5c 0%, #3a7bd5 100%);
    overflow: hidden;
}

.cloud {
    position: absolute;
    background-image: url('../images/pixel-cloud.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    width: 150px;
    height: 80px;
    top: -150px; 
}

@keyframes fall {
    0% { transform: translateY(-150px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(calc(100vh + 150px)); opacity: 0; }
}

.cloud-1 { left: 10%; transform: scale(1.2); animation: fall 15s linear infinite; opacity: 0.9; }
.cloud-2 { left: 30%; transform: scale(0.8); animation: fall 25s linear infinite; animation-delay: 5s; opacity: 0.6; }
.cloud-3 { left: 55%; transform: scale(1.5); animation: fall 18s linear infinite; animation-delay: 2s; }
.cloud-4 { left: 75%; transform: scale(0.6); animation: fall 30s linear infinite; animation-delay: 10s; opacity: 0.5; }
.cloud-5 { left: 90%; transform: scale(1); animation: fall 22s linear infinite; animation-delay: 7s; }

.container {
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%; 
    box-sizing: border-box;
    position: relative;
    z-index: 10; 
    color: white; 
}

.title img {
    width: 100%;
    height: auto;
}

h2 {
    color: #00796b;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #00796b;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #00796b;
    border-radius: 5px;
}

button {
    background-color: #00796b;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #004d40;
}

.scoreboard {
    background-color: rgba(0, 0, 0, 0.84);
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    height: 600px; 
    display: flex;
    flex-direction: column;
    position: relative; 
    overflow: hidden;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.header h1 {
    margin: 0;
    font-size: 2em;
}

.search-container {
    display: flex;
    justify-content: center; 
    margin-top: 10px;
    width: 100%;
}

#searchInput {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    width: 100%;
    max-width: 250px;
    margin-right: 10px;
    font-size: 1em;
    box-sizing: border-box;
}

.search-icon {
    font-size: 1.5em;
    color: #fff;
    cursor: pointer;
}

.table-container {
    overflow-y: auto;
    flex: 1; 
    margin-bottom: 20px; 
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; 
}

th, td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #444;
    min-width: 100px; 
}

th {
    position: -webkit-sticky; 
    position: sticky;
    top: 0;
    background-color: #222;
    color: #fff;
    z-index: 1; 
}

.pagination {
    display: flex;
    justify-content: center; 
    gap: 20px; 
    padding: 10px 0; 
    background-color: rgba(0, 0, 0, 0.84); 
    position: sticky;
    bottom: 0;
    width: 100%;
    z-index: 2; 
}

.pagination-info {
    text-align: center;
    margin: 10px 0;
    color: #fff;
    font-size: 1em;
}

.pagination-info span {
    font-weight: bold;
}

#prevBtn[disabled] {
    display: none; 
}

.back-button {
    display: block;
    margin-bottom: 20px;
    padding: 10px 20px;
    font-size: 18px;
    color: #000000;
    background-color: #ffd700;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    width: fit-content;
    margin: 20px auto;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #e5c100;
}

.scoreboard-title {
    font-size: 28px; 
    color: #000000; 
    margin: 20px 0; 
    text-align: center; 
    padding: 10px; 
    text-shadow: 1px 1px 0 #ffffff, 
                 -1px -1px 0 #ffffff, 
                 1px -1px 0 #ffffff,
                 -1px 1px 0 #ffffff;
}

.logo-container {
    margin-bottom: 20px;
    position: relative;
}

.logo {
    width: 289px;  
    height: 112px; 
    max-width: 100%; 
    object-fit: contain;
}

.clip {
    position: relative;
    padding-top: 56.25%; 
    margin: 20px auto;
    background-color: #000; 
}

.clip iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.playstore-link {
    display: block;
    margin-top: 20px;
}

.playstore-img {
    width: 289px;
    height: 112px;
    object-fit: contain;
    max-width: 100%;
}

.scoreboard-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px; 
    font-size: 20px;
    font-weight: bold; 
    color: #000000;
    background-color: #ffd700;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.3s;
    cursor: pointer;
}

.scoreboard-button:hover {
    background-color: #e5c100;
    transform: scale(1.05); 
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.5em;
    }

    .search-container {
        flex-direction: column;
        align-items: stretch;
    }

    #searchInput {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .search-icon {
        font-size: 1.2em;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .scoreboard {
        padding: 15px;
        height: auto; 
    }

    #searchInput {
        max-width: 100%;
        font-size: 0.9em;
    }

    .header h1 {
        font-size: 1.2em;
    }

    .search-icon {
        font-size: 1em;
    }
}

