* {
    box-sizing: border-box;
    padding: 0;
    border: 0;
    margin: 0;
}

body {
    margin: 0;
    font-family: monospace;
    background-color: hsl(122, 94%, 93%);
    color: hsl(0, 0%, 0%);
}

img {
    max-width: 100%;
}

.contenedora {
    max-width: 65rem;
    margin-inline: auto;
    padding: 1rem;
    width: min(65rem, calc(100% -3rem));
}

.headermod {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    border-radius: 1rem;
    border: solid 3px hsl(162, 100%, 12%);
    background-color: hsl(182, 41%, 67%);
    box-shadow: 3px 3px 0 hsl(162, 100%, 12%);
}

#behance {
    color: hsl(0, 0%, 0%);
    background-color: hsl(182, 41%, 67%);
    border: solid 3px hsl(162, 100%, 12%);
    box-shadow: 3px 3px 0 hsl(162, 100%, 12%);
    display: block;
    width: 6em;
    padding-block: 0.25em .5em;
    border-radius: 15px;
    text-align: center;
    transition: background-color 0.7s ease, color 0.3s ease;
    text-decoration: none;
    font-size: 15px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

#behance:hover {
    color: hsl(0, 0%, 0%);
    background-color: rgb(235, 254, 255);
    border: solid 3px hsl(162, 100%, 12%);
    box-shadow: 3px 3px 0 hsl(162, 100%, 12%);
    transition: 0.5s;
}

h1,
h2 {
    color: hsl(160, 97%, 27%)
}

h1 {
    font-size: xx-large;
}

h2 {
    border-block-end: solid 3px hsl(123, 29%, 73%);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
}


h3,
h4 {
    color: hsl(166, 100%, 23%)
}

.margintitle {
    margin-top: 1rem;
}

#logodgpc {
    display: block;
    border-radius: 1rem;
    width: min(100%, 7.5rem);
    padding: .27rem .5rem;
    border: solid 3px hsl(162, 100%, 12%);
    background-color: cadetblue;
    box-shadow: 3px 3px 0 hsl(162, 100%, 12%);
}

.headerbuttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
    gap: .25rem;
    list-style: none;
    margin-inline-start: auto;
    width: min(100%, 30rem);
}

header nav ul li a {
    color: hsl(0, 0%, 0%);
    background-color: cadetblue;
    border: solid 3px hsl(162, 100%, 12%);
    box-shadow: 3px 3px 0 hsl(162, 100%, 12%);
    display: block;
    padding-block: 0.25em .5em;
    border-radius: 20px;
    text-align: center;
    transition: background-color 0.7s ease, color 0.3s ease;
    margin-right: 13px;
    margin-left: auto;
    text-decoration: none;
    font-size: 1.2rem;
}

header nav ul li a:hover {
    color: hsl(0, 0%, 0%);
    background-color: rgb(235, 254, 255);
    border: solid 3px hsl(162, 100%, 12%);
    box-shadow: 3px 3px 0 hsl(162, 100%, 12%);
    transition: 0.5s;
}

.cerolist {
    list-style: none;
}

#habilidades {
    margin-left: 1rem;
}

main section div nav ul li a {
    color: hsl(0, 0%, 0%);
    background-color: hsl(182, 41%, 67%);
    border: solid 3px hsl(162, 100%, 12%);
    box-shadow: 3px 3px 0 hsl(162, 100%, 12%);
    display: block;
    width: 15rem;
    padding-block: 0.25em .5em;
    border-radius: 20px;
    text-decoration: none;
    font-size: 17px;
    text-align: center;
    margin: 0.5rem;
    margin-right: auto;
}

main section div nav ul li a:hover {
    color: hsl(0, 0%, 0%);
    background-color: rgb(235, 254, 255);
    border: solid 3px hsl(162, 100%, 12%);
    box-shadow: 3px 3px 0 hsl(162, 100%, 12%);
    transition: 0.5s;
}

.profile {
    display: flex;
    gap: 3rem;
    align-items: center;
}

#fotomassimo {
    width: 30rem;
    border-radius: 1rem;
    border: solid 4px hsl(162, 100%, 12%);
    box-shadow: 4px 4px 0 hsl(162, 100%, 12%);
}

#fotomassimo:hover {
    animation: wiggle 2s linear infinite;
}

.materias {
    display: flex;
    gap: 5rem;
    list-style: none;
}

.juegos {
    width: 10rem;
    border-radius: 1rem;
    border: solid 4px hsl(162, 100%, 12%);
    box-shadow: 4px 4px 0 hsl(162, 100%, 12%);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.juegosxtiempo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    list-style: none;
}

.gamelist {
    list-style: none;
    display: grid;
}

.boceto2 {
    max-width: 20rem;
}

aside {
    border-block-start: solid 3px hsl(123, 29%, 73%);
    padding-top: 0.5rem;
}

@media screen and (width < 900px) {
    .profile {
        flex-direction: column;
    }

    #fotomassimo {
        width: 20rem;
    }

    .materias {
        flex-direction: column;
        gap: 1rem;
    }

    .juegosxtiempo {
        flex-direction: column;
        gap: 1rem;
        grid-template-columns: 1fr;
    }

    .juegos {
        width: 15rem
    }
}

@keyframes wiggle {

    0%,
    7% {
        transform: rotateZ(0);
    }

    15% {
        transform: rotateZ(-10deg);
    }

    20% {
        transform: rotateZ(5deg);
    }

    25% {
        transform: rotateZ(-5deg);
    }

    30% {
        transform: rotateZ(3deg);
    }

    35% {
        transform: rotateZ(-2deg);
    }

    40%,
    100% {
        transform: rotateZ(0);
    }
}

.footerfin {
    background-color: rgb(137, 204, 206);
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}