@import url('https://fonts.cdnfonts.com/css/minecraft-4');

header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    justify-items: center;
    gap: 12px;
    padding-bottom: 12px;
    background: #262626;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-top {
    width: 100%;
    padding: 5px 0;
    background-color: black;
    font-size: 12px;
}

.header-top-buttons {
    width: 60%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: 'Minecraft', sans-serif;
    color: white;
}

.header-top-buttons .header-discord-button-left {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.header-top-buttons .header-top-buttons-auth {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.header-section-container {
    width: 60%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-bottom {
    width: 100%;
    border-bottom: green 3px solid;
}

header a, .header-left a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: rgb(212, 212, 212);
}

header a:hover {
    color: #236DAD;
}

.left-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    margin-right: 8px;
    font-family: 'Minecraft', sans-serif;
    font-size: 24px;
    color: white;
}

.left-1 span {
    margin-bottom: 6px;
}

.logo {
    width: 32px;
}


.container-1 {
    display: flex;
    gap: 15px;
}


.header-right {
    font-size: 14px;
}

.header-right nav a {
    font-weight: bold;
}

.menu{
    display: none;
    color: #d4d4d4;
}

.header-menu{
    position: absolute;
    top: 85px;
    width: 100%;
    height: auto;
    display: none;
    gap: 10px;
    flex-direction: column;
    background-color: #262626;
    z-index: 110;
    padding: 8px 0px;
    border-bottom: green 3px solid;
}

.header-menu a{
    width: 80%;
    text-decoration: none;
    color: #d4d4d4;
    margin-left: 10%;
    border-bottom: 1px solid white;
}

.search-box {
    background: white;
    width: 60%;
}

.search-box input {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.search-box button {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    background: #236DAD;
}

.error {
    position: relative; /* clave: el span se posiciona relativo a este contenedor */
    width: 100%;
    margin: 0 auto;
}

.error span {
    position: absolute;
    top: 50%;   /* centrado vertical */
    left: 50%;  /* centrado horizontal */
    transform: translate(-50%, -50%);
    padding: 10px;
    background-color: #ff29292c;
    border: 1px #c02d2d solid;
    border-radius: 10px;
    z-index: 100;
    white-space: nowrap; /* opcional: evita que el texto se parta */
}


@media (max-width: 1400px) {
    .search-box {
        width: 80% !important;
    }
    .header-top-buttons {
        width: 80% !important;
    }
    .header-section-container {
        width: 80% !important;
    }
    .error{
        width: 80% !important;
    }

}

@media only screen and (max-width: 764px) {
    header .container-1 a {
        display: none !important;
    }

    .menu{
        display: flex;
    }


}
