/* static/css/styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    min-width: 340px;
    padding-top: 50px;
    justify-content: center;
}

header {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    min-width: 340px;
    margin-top: 7.5px;
}

header h1 {
    margin: 0;
    font-size: 2em;
}

header p {
    margin: 0;
    font-size: 1.2em;
}

main {
    padding: 10px;
    min-width: 360px;
}

h2 {
text-align: center;
}

footer {
    background-color: #333;
    color: white;
    padding: 30px;
    bottom: 0;
    width: calc(100% - 60px);
    text-align: center;
    min-width: 320px;
}

section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #ffffff;
    color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: -1px 2px 5px rgba(0, 0, 0, 0.3), 1px 2px 5px rgba(0, 0, 0, 0.3);
    min-width: 320px;
    margin-bottom: 100px;
}

.project {
    flex: 0 0 calc(25% - 20px);
    background-color: #333;
    color: white;
    margin: 10px; /* Add this to separate the cards */
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    min-width: 280px;
    min-height: 200px;
    transition: flex 0.3s ease;
    max-width: 380px;
    max-height: 300px;
    transition: transform 0.3s ease, background-color 0.3s ease;

}

.project:hover {
    transform: scale(1.02);
    background-color: #444;
}

.project span {
    display: flex;
    align-items: right; /* to align items vertically in the middle */
}

.project span img {
    margin-left: auto; /* to push the image to the right */
    width: 32px;
    height: 32px;
}

.project h3 {
    margin-top: 0;
    color: #fff;
}

.project p {
    color: #ddd;
    margin-bottom: 20px;
}

.project a {
    display: inline-block;
    margin-right: 10px;
    margin-top: 15px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.project a:hover {
    background-color: #ddd;
}

.project .badge {
    display: inline-flex;
    flex-wrap: wrap;
    padding: 4px 8px;
    margin: 5px 2px;
    border-radius: 5px;
    background-color: #6b6a6a;
    color: #ffffff;
    font-size: 10px;
    text-transform: capitalize;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.project .badge:hover {
    transform: scale(1.05);
    background-color: #9e9d9d;
}

nav {
    position: fixed;
    top: 0;
    width: calc(100% - 20px);
    background-color: #333;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: flex-end;
    z-index: 500;
}

nav a {
    margin-left: 20px;
    color: white;
    text-decoration: none;
}

nav img {
    width: 30px;
    height: 30px;
}

nav button {
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    margin-right: 10px;
}

nav button:hover {
    background-color: #ddd;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 95vh;
    min-width: 340px;
}

@media (max-width: 360px) {
    .container {
        flex: 0 0 75%;
    }
}

@media (max-width: 1080px) {
    .container {
        flex: 0 0 50%;
    }
}

@media (max-width: 1340px) {
    .container {
        flex: 0 0 25%;
    }
}

@media (min-width: 730px) and (min-height: 1200px) {
    footer {
        position: fixed;
        bottom: 0;
    }
}