@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);
}

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;
}

#href-fix {
    z-index: 10;
    position: absolute;
    top: 0px;
    left: 10px;
    padding: 0 20px; 
    opacity: 0;
}

nav { 
    z-index: 0;
    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.08);
}

.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: 14px;
    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;
}

.match-cards {
    display: flex;
    gap: 40px;
    margin: -35px auto;
    position: relative;
}

.ronda {
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
}

.final-tercero-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.final.ronda {
    flex-direction: column;
    align-items: center;
}

.tercer-puesto {
    flex-direction: column;
    align-items: center;
}


.matchcard-final {
    flex-direction: column;
    
}

#primeros-ocho {
    flex-direction: column;
    align-items: stretch;
    transform: translate(-325px)
}

#segundos-ocho {
    flex-direction: column;
    align-items: stretch;
    transform: translate(1200px);
}


.card-class{
    box-sizing: border-box;
    flex-direction: column;
    justify-content: space-evenly;
    height: 990px;
}

#primeros-dos,
    #segundos-dos {
        gap: 130px;
    } 


#primeros-cuatro {
    transform: translate(-410px);
}

#segundos-cuatro {
    transform: translate(700px);
}

#primeros-dos {
    transform: translate(-525px);
}

#segundos-dos {
    transform: translate(225px);
}

#primeros {
    transform: translate(-675px);
}

#segundos {
    transform: translate(-225px)
}


.matchcards-primerosocho,
    .matchcards-primeroscuatro,
        .matchcards-primerosdos{
                background-color: rgba(1, 12, 18, 0.3);
                border: 1.8px solid rgb(74, 74, 55);
                width: 125px;
}

.finalcard {
    padding: 0.8em;
    border-radius: 20px;
    border: 1.8px solid rgb(174, 174, 132);
}

.matchcards-primerosocho {
    margin-bottom: 20px;
}

.matchcards-primeroscuatro:has(#oF-1),
    .matchcards-primeroscuatro:has(#oF-5) {
        margin-top: -40px;
}

.matchcards-primeroscuatro:has(#oF-4),
    .matchcards-primeroscuatro:has(#oF-8) {
        margin-bottom: -35px;
}
.partidos {
    flex-direction: column;
    width: 100%;
}

#finale {
    width: 175px;
}

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

.botones-partidos {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    gap: 20px;
    padding: 10px 20px;
    align-items: center;
    font-size: 18px;
    background-color: rgba(1, 12, 18, 0.3);
    color: rgb(249, 248, 213);
    border: none;
}

.botones-final {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    gap: 20px;
    padding: 10px 20px;
    align-items:flex-start;
    font-size: 18px;
    background-color: rgba(1, 12, 18, 0.3);
    color: rgb(249, 248, 213);
    border: none;
}

.botones-partidos:hover {
    cursor: pointer;
    width: 100%;
    background-color: rgba(174, 174, 132, 0.5);

}

.paisuno {
    border: none;
    border-bottom: 1.8px solid rgb(74, 74, 55);
}
h1 {
    font-family: Lato;
    color:#e8c76a;
    font-size: 35px; 
}

h2 {
    text-align: center;
    font-family: Lato;
    font-size: 23px;
    color: #f3dc9d;
}

h3 {
    text-align: center;
    font-family: Lato;
    font-size: 15px;
    color: #d0c8b2;
}

