body {
    font-family: Arial, sans-serif;
    font-size: 16px; /* Base font size */
}

@media screen and (max-width: 600px) {
    body {
        font-size: 14px; /* Smaller font size for mobile devices */
    }
}

.container {
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 80%; /* Use percentage for width */
    max-width: 960px; /* Maximum width */
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-logo {
    width: 150px;
    height: 150px;
    margin-right: 10px;
}

@media screen and (max-width: 600px) {
    .title-logo {
        width: 100px;
        height: 100px;
    }
}

.player-input h2 {
    margin: 0;
}

#scoreTable {
    overflow-x: auto; /* Allows horizontal scrolling on small screens */
}

#scoreTable table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th:first-child, td:first-child {
    text-align: left;
    font-weight: bold;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.info-container {
    display: flex;
    justify-content: space-between;
}

@media screen and (max-width: 600px) {
    .info-container {
        flex-direction: column;
    }
}

#scoreLegend, #rules {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
}

#scoreLegend {
    max-width: 200px;
    margin-right: 20px;
}

#rules {
    text-align: left;
    flex-grow: 1;
}

@media screen and (max-width: 600px) {
    #scoreLegend, #rules {
        max-width: 100%;
        margin-right: 0;
    }
}

/* Additional responsive adjustments */
.button-class, .input-class {
    @media screen and (max-width: 600px) {
        padding: 15px; /* Larger padding for easier interaction */
    }
}

img {
    max-width: 100%; /* Ensures image is not larger than its container */
    height: auto; /* Keeps the aspect ratio intact */
}

.some-class {
    @media screen and (max-width: 600px) {
        margin: 10px;
        padding: 10px;
    }
}

.non-essential-class {
    @media screen and (max-width: 600px) {
        display: none;
    }
}

/* ... include other existing styles as needed ... */
