/* Header */
header{
    background-color: #F5F5F5;
    display: flex;
    align-items: center;
    padding: 0 20px;
}
header h1{
    flex: 1;
    text-align: center;
    order: 1;
    font-size: 1.5rem;
}
header nav{
    flex: 1;
    font-size: 1.5rem;
    text-align: center;
    order: 2;
}
header ul li{
    display: inline;
    margin: 0 10px;
}
header ul li a{
    display: inline-block;
    padding: 0.5em 1em;
    border-radius: 4px;
}
header ul li a:hover{
    background-color: #F59E0B;
}
/*Main*/
main{
    display: flex;
    flex-direction: column;
    background-color: #F5F5F5;
    overflow: hidden;
}

/*Main Section*/
main section h2{
    text-align: center;
}
main section ol{
    display: grid;
    grid-template-columns: repeat(3,300px);
    justify-content: space-evenly;
    gap: 20px;
    padding: 20px;
    list-style: none;
}
@media (max-width: 1024px) {
    main section ol {
        grid-template-columns: repeat(2, 300px);
    }
}
@media (max-width: 600px) {
    main section ol {
        grid-template-columns: 300px;
    }
}
main section ol li{
    background-color: #FFFFFF;
    border: 1px solid #E9E9E9;
    border-radius: 5px;
    padding: 15px;
    aspect-ratio: 1 / 1.2;
    overflow: auto;
}
/*Group*/
group{
    background-color: #e9e7e7d2;
    display: flex;
    align-items: center;
    justify-content: center;

}
@media (max-width: 1700px) {
    group {
        flex-direction: column;
    }
}
group h1{
    text-align: center ;
}
group img{
    width: 100%;
    max-width: 600px;
    height: auto;
}
/*Article*/

article h2{
   text-align: center;
}
article ol{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0;
}
@media (max-width: 1024px) {
    article ol {
        flex-direction: column;
        align-items: center;
    }
}
article ol li{
    display: inline;
}
/* Footer */
footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    background-color: #E9E9E9;
}
footer ul li{
    display: inline;
    justify-content: space-between;
    margin: 0 3rem;
}
footer ul li a img{
    width: 40px;
    height: 40px;

}
/* General */
* {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, p{
    color: #142B4D;
}

/* Body */
body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    margin: 0%;
    padding: 0%;
}

/*Links*/
a {
    text-decoration: none;
    color: #142B4D;
}

/*List items*/
li {
    list-style-type: none;
}

/*Projects*/
.project img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px 4px 0 0;
}
.project {
    display: inline-block;
    background-color: #FFFFFF;
    border: 1px solid #E9E9E9;
    border-radius: 5px;
    width: 300px;
    height: auto;
    overflow: hidden;
}

/* Buttons */
button {
    background-color: #FFFFFF;
    border: none;
}

/*About Me*/
.about-me {
    max-width: 600px;
    margin: 20px auto;
    padding: 0 20px;
    text-align: center;
}