@font-face{
    font-family: "Open Sans";
    src:url(../fonts/OpenSans-VariableFont_wdth\,wght.ttf);
}

:root{
    --primary-color: #D5DAD9;
    --secondary-color: #213D69;
    --call-to-action-color: #FFAD05;
    --neutral-color: #111606;
    --ascient-color: #4D462B;
    --error-background: #eb4236;
    --error-color:#91140c;
    --info-backround:#2523CF;
    --info-color:#3937A5;
    --warning-background:#F4931D;
    --warning-color:#F5C701;
    --ok-background:#0D7520;
    --ok-color:#23CC42;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 16px;
    font-family: "Open Sans";
}

body{
    background-image: url(../images/original/backgroundimage1.jpg);
    background-color: var(--primary-color);
    color: var(--neutral-color);  
}

h1{
    font-size: 2rem;
}

h2{
    font-size: 1.5rem;
}

h1, h2{
    padding-left: .5rem;
    border-left: 3px solid var(--secondary-color) ; 
}


h1, h2, h3, h4, h5, h6{
    color: var(--secondary-color);
}


/* MENU */

.nav-header{    
    background-color: var(--secondary-color);
    box-shadow: 3px 3px 5px rgba(0, 0, 0, .1);
    display: flex;
    flex-direction: row;
}

.logo-img{
    height: 50px;
    margin-left: 1rem;
}

.topnav{
    display: none;
    background-color: var(--secondary-color);
    overflow: hidden;
    width: 100%;
}

.menu-list{ 
    display: grid;  
    gap: .1rem; 
    width: 100%;
    list-style: none;
}

.menu-item{
    height: 55px;
}

.menu-link{
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: var(--primary-color);
}


#nav-open{
    justify-self: end;
}

#nav-close{
    display: none;
    justify-self: end;

}

.menu-link:hover{
    color: var(--neutral-color);
    animation-name: color-change;
    animation-duration: .5s;
}


/* LOGO HEADER */
.header{
    margin: 2em 0;
    padding: .5rem;
}

.header-content{
    margin:auto auto;
}

.header-picture{
    width: 100%;
}

.header-image{
    /* This shit need to be like that, center image */
    display: block;
    margin-left: auto;
    margin-right: auto;

    width: 70%;
    border-radius: 50%;
    border: 2px solid var(--neutral-color);
}

.header-logo{
    display: grid;  
    align-content: center;
    text-align: center;
}

.name-header{
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: 900;
}

.motto-header{
    display: block;
    color: var(--ascient-color);
}
.motto-header{
    display: flex;
    justify-content: center;
}

.motto::after{
    content: '|';
}

.motto:last-child ::after {
    content:'';
}

.svg-icon{
    height: 48px;
    width: 48px;
}
/* LOGO HEADER END */


/* CARDS */

.cards{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 1rem;
    gap: 2rem;
    align-items: center;
}

.card {
    width: 300px; /* Set a fixed width */
    min-height: 400px; /* Set a fixed height */
    color: var(--primary-color);
    border-radius: 10px;
    margin: 1em 0;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    display: grid;
    overflow: hidden;
    grid-template-rows: repeat(2,1fr);
    transition: transform 0.3s ease-in-out; /* Add transition for smooth effect */
}

.card-image, .card-image > picture{
    width: 100%;
    height: 100%;
}

.card-image > picture > img{
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container */
}

.card:hover {
    transform: scale(1.05); /* Zoom in the card on hover */
}

.card-content {
    display: flex;
    flex-direction: column;
    z-index: 2;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8); /* Optional: Add a semi-transparent background to make text readable */
}

.card-title, .card-des {
    margin: 0.5rem 0 0 0;
    justify-self: flex-start;
}

.card-buttons {
}

.card-image img{
    margin-left: auto;
    margin-right: auto;  
    grid-row: 1; 
}


.card-title{    
    font-size: 1.2rem;
    font-weight: bold;
    grid-row: 1;
}

.card-des{
    margin: .5em 0 0 0;
    grid-row: 1;
}

.card-buttons{
    align-items: end;
    display: grid;
    grid-template-columns: repeat(6,1fr);
}

.card-buttons a:last-child{
    grid-column: 4/7;
}


/* CARDS ENDS */

nav ul li a{
    color: var(--primary-color);
}

