@import url('/style/nav.css');

body {
    font-family: Arial, sans-serif;
    background-color: #e0f7fa;
    color: #333;
    margin: 0;
    padding: 0;
}

.grid {
    display: grid;
    gap: 20px;
    text-align: center;
}

.group {
    margin: 20px 0;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #b2dfdb, #e0f2f1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

#adminControls {
    margin: 20px auto;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #b2dfdb, #e0f2f1);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    color: #333;
    text-align: center;
}

#adminControls input,
#adminControls select,
#adminControls button {
    margin: 10px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

#adminControls button {
    background-color: #4caf50;
    width: 105px;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#adminControls button:hover {
    background-color: #45a049;
}

th {
    background-color: #00796b;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

td {
    background-color: #f9f9f9;
}

tr.first-place td {
    background-color: #66bb6aad !important;
    color: #fff;
}

tr.best-second-place td {
    background-color: #ffa82686 !important;
    color: #fff;
}


@media only screen and (min-width:300px) {
    .grid {

        grid-template-columns: 1fr;
    }

    #adminControls {
        max-width: 1100px;
    }

    th,
    td {
        padding: 1%;
        margin-bottom: 1%;
        text-align: center;
        border-bottom: 1px solid #ddd;
        font-size: 8px;
    }
}

@media only screen and (min-width:375px) {
    .grid {

        grid-template-columns: 1fr;
    }

    #adminControls {
        max-width: 1100px;
    }

    th,
    td {
        padding: 1%;
        margin-bottom: 1%;
        text-align: center;
        border-bottom: 1px solid #ddd;
        font-size: 13px;
    }
}

@media only screen and (min-width:768px) {
    .grid {

        grid-template-columns: 1fr;
    }

    #adminControls {
        max-width: 1100px;
    }

    th,
    td {
        padding: 2%;
        margin-bottom: 2%;
        text-align: center;
        border-bottom: 1px solid #ddd;
        font-size: 16px;

    }

}

@media only screen and (min-width:991px) {

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #adminControls {
        max-width: 1100px;
        grid-column-start: 0;
        grid-column-end: span 2;
    }

    th,
    td {
        padding: 2%;
        margin-bottom: 2%;
        text-align: center;
        border-bottom: 1px solid #ddd;
        font-size: 17px;
    }


}