/* "Spline Sans", sans-serif */

body{
    font-family: "Roboto";
    margin: 20px;
    background-color: white; 
    overflow-x: hidden !important;
    scrollbar-width: none;
}

footer{
    background-color: #474747;
    color: #fff;
    padding: 1px;
    text-align: center;
}

footer p{
    padding: 5px;
    margin: 3px;
}

main{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.NA_l{
    opacity: 0;
    transform: translateX(-100%);
    transition: all 1s;
    overflow-x: hidden;
    max-width: 90%!important; height: auto; overflow: hidden!important;
}

.NA_r{
    left: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 1s;
    overflow-x: hidden;
    max-width: 90%!important; height: auto; overflow: hidden!important;
}

.section{
    background-color: aliceblue;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    padding-bottom: 10px;
    width: 90svw;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1); 
    align-items: center;
    margin-left: 10svw;
    margin-right: 10svw;
}

.show{    
    opacity: 1;
    transform: translateX(0);
}

h1, h2, h3 {
    font-family: 'Linotte' !important   ;
}

.li-column li{
    display: inline;
    align-items: center;
    margin-right: 10px;
}

ul{
    list-style-type: disc;
}

ul.dash{
    list-style-type: none;
}

ul.dash > li:before {
    display: inline-block;
    content: "-";
    width: 1em;
    margin-left: -1em;
}

img{
    max-width: auto; 
    height: 100%; 
}

.press{
	background-color: #337ab7;
	color: #fff;
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
    height: auto;
    width: 162px;
    margin-right: 10px;
}

.press:hover{
	background-color: #23527c;
}

.container{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    padding-bottom: 0;
}

.skills_container{
    display: flex;
}

.flex{
    flex: 1;
}

.main_hero_container{
    display: grid;
    grid-template-columns: 60% 40%;
    color:#474747;
    height: 100vh;
    width: 100%;
    padding: 2%;
    margin-left: 10%;
}

.main_hero_container h1{
    font-size: 7vh;
}

.main_hero_container img {
    z-index: -10;
    mask: linear-gradient(to bottom, white 60%, transparent);
}

itemprop{
    margin-top: 10vh;
}

itemprop p{
    margin: 2%;
}

.fa {
    color: #474747; 
    margin-right: 2.5%;
}

.nav {
    position: fixed;
    right: 0;
    width: 13rem;
    background-color: #ffffff00;
    padding: 1rem;
    margin: 0;
    z-index: +10;
}

.nav_list {
    list-style: none;
    padding: 0;
    display: none; 
    flex-direction: row;
}

.nav_list li {
    margin-inline: 1rem;
    padding: 2px;
}

.nav_list a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav_list a:hover {
    color: #ccc;
}

.burger_btn {
    position: absolute;
    display: block;
    top: 0;
    right: 0;
    width: 2.5rem;
    height: 3rem;
    background: none;
    outline: none;
    border: none;
    appearance: none;
    cursor: pointer;
    z-index: +5;
}

.burger_icon, .burger_btn::before, .burger_btn::after {
    content: "";
    display: block;
    position:absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #474747;
    transition: transform 2s ease-in-out;
    margin: 6px 0px;    
}

.burger_btn span:nth-child(1){
    top: 25%;
}

.burger_btn span:nth-child(3){
    top: 75%;
}

.nav_list.shown {
    display: inline-block;     
    background-color: #474747;
    padding: 1rem;
}

.burger_icon .shown {
    background-color: aliceblue !important;
    transition: transform 2s ease-in-out;
}

@media screen and (max-width: 768px) {
    section{
        width: 90%;
    }

    .main_hero_container{
        height: 75%; 
    }

    .main_hero_container img {
        max-width: 95%;
    }

    .main_hero_container h1{
        margin-block-start: 0;
        padding: 0;
    }

    .main_hero_container p{
        text-align: right;
    }

    .press{
        width: 100%; 
        margin: 10px 0;
    }
}

.areas-of-interest {
    margin: 2rem 0;
    grid-template-columns: 3;
    grid-template-rows: 2;
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 2svw;
}

.areas-of-interest h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.scroll_ribbon{
    width: 100vw;
    display: inline-flex;
    padding-bottom: 10px;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent) ;
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}
.scroller__inner{
    width: fit-content;
    padding-block: 1rem;
    display: flex;
    gap: 2rem;
    animation: scroll 120s forwards linear infinite ;
}

.scroll_item article{
    padding: 2rem;
    padding-top: 0rem;
    width: 80%;
}
.scroll_item{
    background-color: aliceblue;
    box-sizing: border-box;
    width: 350px;
    height: 500px;;
    cursor: pointer;
    position: relative;
    padding: 1rem;
}

.scroll_item h2{
    padding-left: 1rem;
    padding-right: 1rem;
}

.scroll_item p{
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scroll_item.deactivate{
    animation-play-state: paused !important;
}

.scroll_item img {
    width:100%;
    height: 55%;
}

@keyframes scroll {
    to{
        transform: translate(calc(-50% - 1rem));
    }
}

.modal {
    position:fixed;
    top: 50%;
    left: 50%; 
    transform: translate(-50%, -50%) scale(0);
    transition: 200ms ease-in-out;
    border: 1px solid black;
    border-radius: 10px;
    z-index: 10;
    background-color: white;
    width: 70%;
    height: 70%;
    overflow: auto;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.modal_header{
    position:fixed;
    top: 20%;
    left: 50%; 
    width: 70%;
    height: 5%;
    transform: translate(-50%, -10%) scale(0);
    transition: 200ms ease-in-out;
    border: 1px solid black;
    border-radius: 10px;
    z-index: 10;
    background-color: white;
    padding: 10px 15px;
    align-items: center;
    border-bottom: 1px solid black;
    margin: 0;
    justify-content: space-between;
    display: flex;
}

.modal_header .title{
    font-size: 2rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

.modal_header button{
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-size: 1.5rem;
    font-weight: bold;  
    color: black;  
    padding: 0;
    margin: 0;
    margin-right: 0.5rem !important;
    width: 1.8rem;
}

.close_button:hover{
    background-color: rgb(238, 2, 2);
    border-radius: 100%;
}

.modal_body{
    padding: 10px 15px;
    gap: 5%;
    overflow-block:auto;
    justify-content: space-between;   
    display: flex;
}

.modal_body img{
    width: 40%;
    height: auto;
}

.modal_body .side_l{
    position: relative;
    left: 0 !important;
}

.modal_body .side_r{
    position: relative;
    right: 0 !important;
}

#overlay{
    position: fixed;
    opacity: 0; 
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .5);
    transition: 200ms ease-in-out;
    pointer-events: none;
}

.modal.active{
    transform: translate(-50%, -40%) scale(1);
}

.modal_header.active{
    transform: translate(-50%, -90%) scale(1);
}

#overlay.active{
    opacity: 1;
    pointer-events: all;
} 

#portfolio{
    background-color: white !important;
    padding: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
}