/* FOOTER */

footer{
    height: 5rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-align: center;
    padding-top: 2rem;
}


/* ARTICLE CSS */

.article-header{
    margin: 2em 0;
}


a{
    color: var(--secondary-color);
}

section{
    margin-bottom: 2rem;
}


.img-fluid{
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: 30rem;
    max-width: 100%;
}

/* RESUME CSS */

.date{
    color: var(--ascient-color);
    font-weight: 700;
}

.subject{
    color: var(--neutral-color);
    font-weight: 600;
}

.indented{
    margin-left: 1rem;
    list-style-type: none;
}

/* FORM */

input[type="submit"]{
    background-color: var(--secondary-color);
    color: var(--primary-color);
    line-height: 2rem;
    border: 0px;
    border-radius: 3px;
}

input, textarea{
    border: 0;
    border-radius: 5px;
    line-height: 2rem;
    padding: .5rem;
}

textarea{
    height: 10rem;
    resize: vertical;
    min-height: 3rem;
}



input[type="submit"]:hover{
    background-color: var(--call-to-action-color);
    color: var(--neutral-color);
    
}

/* SKILLS CSS */

.skill-levels{
    display: flex;
    flex-wrap: wrap;
}

.skill-level-empty, .skill-level-fill{
    width: 1.8rem;
    height: 1rem;
    margin-left: .1rem;
}

.skill-level-fill{
    background-color: var(--secondary-color);    
}

.skill-level-empty{
 border: 1px solid var(--secondary-color);
}

.flex{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
}



/* GENERAL */
.container{
    width: 100%;
}

.row{
    display: grid;
    margin-bottom: 2rem;
}


.grid{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: .3rem;
}

.grid2x1
{
    display: grid;
    grid-template-columns: repeat(2,1fr);
}

.main-content{
    backdrop-filter: blur(15px);
    padding: .5rem;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    margin-bottom: 2rem;
    width: 95%;
    margin: 2em auto;
}

.btn{
    background-color: var(--call-to-action-color);
    color: var(--secondary-color);
    padding: .5rem;
    border-radius: 3px;
    text-decoration: none;
    justify-self: right;
    text-align: center;
    height: 2.5rem;
}

p, figure{
    margin-bottom: 2rem;
}

figure{
    display: grid;
    justify-content: center;
}

.socials{
    display: flex;
    gap: .5rem;
    justify-content: center;   
}

.social-item{
    color: var(--secondary-color);
}

.secondary-color{
    color: var(--secondary-color);
}

.active{
    background-color: var(--call-to-action-color);
    color: var(--neutral-color);
}

.error, .ok, .warning, .info{
    width: 100%;
    height: 100%;
    text-align: center;
    display: grid;
    justify-content: center;
}
.warning{
    background-color: var(--warning-background);
    border: 1px solid var(--warning-color);
    color:var(--neutral-color);
}
.ok{
    background-color: var(--ok-background);
    border: 1px solid var(--ok-color);
}
.info{
    background-color: var(--info-backround);
    border: 1px solid var(--info-color);
}
.error{
    background-color: var(--error-background);
    border: 1px solid var(--error-color);
}
.message{
    display: flex;
    justify-content: start;
    align-items: center;
    color: white;
    height: 3.2rem;
    padding: 0 5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    background-position-x: 1rem;
}


.error{    
    background-image: url(../images/icons/error.svg);
    background-repeat: no-repeat;
}

.ok{
    background-image: url(../images/icons/ok.svg);
    background-repeat: no-repeat;
}

.info{
    background-image: url(../images/icons/info.svg);
    background-repeat: no-repeat;
}

.warning{
    background-image: url(../images/icons/warning.svg);
    background-repeat: no-repeat;

}


@media screen and (min-width: 901px) {

    .main-content{
        width: 70%;
    }
    .nav-open{
        display: none;
    }
    
    .nav-close{
        display: none;
    }
    
    .topnav{
        display: block;
    }
    .menu-list{
        display: flex;
        justify-content: center;
        gap: .1rem;
    }

    .header{
        width: 50%;
        margin: auto auto;
    }

    form{
        width: 50%;
        margin: auto auto;
    }
    
}

@keyframes color-change
{    
    to {background-color: var(--call-to-action-color);}   
    to{color: var(--neutral-color);} 
}
