

@import url('https://fonts.googleapis.com/css2?family=Markazi+Text:wght@400..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');



html {
    scroll-behavior: smooth;
    font-family: "Roboto", serif;
    overflow-x: hidden; /* Prevent horizontal scrolling */


}


/* Projektide konteiner */
.project-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 10%;

}

/* Iga projekti kast */
.project-box {
    background-color: #1e1e1e;
    color: #fff;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 20px;
    width: calc(33.33% - 20px); /* Kolm kasti reas */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Hover-efekt */
.project-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Piltide paigutus iga projektikasti sees */
.project-box img {
    width: 100%;  /* Täidab kogu kasti laiuse */
    height: auto; /* Kõrgus kohandub automaatselt */
    border-radius: 10px;  /* Ümarad nurgad */
    margin-bottom: 15px;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Projekti pealkirja stiil */
.project-title {
    font-size: 1.2em;
    text-align: center;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    align-items: left;
}

/* Projekti kirjelduse stiil */
.project-description {
    font-size: 1em;
    color: #ddd;
    text-align: center;
}




/* Adjust for medium screens (2x2 layout) */
@media (max-width: 1024px) {
    .project-box {
        width: calc(50% - 20px); /* Two boxes per row */
    }
}

/* Adjust for smaller screens (1x1 layout) */
@media (max-width: 768px) {
    .project-box {
        width: 100%; /* One box per row on small screens */
    }
}
