* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header nav img {
    width: 60px;
    height: 60px;
    border: 2px rgb(0, 0, 0) solid;
    border-radius: 50%;
}

header nav {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: none;
    border: 3px black solid;
    background-color: #fff;
}

header nav a {
    display: block;
    margin: 20px;
    height: 59px;
    width: 59px;
}

body{
    max-width: 100%;
    height: 100%;
    display: flex;
    background-color:rgb(255, 255, 255);
    align-items: center;
    justify-content: center;
}

.programador {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-top: 10%;
    align-items: center;
}

.swing2{
    animation: swing ease-in-out 1s infinite alternate;
    transform-origin: center -20px;
    float: left;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.swing2 img {
    border: 8px solid #f8f8f8;
    display: block;
    width: 600px;
    height: 400px;
}

.swing2:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid #999;
    top: -20px;
    left: 50%;
    z-index: 0;
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

.swing2:before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    top: -30px;
    left: 52.9%;
    z-index: 5;
    border-radius: 50% 50%;
    background: #000;
}

.programador p{
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    color: #ffffff;
    background-color: #001135;
    padding: 30px;
    text-align: center;
    width: 100%;
}

.text {
    margin-top: 1%;
}

main {
    width: 80%;
}

.card {
    display: flex;
    justify-content: center;
    padding-top: 100px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
}

.swing {
    animation: swing ease-in-out 1s infinite alternate;
    transform-origin: center -20px;
    float: left;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.swing img {
    border: 8px solid #f8f8f8;
    display: block;
    width: 250px;
}

.fg1 img {
    height: 190px;
}

.swing:hover {
    transform: scale(1.3);
}

.swing:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid #999;
    top: -10px;
    left: 50%;
    z-index: 0;
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

.swing:before {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    top: -14px;
    left: 53%;
    z-index: 5;
    border-radius: 50% 50%;
    background: #000;
}

@keyframes swing {
    0% {
        transform: rotate(0.2deg);
    }
    100% {
        transform: rotate(-0.2deg);
    }
}
