@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

body {
    margin: 0;
    padding: 0;
    background-color: rgb(10, 17, 30);
    min-width: 1000px;
}

html {
    font-family: Oswald;
}

div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.groups-nav {
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    max-width: 70%;
    margin: auto;
    gap: 30px;
}

nav { 
    position: relative;
    font-family: none;
}

#groups {
    background-color: rgba(11, 15, 19, 0.4); 
    width: 100%;
    height: 64px;
    top: 0;
    position: sticky;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2; 
}

#groups li{
    margin-left: -70px;
    font-family: none;
    display: inline-block;
    padding: 4em; 
}

li:hover { 
    color: #f1c959;
    cursor: pointer;
}


.nav-buttons {
    color: #e8c76a;
    background-color: transparent;
    text-decoration: none;
    border-radius: 20px;
    padding: 5px 12px;
}

.nav-buttons.active {
    border: 1px solid #c9a84c;
    background-color: rgba(201, 168, 76, 0.15);
}

.prediction-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

#bg-texture {
    background-image: url("../assets/black-texture.jpg");
    position: fixed;
    z-index: 0;
    background-size: cover;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

#bg-image {
    background-image: url("../assets/flags_bg.png");
    position: fixed;
    z-index: 1;
    background-size: cover;
    width: 100%;
    height: 100%;
    opacity: 0.13;
    filter:grayscale(70%);
    filter: blur(4px);
}

.btn-grupo {
    border-radius: 100%;         
    font-size: 16px;
    width: 48px;
    height: 48px;
    background-color: rgba(1, 12, 18, 0.3);
    color: rgb(249, 248, 213);
    border: 1.8px solid rgb(74, 74, 55);
}

.btn-grupo:hover {
    cursor: pointer;
    background-color: rgb(135, 116, 61);
}

.group-name {
    color: #f1c959;
    font-size: 35px; 
    margin-top: 50px;
}

table {
    table-layout: fixed;
    width: 50%;
    margin: 30px auto;
    border-collapse: collapse;
    background-color: rgba(1, 12, 18, 0.3);
    border-radius: 35px;
}

th,
td {
    color: rgb(249, 248, 213);
    font-size: 23px;
    text-transform: uppercase;
    text-align: center;
}

td {                                                                                                                                                                                                                
    border-bottom: 1px solid rgba(249, 248, 213, 0.2);
}

tr:nth-child(-n+9):not(:first-child) td {
    background-color: rgba(26, 113, 2, 0.2);
}

tr:first-child td {
    background-color: rgba(31, 55, 34, 0.3);
}

tr:last-child td {
    border-bottom: none;
}

.row-1 {
    background-color: rgba(rgb(211, 215, 206, 0.8));
}

#pos-table {
    padding-top: 50px;
}

tr > td:nth-child(4),
tr > td:nth-child(5) {
    text-align: center;
    width: 7%;
    padding: 1.5em 1em;
}

tr > td:nth-child(2){
    width: 10%;
    text-align: center;
    padding: 1.5em 1em 1.5em 3em;
}

tr > td:nth-child(3){
    width: 25%;
    text-align: center;
}

tr > td:nth-child(1){
    width: 7%;
    text-align: center;
    padding: 1.5em 0.5em;
}


.nombres {
    color: rgba(249, 248, 213, 0.4);
    text-transform: none;
    font-weight: 350;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
}

#pais {
    text-align: left;
}

.country-cell {
    gap: 20px;
    justify-content: flex-start;
}

.pais-id {
    width: 60px;
}

#td-1 {
    top: 500px;
    justify-content: flex-start;
}

.flags-table {
    width: 28px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

h1 {
    font-family: Oswald;
    color:#e8c76a;
    font-size: 35px; 
}

h2 {
    text-align: center;
    font-family: Oswald;
    font-size: 25px;
    color: #d0c8b2;
}

@media (max-width: 768px) {
    body {
        min-width: unset;
    }

    nav {
        flex-wrap: nowrap;
        height: 56px;
        padding: 50px 12px;
        box-sizing: border-box;
    }

    nav .nav-right ul {
        display: none;
    }

    #groups {
        position: static;
    }


    table {
        width: 95%;
    }

    th, td {
        font-size: 14px;
    }

    #groups li {
        margin-left: 0;
        padding: 0.5em 1em;
    }

    tr > td:nth-child(3) {
        padding: 0.5em 0.5em;
    }

    tr > td:nth-child(4),
    tr > td:nth-child(5) {
        padding: 0.5em 0.25em;
    }

    h1 {
        font-size: 24px;
        position: relative;
        left: 10px;
    }
}