* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
header{
    background-color: #8a2929;
    height: 10%;
    width: 100%;
    padding: 8px;
}
a{
    text-decoration: none;
    color: #ffffff;
}
body{
    background-color: #1b1b1b;
    color: #ffffff;
    margin: 0%;
    padding: 0%;
    background-image: linear-gradient(to bottom, rgba(138, 41, 41, 0), rgb(138, 41, 41));
}
main{
    margin-left: 3%;
    margin-right: 3%;
}
footer{
    height: 50%;
    width: 100%;
    background-color: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5%;
}
section{
    border-radius: 8px;
    background-color: #202020;
    margin: 5px;
    padding: 10px;
    padding-left: 3%;
    padding-right: 3%;
}
th{
    background-color: #8a2929;
    text-align: center;
}
td{
    padding: 3px;
}
tr:hover{
    background-color: #461e1e;
}
tr:nth-child(even) {
    background-color: #2e2525;
}
tr:nth-child(even):hover{
    background-color: #461e1e;
}
table{
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    height: auto;
    text-align: center;
}
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.testimonios{
    display: flex;
    align-items: flex-start; 
    gap: 20px;
    margin-bottom: 30px;
}
.user{
    width: 120px;
    height: auto;
    object-fit: cover; 
}
.blockquote {
    max-width: 70%;
}
.team_logo{
    height: 30px;
    width: auto;
}
.foto_gamehub{
    text-align: center;
}
.imagen_gamehub{
    height: auto;
    width: 50%;
}
#phoenix_valorant{
    height: auto;
    width: 25%;
}
#ranking{
    display: flex;
}
.footer_colum{
    flex-direction: column;
    flex-wrap: wrap;
    padding: 5px;
    margin: 5px;
}
.carousel_img {
    width: 100%;
    height: 50%;    
    object-fit: cover;
}

