@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

html
{
    scroll-behavior: smooth;
}

p
{
    font-family: 'Calibri', 'Arial', sans-serif;
}

h1
{
    font-family: Quicksand, cursive;
}

h2
{
    font-family: Quicksand, cursive;
}

h3
{
    font-family: Quicksand, cursive;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1em 0;
    text-align: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 1em;
    font-family: 'Calibri', 'Arial', sans-serif;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

section {
    padding: 2em;
    margin: 2em 0;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.project-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.project-container {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.project-card {
    flex: 0 0 50%;
    text-align: center;
}

.project-card img {
    cursor: pointer;
}

button {
    background-color: #f9f9f9;
    color: #3a3131;
    border: none;
    padding: 0.3em;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

button.prev-btn {
    left: 10px;
    background-color: transparent;
}

button.next-btn {
    right: 10px;
    background-color: transparent;
}

button:focus {
    outline: none;
}

.next-btn, .prev-btn {
    font-size: 1.5em;
}

.img-skill
{
    width:110px;
    height:110px;
    vertical-align: middle;
    margin: 20px;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.9); 
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

.modal-content, .close {
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {transform: scale(0.1)} 
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .project-card {
        flex: 0 0 100%;
    }

    button.prev-btn, button.next-btn {
        font-size: 1em; 
    }

    .project-container {
        padding: 0 20px;
    }
}

@media (min-width: 769px) {
    .project-card {
        flex: 0 0 50%;
    }
}

.flags {
    position: absolute;
    top: 10px; 
    right: 10px; 
}

.flags img {
    width: 30px;
    height: 20px;
    margin-left: 5px;
    cursor: pointer;
}