
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    line-height: 1.6;
    color: #222;
    background-color: #f5f3f8;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #4b2e83;
    margin-bottom: 5px;
}

body > p {
    text-align: center;
    margin-top: 0;
}

h2 {
    color: #4b2e83;
    border-bottom: 2px solid #4b2e83;
    padding-bottom: 5px;
    margin-top: 40px;
}

p {
    margin: 10px 0;
}

/* main sections (ILUZORKA, other projects, other) */
body > section {
    background-color: #ffffff;
    border: 1px solid #ccc;
    padding: 15px 25px 25px;
    margin-bottom: 25px;
}

/* single projects inside a section */
section section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #aaa;
}

/* images */
img {
    max-width: 100%;
    height: auto;
    border: 1px solid #999;
    margin: 5px 5px 5px 0;
}

/* thumbnails in the project rows */
.gallery img {
    /* width: 180px; */
    height: 180px;
    object-fit: cover;
}

/* the big picture of a single game */
.cover img {
    max-width: 500px;
}

/* images in the "Inne" section */
.other img {
    /* width: 250px; */
    height: 350px;
    object-fit: cover;
}

video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
    border: 1px solid #999;
}

a {
    color: #4b2e83;
}

a:hover {
    color: #b0398f;
}

/* phones */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    body > section {
        padding: 10px 15px 20px;
    }

    .gallery img, .other img, .cover img{
        width: 100%;
        /* max-height: 100%; */
        object-fit: scale-down;
    }
}


.cover{
    align-items: center;
    align-content: center;
    text-align: center;
}


#motivation{
    width: 120%;
}
#videolink{
    text-align: center;
}