html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Pixelify Sans', sans-serif;
}

body {
    background: url('https://art.pixilart.com/4b680819d6447f3.gif') no-repeat center center fixed;
    background-size: cover;
    color: white;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* keskitys vaakasuunnassa */
    text-align: center;
    padding: 2rem;
    overflow-y: auto; /* scroll tarvittaessa */
    box-sizing: border-box;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 2.2rem;
    margin: 1.5rem 0 0.5rem 0;
}

.links {
    display: flex;
    font-size: 2.2re,;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.skills-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.project-link {
    text-decoration: none;
    color: white;
}

/* Projektien grid */
.projects-grid {
    display: flex;
    justify-content: center;   /* keskitetään vaakasuunnassa */
    gap: 30px;                 /* väli korttien välillä */
    flex-wrap: wrap;           /* rivittää pienemmillä näytöillä */
    margin-top: 20px;
}

/* Projektikortti */
.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    text-decoration: none;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    transition: transform 0.2s, background-color 0.2s;
    font-family: 'Roboto', sans-serif;  /* sama fontti kaikille */
}

.project-card:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.15);
}

.project-card img,
.project-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    font-size: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-card span {
    text-align: center;
    font-size: 1.1em;
}
