@font-face {
    font-family: "Rodin";
    src: url("assets/fonts/Rodin-pro.otf");
}

@font-face {
    font-family: "Noto Sans";
    src: url("assets/fonts/NotoSans-Regular.ttf");
}

html {
    scroll-behavior: smooth;
}

body * {
    margin: 0;
    padding: 0;

}

body {
    background-color: #CAC5AD;
    /* font-family: "Noto Sans", "Rodin"; */
    font-family: sans-serif;
    margin: 0 50px;
}

main {
    /* border: solid 1px green; */
    max-width: 1280px;
    margin: auto;
}

.div-scroll-controlls {
    position: fixed;
    right: 0;
    bottom: 0;
    padding: 0px;
    margin: 0px 0px 10px 0px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 150ms ease-in-out;
}

.div-scroll-controlls:hover {
    margin: 0px 10px 10px 0px;
}

.div-scroll-controlls a:hover {
    opacity: 1;
}

.div-scroll-controlls a {
    background-color: #4C4940;
    color: #CAC5AD;
    width: 20px;
    padding: 5px;
    aspect-ratio: 1/1;
    text-decoration: none;
    justify-content: center;
    display: flex;
    align-items: center;
    font-size: 18px;
    opacity: .3;
    transition: all 150ms ease-in-out;
}

footer {
    margin: 1em 0 .5em 0;
    padding: 5px;
}

footer a {
    font-size: 18px;
}

.no-deco {
    text-decoration: none;
    color: #4C4940;
}

.d-flex {
    display: flex;
}

.align-items-start {
    align-items: start;
}

.align-items-center {
    align-items: center;
}

.align-items-end {
    align-items: end;
}

.justify-content-end {
    justify-content: end;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-start {
    justify-content: start;
}

.justify-content-space-between {
    justify-content: space-between;
}

.justify-content-space-evenly {
    justify-content: space-evenly;
}

.my-1 {
    margin: 0.25em 0;
}

.my-2 {
    margin: 0.5em 0;
}

.my-3 {
    margin: 0.75em 0;
}

.my-4 {
    margin: 1em 0;
}

.navbar {
    border-bottom: solid 2px #4C4940;
}

.navbar ul {
    display: flex;
}

.navbar ul>li {
    width: 6rem;
    margin: 5px 10px;
    padding: 2px 10px;
    list-style: none;
    color: #4C4940;
    background-color: #4C494030;
    display: flex;
    align-items: center;
    justify-content: start;
    transition: all 150ms ease-in-out;
}

.navbar ul>li:hover {
    background-color: #4C4940;
    color: #CAC5AD;
    margin: 0px 10px;
    padding: 0px 10px;
}

.navbar ul>li>a {
    text-decoration: none;
    color: inherit;
    padding-left: 3px;
    padding-right: 3px;
}

.navbar ul>li.active {
    margin: 0;
    padding: 0;
    background-color: #4C4940;
    color: #CDC8B0;
}

.section-title {
    font-weight: 400;
    font-size: 2em;
    color: #4C4940;
    text-shadow: 3px 3px #4C494050;
    margin: 10px 0;
}

#about-me article div>p {
    font-weight: 500;
    color: #4C4940;
}

article header {
    background-color: #4C4940;
    color: #CDC8B0;
    padding: 2px 5px;
    font-size: 18px;
}

article figure {
    background-color: #4C494050;
    /* height: 100%; */
}

article>div>p {
    padding: 10px;
}

section>article {
    background-color: #D8D2BA;
    transition: all 150ms ease-in-out;
}

/* section>article:hover {
    box-shadow: 4px 4px 0 #4c49408c;
} */

section#skills div.grid-2 {
    padding: 5px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 5px 0;
}

/* .grid-2 div {
    margin: 5px 0;
} */

ul.skill-list li {
    list-style: none;
    padding: 2px 0px;
    margin: 0px 0px;
    color: #4C4940;
    transition: all 200ms ease-in-out;
    background-color: #4C494030;

}

ul.skill-list li button {
    border: none;
    background-color: transparent;
    color: #4C4940;
    font-size: 16px;
    margin: 0 10px;
}

ul.skill-list li:hover button {
    color: #CDC8B0;
    cursor: pointer;
}

ul.skill-list li:hover {
    color: #CDC8B0;
    padding-left: 20px;
    background-color: #4C4940;
}

ul.skill-list li.selected {
    color: #CDC8B0;
    padding-left: 20px;
    background-color: #4C4940;
}

ul.skill-list li.selected button {
    color: #CDC8B0;
}

hr {
    margin: 10px 0 5px 0;
    border: solid 1px #4C494060;
}

.my-1 {
    margin: 1em 0px;
}

.img-hard-skill {
    height: 120px;
    width: auto;

}

.skill-img-container {
    display: flex;
    justify-content: center;
    padding: 5px;
}

.skill-img-container img:hover {
    filter: sepia(0) grayscale(0);
}

