* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'candara', sans-serif;
    background-image: url('img/bg\ horizontal.png');
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
}

nav {
    height: 200px;
    width: 100%;
}

.menu {
    display: block;
    transform: translateX(-120%);
    position: absolute;
    top: 10px;
    left: 10px;
    width: 10%;
    height: 400px;
    background-color: #333;
    border-radius: 10px;
}

.lista {
    line-height: 100px;
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.contenedor {
    width: 100%;
    height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: center;
}
    

.contenedor2 {
    padding: 20px;
    color: black;
    display: inline-block;
    margin: auto;
    width: 100%;
    height: calc(100vh - 45px);
    background-color: #f2f2f2;
    background-size: cover;
    
}

.contenedor2 p {
    font-size: 20px;
    text-align: justify;
}
.videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.banner {
    width: 100%;
    text-align: center;
    z-index: -1;
    padding-top: 50px;
    margin: auto;
}

img {
    border-radius: 10px;
    height: 120px;
}


footer {
    font-size: 15px;
    width: 100%;
    height: 45px;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 5px 0;
}

a {
    text-decoration: none;
    color: yellow;
}

a:hover {
    color: red;
}

@media screen and (max-width: 1100px) {
    body{
        overflow-x: hidden;
    }
    .menu {
        width: 20%;
    }
    .contenedor {
        margin-top: 160px;
        width: 100%;
        height: auto;
    }
    .contenedor2 {
        width: 100%;
        height: auto;
    }
    .videos {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner {
        width: auto;
        z-index: -1;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .contenedor2 p {
        font-size: 15px;
    }

    .contenedor2 {
        padding: 20px;
    }    

    nav{
        height: 60px;
    }
    
}
 
@media screen and (max-width: 768px){
    body{
        overflow-x: hidden;
    }
    .menu {
        width: 40%;
    }
    .contenedor {
        margin-top: 160px;
        width: 100%;
        height: auto;
    }
    .contenedor2 {
        width: 100%;
        height: auto;
    }
    .videos {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner {
        width: auto;
        z-index: -1;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .contenedor2 p {
        font-size: 15px;
    }

    .contenedor2 {
        padding: 20px;
    }    

    nav{
        height: 60px;
    }
    
    
}

@media screen and (max-width: 500px){
    .videos {
        grid-template-columns: repeat(1, 1fr);
    }
}