body {
    margin: 0;
    background-image: url("/public/images/background/background-author.jpg");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

body #div-content {
    position: relative;
    background-color: #073a59;
    z-index: 2;
    padding-bottom: 7rem;
}

.tag {
    transform: scale(1.01);
}

.grid {
    position: relative;
    display: grid;
    gap: 3rem;
    grid-template-columns: repeat(2, minmax(0, 36rem));
    grid-auto-rows: auto;
    justify-content: center;
    padding: 4rem 1rem 2rem;
}

.grid-item {
    background-color: #a2cceb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    color: #ffffff;
    font-family: Quicksand, sans-serif;
    box-shadow: 0.5rem 0.5rem 0rem #01162280;
}

.grid-item h3 {
    margin: 0 0 1rem 0;
    color: #ffffff;
    font-size: 1.4rem;
    border-bottom: 0.15rem dashed #834206ec;
    padding-bottom: 0.5rem;
}

.grid-item p {
    line-height: 1.5rem;
    margin: 0.5rem 0;
}

.grid-item.one {
    grid-column: span 2;
}

.grid-item.one img {
    border: 0.25rem solid #073a59;
    border-radius: 2rem;
    max-width: 18rem;
    height: auto;
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.grid-item.one .right-text {
    overflow: hidden;
}

.skills {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: #073a59;
    border: 0.1rem solid #834206ec;
    border-radius: 1rem;
    font-size: 0.85rem;
    color: #ffffff;
}

.grid-item:hover {
    transform: translateY(-0.2rem);
    transition: transform 0.2s ease-out;
}

@media screen and (max-width: 1280px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 28rem));
    }
}

@media screen and (max-width: 1024px) {
    .grid {
        grid-template-columns: minmax(0, 90%);
        gap: 2rem;
        padding-top: 2rem;
    }

    .grid-item.one {
        grid-column: auto;
    }

    .grid-item.one img {
        float: none;
        display: block;
        margin: 0 auto 1rem;
        width: 100%;
        max-width: 18rem;
    }
}

@media screen and (max-width: 480px) {
    .grid {
        gap: 1.5rem;
    }

    .grid-item {
        padding: 1rem;
    }

    .grid-item h3 {
        font-size: 1.2rem;
    }
}