.skill-img-container img {
    filter: sepia(.7) grayscale(.7);
    transition: all 200ms ease-in-out;
}

.skill-info-container {
    padding: 5px;
}

.skill-info-container h3,
p {
    color: #4C4940;
}

.skill-info-container h3 {
    font-size: 16px;
}

.skill-info-container p {
    font-size: 14px;
}


.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.projects-container article {
    width: 100%;
    height: auto;
    background-color: #4C494060;
    display: flex;
    flex-direction: column;
    position: relative;

    transition: all 150ms ease-in-out;
    overflow: hidden;
}

.project-thumb-container {
    overflow: hidden;
    aspect-ratio: 16/9;
}

div.projects-container article header {
    transition: all 200ms ease-in-out;
}

div.projects-container article img {
    transform: scale(1.1);
    filter: grayscale(.5) sepia(.5);
    transition: all 200ms ease-in-out;
}

div.projects-container article:hover header {
    padding-left: 5px;
    transition: all 200ms ease-in-out;
}

div.projects-container article:hover img {
    filter: grayscale(0) sepia(0);
    margin-left: 20px;
    transition: all 200ms ease-in-out;
}

.projects-container article footer {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    display: flex;
    justify-content: end;
    margin-bottom: 0;

    color: #CDC8B0;
    padding-left: 5px;
    padding-right: 15px;
    transition: all 300ms ease-in-out;
    opacity: 0;
}

.projects-container article:hover footer {
    background-color: #4c4940;
    padding-right: 5px;
    opacity: .9;
    transition: all 300ms ease-in-out;
}

.projects-container footer a {
    text-decoration: none;
    margin: 5px;
    color: #CDC8B0;
    font-size: 20px;
}

.projects-container footer i {
    background-color: transparent;
}

.project-thumb {
    width: 100%;
    height: auto;
    /* transform: scale(1.2); */
}

/* img .project-thumb {
    transform: scale(1.5);
} */

form {
    /* border: solid 1px #00a0e3; */
    padding: .5em;
    background-color: #D3CEB5;
}

.box-shadow-1 {
    box-shadow: 4px 4px 0 #4c49408c;
}

form div {
    margin: 3px 0;
}

form label {
    color: #4C4940;
}

/* FORM CONTACT */
form input {
    width: 100%;
    background-color: #4C4940;
    border: none;
    height: 1.3em;
    font-size: 18px;
    color: #DAD4BB;
    text-indent: 5px;
    /* padding: 5px; */
}

form textarea {
    width: 100%;
    background-color: #4C4940;
    border: none;
    font-size: 18px;
    color: #DAD4BB;
    text-indent: 5px;
    max-width: 100%;
    /* padding: 5px; */
}

form button {
    display: flex;
    background-color: #B5B09C;
    color: #4C4940;
    padding: 2px 5px;
    border: none;
    font-size: 18px;
    transition: all 150ms ease-in-out;
    border: solid 2px transparent;
    align-items: center;
    gap: 5px
}
form button i{
    font-size: 12px;
}

form button:hover {
    background-color: #4C4940;
    color: #D9D3B9;
    cursor: pointer;
   /*  border: solid 2px #4C4940; */
    box-shadow: 3px 3px 0 #4c494059;
}
form button:focus{
    background-color: #4C4940;
    color: #D9D3B9;
    box-shadow: 3px 3px 0 #4c494059;
}

.custom-margin-left {
    border-left: 3px solid #4C4940;
    padding-left: 10px;
}

.patter-1 {
    background-image: url(/assets/pattern-1.svg);
    height: 15px;
    background-size: contain;
    border-top: solid 2px #4C4940;
}

/* MODAL */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #0000004c;
}

.modal-content {
    background-color: #D3CEB5;
    margin: 15% auto;
    border-radius: 5px;
    width: 60%;
}

.modal-content header {
    color: #D8D2BA;
    background-color: #4C4940;
}

.modal-content header h2 {
    font-size: 20px;
    font-weight: normal;
    margin: 0 5px;
}

.btn-close-cont {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
}

.modal-content header span {
    font-size: 24px;
    font-weight: 600;
}

.close {
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #e5e5e5;
    text-decoration: none;
    cursor: pointer;
}


/* PROGRESS BAR */
progress {
    background-color: #e5e5e5;
    border: none;
    height: 5px;
    width: 100%;
    border-radius: 3px;
}

progress::-webkit-progress-bar {
    background-color: #e5e5e5;
    border-radius: 3px;
}

progress::-webkit-progress-value {
    background-color: #00a0e3;
}

progress::-moz-progress-bar {
    background-color: #00a0e3;
    border-radius: 3px;
}

@media (min-width: 960px) {
    main {
        width: 100%;
    }
}
@media screen and (max-width: 600px) {
    main {
        width: 100%;
    }

    .grid-2 {
        display: flex;
        flex-direction: column;
    }

    .projects-container {
        display: flex;
        flex-direction: column;
    }
}