* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    background-color: #ffffff;
}

.dark-mode {
    background-color: black;
    color: white;
}


.top-section {
    display: flex;
    justify-content: space-between;
    margin-left:5.1%;
    margin-right: 5.1%;
}

.social {
    font-size: 30px;
    margin-top: 20px;
    margin-right: 20px;
}


a:hover {
    color: crimson;


}
.container {
    width: 100%;
    margin: auto;
}

ul {
    list-style: none;
}

.nav-main {
    font-family: 'PT Serif', serif;
    font-size: 20px;
    display: flex;
    padding: 10px 0;
    height: 65px;

}


a {
    text-decoration: none;
    color: #121212;
    padding: 0px;
}

/* NAV LEFT */
.nav-main ul {
    display: flex;
     background-color: rgb(255, 255, 255);
}

.nav-main ul li {
    padding: 12px;
}



/* TEXTO */

.grid {
    display: grid;  
    position:relative;  
    grid-template-columns: 1fr 1fr;
    row-gap: 5px;
    column-gap: 5px;
    margin-top: 1px;
    margin-left:5.1%;
    margin-right: 5.1%;
    margin-bottom: 5px;
    
    
}

.grid div {
    padding: 1px;
}

.contactcontainer {
    margin-top: 5%;
    margin-left: 40%;
    margin-right: 40%;
}
.h1 {
    margin-bottom: 0.5rem;
}

form {
    display: flex;
    flex-direction: column;
    width: 24rem;
    gap: 1rem;
    font-family: 'Times New Roman', Times, serif;
}

textarea {
    height: 6rem;
}

input,
select,
textarea {
    padding: 1.4rem;
    background: transparent;
    border: 1px solid black;
}
.h1 {
    font-size: 25px;
}
button {
    width: 8rem;
    padding: 1.4rem;
    cursor: pointer;
    background: crimson;
    color: white;
}


.images {
max-width: 100%;
height:100%;
}

.image {
position: relative;
}

.imagerandom {
    position: relative;
    max-width: 100%;
    max-height: 260px;
    grid-column:1/3;
    grid-row:1707px;
    object-fit: cover;
    }

.imagerandom__overlay {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        display: flex;
        flex: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.25s; 
}

.image__overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    flex: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s; 
}

.image__overlay:hover {
    opacity: 1;
}

.imagerandom__overlay:hover {
    opacity: 1;
}

.image__description {
    font-size: 25px;
    font-family: 'DM Serif Display', serif;
    text-align: center;
}

.footer {
    text-align: center;
    margin-top: 1px;
    margin-bottom: 5px;
    font-family: 'PT Serif', serif;
    font-size: 14px;
    padding: 10px 0;
}

.hr_top {
    margin-bottom: 20px;
    height: 3.5px;
    background-color: black;
}

.front_image {
    margin-top: 50px;
    text-align: center;
}

.parent {
    position: relative;
    text-align: center;

  }
  
  .image1 {
    position: relative;
    top: 0;
    left: 0;
    border: 1px solid #000000;
  }
  
  .image2 {
    position: absolute;
    border: 1px solid #000000;
    top: 0;
    left: 0;
    opacity:0.96;
    color: white;
    
  }

/* .main_text {
    margin-top: 20px;
    font-size: 30px;
    justify-content: center;
    text-align: left;
    margin-right: 300px;
    margin-left: 315px;
    margin-bottom: 10px; 

} */

.grid_text {
    display: grid;
    margin: 0.3%;
    margin-left: 25%;
    margin-right: 25%;
    font-size: 25px;
    padding: 10px;
    grid-template-rows: auto;
}

.grid_text div {
    padding: 3px;
}

.documentation_text1 {
    font-size: 24px;
    margin-bottom: 1px;

}
.italia {
    font-style: italic;
    font-size: 24px;
}

.documentation_text2 {
    font-size: 23px;
    margin-left: -19%;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 400;

}

.documentation2hr {
    margin-left: -19%;
    margin-right: 20%;
    border-color: #ff6600;

    
}

.documentation2hrmain {
    margin-left: -19%;
    margin-right: 0%;
    border-color: #ff6600;
    margin-bottom: 4px;
}

.soundcloud {
    margin-left: 16.3%;
    margin-right: 315px;
}

.hr_under_image {
    margin-top: 25px;
}



.hrvideotext {
    margin-top: 0.8%;
    margin-left: 25%;
    margin-right: 25%;
}

.portfoliogrid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    margin-left: 20%;
    margin-right: 20%;
    margin-top: 30px;
}

.containerportfolio {
    margin-top: 0.8%;
    font-size: 20px;
    justify-content: end;

}

.portfoliotitles {
    font-size: 20px;
    margin-right: 10px;
}

.randomtext {
    font-size: 50px;
    text-align: center;
}

.randomcontainer {
    margin-top: 50px;
}

.fontsizeportfolio {
    font-size: 18px;
    color: #000000c4;
}

.portfoliohr {
    margin-right: 20%;
    margin-bottom: 1%;
    border-color: #517C00;
}

.yearsizeportfolio {
    font-weight:600;
}

.images {
    animation: transitionIn 1s;
}

.image1 {
    animation: transitionIn 1s;
}

@keyframes transitionIn {
    from {
        opacity: 0;
        transform: rotateX(-10deg);
    }

    to {
        opacity: 1;
        transform: rotateX(0);
    }
}

.image1, .foto {
    max-width: 100%;
    height: 720px;
}

.image2, .foto {
    max-width: 100%;
    height: 100%;
}


.ankiimages {
    display: flex;
    
    margin-top: 1%;
    margin-left: 15%;
    margin-right: 10%;
    width: 24rem;
    gap: 1rem;
}

.bio {
    margin-top: 150px;
}
