* {
    margin: 0;
    padding: 0;


    box-sizing: border-box;
}

.carrossel .p1 {
    padding: 150px 170px;
    grid-column-start: 1;
    text-align: justify;
}

.carrossel .p2 {
    padding: 150px 40px;
    grid-column-start: 3;
    text-align: justify;
}


.carrossel {
    width: 75%;
    height: 90vh;
    text-align: justify;
    display: inline-grid;
    grid-template-columns: repeat(2, 1fr);
}


.p1,
.p2 {
    color: white;
    font-size: 22px;
    margin-bottom: 10px;
}

.slider {
    padding-top: 100px;
    margin: 0 auto;
    width: 500px;
    height: 530px;
    overflow: hidden;
}

.slides {
    width: 400%;
    height: 500px;
    display: flex;
}

.slides input {
    display: none;
}

.slide {
    width: 25%;
    position: relative;
}

.slide img {
    width: 500px;
    height: 430px;
    filter: brightness(50%);
}

.manual-navigation {
    position: absolute;
    width: 500px;
    margin-top: -40px;
    display: flex;
    justify-content: center;
}

.manual-btn {
    border: 2px solid #fff;
    padding: 5px;
    border-radius: 10px;
    cursor: pointer;
    transition: 1s;
}

.manual-btn:not(:last-child) {
    margin-right: 40px;
}

.manual-btn:hover {
    background-color: #fff;
}

#radio1:checked~.first {
    margin-left: 0;
}

#radio2:checked~.first {
    margin-left: -25%;
}

#radio3:checked~.first {
    margin-left: -50%;
}

#radio4:checked~.first {
    margin-left: -75%;
}

.navigation-auto div {
    border: 2px solid #fff;
    padding: 5px;
    border-radius: 10px;
    cursor: pointer;
    transition: 1s;
}

.navigation-auto {
    position: absolute;
    width: 500px;
    margin-top: 460px;
    display: flex;
    justify-content: center;
}

.navigation-auto div:not(:last-child) {
    margin-right: 40px;
}

#radio1:checked~.navigation-auto .auto-btn1 {
    background-color: #fff;
}

#radio2:checked~.navigation-auto .auto-btn2 {
    background-color: #fff;
}

#radio3:checked~.navigation-auto .auto-btn3 {
    background-color: #fff;
}

#radio4:checked~.navigation-auto .auto-btn4 {
    background-color: #fff;
}

html {
    background-color: #fff;
    color: #555;
    font-family: 'Lato', 'Arial', sans-serif;
    font-weight: 300;
    text-rendering: optimizeLegibility;
}

header {
    height: 100vh;
    width: 100vw;
    background-image: linear-gradient(rgba(0, 0, 0, 0.623), rgba(0, 0, 0, 1)), url(img/ABDOM2.png);
    background-size: cover;
    background-position: center;
}

header nav {
    position: absolute;
    top: 15px;
    display: flex;
    align-items: center;
    width: 100%;
}

header .logo {
    width: 100px;
    margin-left: 25px;
    border: solid 5px black;
    border-radius: 40px;
}

header .logo:hover {
    border: solid 8px transparent;
}

header .main-nav {
    list-style: none;
    display: flex;
    justify-content: space-around;
    flex-grow: 1;
    flex-direction: left;
    margin-left: 8%;
    margin-right: 37%;
}

header .main-nav ul {
    margin-right: 30%;
}

header .main-nav a {
    color: white;
    font-size: 1.6rem;
    font-weight: 400;
}

header .main-nav li {
    padding-bottom: 12px;
    padding-right: 12px;
    border-right: solid 4px rgb(255, 123, 0);
    border-bottom: solid 4px rgb(255, 123, 0);
    transition: border-right 0.3s, border-bottom 0.3s;
}

header .main-nav li:hover {
    border-left: solid 5px green;
    border-top: solid 5px green;
}

.main-nav li a {
    text-decoration: none;
}

@media (max-width: 768px) {
    header .main-nav {
        flex-direction: column;
        align-items: center;
    }

    header .main-nav li {
        border-right: none;
        border-bottom: none;
        margin-bottom: 10px;
    }
    
    .hero-text-box {
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    header .logo {
        margin-left: 0;
    }

}

#logo3d2 {
    width: 5px;
    height: 5px;
    left: 5px;
    bottom: 5px;
    animation: moveBox 4s;
    animation-fill-mode: forwards;
}

@media (min-width: 768px) {
    .carrossel {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
    }

    .p1,
    .p2 {
        text-align: left;
    }
}

@keyframes moveBox {
    0% {
        width: 5px;
        height: 5px;
        left: 5px;
        bottom: 5px;
    }

    50% {
        width: 45px;
        height: 45px;
        left: 45px;
        bottom: 45px;
    }

    100% {
        width: 90px;
        height: 90px;
        left: 90px;
        bottom: 90px;
    }
}