*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body{
    font-family: 'Courier New', Courier, monospace;
    background-color: #f2f2f2;
    font-size: 16px;
    line-height: 1.5;
    color: black;
}
nav{
    height: 50px;
    padding-top: 10px;
}

h1{
    text-align: center;
}

.container{
    width: 90%;
    height: calc(100vh - 50px);
    margin: auto;
    padding-bottom: 20px;
    /* outline: 2px solid #fff; */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    /* grid-template-rows: repeat(auto-fit, 1fr); */
    /* grid-template-rows: 100px 150px 20%; */
    /* grid-auto-rows: 200px; */
    /* column-gap: 50px;
    row-gap: 20px; */
    /* grid-gap: 20px; */
}

.container2{
    width: 90%;
    height: calc(100vh - 100px);
    margin: auto;
    padding: 20px 0;
    /* outline: 2px solid #fff; */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
}

.item{
    /* width: 100px;
    height: 100px; */
    border-radius: 5px;
    box-shadow: 2px 2px 2px 3px black;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    border: 3px solid white;
}

.itemDos{
    /* width: 100px;
    height: 100px; */
    border-radius: 5px;
    box-shadow: 2px 2px 2px 3px black;
    background-size: cover;
    background-position: center;
    border: 3px solid white;
}

.item:hover {
    animation-duration: 1.3s;
    animation-name: escala;
    animation-iteration-count: infinite;
    box-shadow: 2px 2px 10px 5px black;
}

.itemDos:hover {
    animation-duration: 1.3s;
    animation-name: escala;
    animation-iteration-count: infinite;
    box-shadow: 2px 2px 10px 5px black;
}

@keyframes escala {
    0% {
        transform: scale(1.0, 1.0);
    }

    48% {
        transform: scale(1.03, 1.03);
    }

    52% {
        transform: scale(1.03, 1.03);
    }

    100% {
        transform: scale(1.0, 1.0);
    }
}

.item1{
    background-color: rgb(45, 33, 17);
    grid-column: 1/3;
    grid-row: 1/2;
    background-image: url(img/computer-5088599_1280.jpg);
}
.item2{
    background-color: rgb(152, 106, 46);
    /* grid-row: 1/4; */
    background-image: url(img/keyboard-122729_1280.jpg);
}
.item3{
    background-color: rgb(80, 47, 4);
    background-image: url(img/letter-7102985_1280.jpg);
}
.item4{
    background-color: rgb(243, 45, 11);
    grid-column: 2/4;
    background-image: url(img/keyboard-6583765_1280.jpg);
}
.item5{
    background-color: rgb(97, 16, 218);
}
/* .item6{
    background-color: rgb(9, 170, 198);
} */

.item11{
    background-color: rgb(45, 33, 17);
    background-image: url(img/bar-621033_1280.jpg);
    grid-column: 1/3;
    grid-row: 1/3;
}
.item22{
    background-color: rgb(152, 106, 46);
    background-image: url(img/code-1839406_1280.jpg);
    /* grid-row: 1/4; */
}
.item33{
    background-color: rgb(80, 47, 4);
    background-image: url(img/digital-marketing-1433427_1280.jpg);
}

hr{
    border: 3px double grey;
    margin: 20px 0;
}

footer{
    height: 100px;
    height: auto;
    padding: 20px;
    background-color: black;
    color: yellow;
    text-align: center;
}

a{
    color: white;
}

a:hover{
    color: violet;
}

@media screen and (max-width: 800px){
    /* .container{
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .item1{
        grid-column: 1/2;
    }
    .item4{
        grid-column: 1/2;
    }
    .container2{
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .item11{
        grid-column: 1/2;
        grid-row: 1/2;
    } */
}

/* expresar css grid de otra manera diferente a la anterior para menos de 800px*/

@media screen and (max-width: 800px){
    .container{
        grid-template-columns: repeat(2, 1fr);
    }
    .item1{
        grid-column: 1/3;
        grid-row: 1/2;
    }
    .item4{
        grid-column: 1/3;
        grid-row: 2/3;
    }
    .container2{
        grid-template-columns: repeat(2, 1fr);
    }
    .item11{
        grid-column: 1/3;
        grid-row: 1/3;
    }
}



