:root{
    --primary-color: hsl(214, 84%, 56%);
    --text-color: hsl(0, 0, 31%);
    --bg-color: hsl(0, 0%, 90%);
    --bg-card-color: hsl(0, 0%, 98%); 
    --border-radius: 0.4em;
    --transition: color 0,1s, background-color 0,2s ease-in-out;
}

*{
    box-sizing: border-box;
}

a{
    color: var(--primary-color);
    text-decoration: none;
}
img{
    max-width: 100%;
    display: block;
}
body{
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
    font-family: sans-serif;
}
body.dark{
    --text-color: hsl(0, 0, 83%);
    --bg-color: hsl(0, 0%, 15%);
    --bg-card-color: hsl(0, 0%, 20%); 
    
}
.header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
    padding: 0 1.5em;
    background-color: var(--bg-card-color);
    transition: var(--transition);
}
.switches{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.toggle-theme{
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.toggle-theme__icon{
    margin-right: 0.5em;
    width: 20px;
}
.toggle-theme__text{
    font-size: 0.8rem;
}

.colors{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 20px;
    width: 100px;
}
.colors__item{
    width: 20px;
    height: 20px;
    border: 1px solid var(--text-color);
    background-color: var(--primary-color);
    cursor: pointer;
}
.colors__item--blue{
    --primary-color: hsl(214, 84%, 56%);
}
.colors__item--green{
    --primary-color: hsl(150, 84%, 56%);
}
.colors__item--purple{
    --primary-color: hsl(276, 84%, 56%);
}
.colors__item--orange{
    --primary-color: hsl(46, 84%, 56%);
}
.title{
    text-align: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.main{
    display: grid;
    padding: 2em;
    gap: 0.5em;
}

@media screen and (min-width:720px) {
    .main{
        grid-template-columns: min-content 1fr;
    }
}
.column{
    display: grid;
    gap: 0.5em;
}
@media screen and (min-width:720px) {
    .column--right{
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, min-content);
        align-items: start;
    }
}
@media screen and (min-width: 760px) {
    .card--proyect{
        display: grid;
        grid-template-columns: min-content 1fr;
        grid-column: 1 / -1;
    }    
}
.card{
    padding: 1em;
    background-color: var(--bg-card-color);
    border-radius: var(--border-radius);
}
.card__image-container{
    min-width: 320px;
    border-radius: var(--border-radius);
    overflow: hidden;
}
.card__header{
    padding: 1em 0;

}
.card__title{
    margin: 0;
    font-size: 1,2rem;
}
.card__subtitle{
    font-size: 0.9rem;
    opacity: 0.8;
}
.card__link{
    margin-bottom: 0.5em;
}
.card__text{
    font-size: 0.9rem;
    line-height: 1.3;
}

.proyect{
    position: relative;
}

@media screen and (min-width: 760px) {
    .proyect{
        margin-left: 2em;
    }
}

.proyect__tags{
    display: flex;
    justify-content: space-between;
    margin: 0.5em 0;
    font-size: 0.6rem;
    width: 275px;
}

@media screen and (min-width: 760px) {
    .proyect__tags{
        width: 325px;
        font-size: 0.8rem;
    }
}
.proyect__tag{
    padding: 0.4em 0.8em;
    border-radius: var(--border-radius);
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}
.buttons{
    display: flex;
    justify-content: space-between;
    width: 225px;
}
@media screen and (min-width: 760px) {
    .buttons{
        position: absolute;
        bottom: 1em;
    }
}

.button{
    width: 100px;
    line-height: 2.5;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
}
.button--primary{
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
   
}
.button--ghost{
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.skills{
    padding: 1em, 0;
}

 