#Reglamentos{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.four_column{
    grid-column: span 4;
    background-color: #000000;
    border-radius: 8px;
    padding: 5px;
    margin: 5px;
}
.one_colum{
    grid-column: span 1;
    background-color: #000000;
    border-radius: 8px;
    padding: 5px;
    margin: 5px;
}
.torneo{
    display: grid;
    background-color: #000000;
    border-radius: 8px;
    margin: 10px;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
    margin-right: auto;
    margin-left: auto;
    padding: 9px;
    
}
.torneo_portada{
    grid-column: span 4;
    width: 450px;
    height: 250px;
    padding: 5px;
    border-radius: 8px;
    background-color: #8a2929;
    margin-right: 10px;
}
.torneo_portada_admin{
    grid-column: span 1;
    width: 225px;
    height: 125px;
    padding: 5px;
    border-radius: 8px;
    background-color: #8a2929;
    margin-right: 10px;
}
.edit_portada_admin{
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    width: 225px;
    height: 125px;
    border-radius: 8px;
    margin-right: 10px;
    background-color: #000000;
    cursor: pointer;
}
.torneo_imagen:hover .edit_portada_admin{
    visibility: visible;
}
.especificaciones{
    grid-column: span 3;
    display: flex;
    flex-direction: column;
}
.torneo_imagen{
    text-align: center;
    position: relative; 
    display: inline-block;

}
.quierocolaborar{
    border-radius:10px;
    background-color: #8a2929;
    height: 55px;
    width: 100px;
}
.quierocolaborar:hover{
    background-color: #461e1e;
}
.boton_colaborar{
    grid-column: span 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.galeria{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.grande_galeria{
    grid-column: span 4;
}
.mediano_galeria{
    grid-column: span 2;
}
.pequeño_galeria{
    grid-column: span 1;
}
#header a{
    padding: 6px;
    background-color: #461e1e;
    margin-left: 1px;
    margin-right: 1px;
}
#header a:hover{
    background-color: #8a2929;
    color: #ffffff;
}
#admin_login_buttom{
    width: 50px;
    height: 50px; 
    border: 5px solid #461e1e;
    background-color: #8a2929;
    border-radius: 50%; 
    margin: 8px;
    cursor: pointer;
}
.galeria img, 
.galeria video, 
.galeria iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.boton_subir{
    width: 50px;
    height: 50px; 
    border: 5px solid #461e1e;
    background-color: #461e1e;
    border-radius: 50%; 
    cursor: pointer;
}
#boton_volverinicio{
    position: fixed;
    right: 0%;
    bottom: 0%;
    cursor: pointer;
}
#costado{
    visibility: hidden;
    position: fixed;
    z-index: 15;
    width: 50%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #000000;
    padding: 5%;
    text-align: center;
}
#admin_login:hover aside{
    visibility: visible;
}
#admin_login{
    width: 1%;
}
#login{
    display: flex;
    flex-direction: column;
}
.boton_estilizado{
    background-color: #8a2929;
    color: #ffffff;
    border-radius: 8px;
    width: 35%;
    margin: 5px;
    padding: 8px;
}
.boton_estilizado:hover{
    background-color: #461e1e;
}
.botones{
    display: flex;
    justify-content: center;
    align-items: center;
}
#login input{
    color: #000000;
}
#foto_de_mari{
    border-radius: 50%;
    width: 250px;
    height: 250px;
    background-color: #8a2929;
    padding: 8px;
}
#Perfil{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 50px;
}
#Descripcion{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#crear_elemento{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 8px;
}
#imagen_crear_elemento{
    grid-column: span 1;
    display: flex;
    flex-direction: column;
}
#descripcion_crear_elemento{
    grid-column: span 1;
    display: flex;
    flex-direction: column;
}
#especificaciones_crear_elemento{
    grid-column: span 1;
    display: flex;
    flex-direction: column;
}
.editar{
    width: 25px;
    height: 25px;
    cursor: pointer;
}
#formulario_gamehub{
    text-align: center;
    display: flex;
    flex-direction: column;
}
#formulario_gamehub input{
    border-radius: 8px;
    margin: 5px;
    color: #000000;
}
#colaboracion{
    text-align: center;
    display: flex;
    justify-content: center;
    justify-items: center;
}
#formulario_colaboracion{
    background-color: #1b1b1b;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
}

@media (max-width: 768px) {
        main {
            margin-left: 1%;
            margin-right: 1%;
        }
        section {
            padding-left: 5%;
            padding-right: 5%;
        }
        #Reglamentos {
            grid-template-columns: 1fr;
        }
        .four_column,
        .one_colum {
            grid-column: span 1;
        }
        .torneo {
            grid-template-columns: 1fr;
            gap: 10px;
        }
        .torneo_portada {
            width: 100%;
            height: auto;
        }
        .torneo_portada_admin {
            width: 100%;
            height: auto;
        }
        .especificaciones {
            grid-column: span 1;
        }
        .galeria {
            grid-template-columns: 1fr;
        }
        .grande_galeria,
        .mediano_galeria,
        .pequeño_galeria {
            grid-column: span 1;
        }
        #Perfil {
            flex-direction: column;
            align-items: center;
        }
        #crear_elemento {
            grid-template-columns: 1fr;
        }
        #imagen_crear_elemento,
        #descripcion_crear_elemento,
        #especificaciones_crear_elemento {
            grid-column: span 1;
        }
        #formulario_gamehub {
            width: 100%;
        }
        .boton_estilizado {
            width: 80%;
        }
        .imagen_gamehub {
            width: 100%;
        }
        #phoenix_valorant {
            width: 25%;
            height: auto;
        }
        #foto_de_mari {
            width: 150px;
            height: 150px;
        }
        .team_logo {
            height: 20px;
        }
        .carousel_img {
            height: auto;
        }
        #boton_volverinicio {
            right: 5%;
            bottom: 5%;
            width: 40px;
            height: 40px;
        }
        #costado {
            width: 100%;
            padding: 10%;
        }
        table {
            width: 100%;
            font-size: 14px;
            display: block;
        }
}