@font-face {
    font-family: SolusFont;
    src: url(Solus6.ttf);
}

@font-face {
    font-family: Inversionz;
    src: url(Inversionz_unboxed.ttf);
}

@font-face {
    font-family: TT;
    src: url(TT_Octosquares_Medium.ttf);
}

body {
    background-image: url("olena-bohovyk-Cq5NaI0yKBE-unsplash.jpg");
    margin: 0;
    color: azure;
    overflow-x: hidden;
}

.middle h1 {
    font-family: Inversionz;
    color: red;
    font-size: 8vw;
    margin-bottom: 1vw;
    text-align: center;
}

#bigName {
    margin-top: 3vw;
    max-width: 100%;
}

#poster {
    width: 30vw;
}

button {
    font-family: inherit;
    background: none;
    border: none;
    font-size: x-large;
    margin-top: 1vw;
    cursor: pointer;
    margin-right: 5vh;
    color: azure;
    max-width: 100%;
}

.top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-end;
    padding-bottom: 15px;
    font-family: SolusFont;
    background-color: black;
}

.middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: TT;
    text-align: center;
}

.middle p {
    text-align: center;
}

div {
    margin-bottom: 3vw;
    max-width: 100%;
    box-sizing: border-box;
}

#mepic {
    width: 30%;
    margin-right: 5%;
    margin-left: 5%;
    margin-top: 1vw;
}

/* Video responsive */
.middle video {
    max-width: 100%;
    height: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: 100%;
}

.column {
    flex: 32%;
    max-width: 32%;
    padding: 0 4px;
}

.mozaika {
    margin-top: 8px;
    vertical-align: middle;
    width: 100%;
}

.charm {
    width: 20vw;
}

.vedlesebe {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    color: azure;
    gap: 20px;
}

footer {
    color: azure;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    font-family: SolusFont;
    background-color: black;
}

.container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.mySlides {
    display: none;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    width: auto;
    margin-top: -50px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
    width: 4vw;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
    width: 4vw;
}

.numberText {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
    font-weight: bold;
}

.slideImg {
    width: 70vw;
    max-width: 100%;
}

.vedlesebe p {
    max-width: 400px;
}

/* ─── MOBILE (max 600px) ─────────────────────────────────── */
@media (max-width: 600px) {

    /* Nav buttons smaller and wrap nicely */
    .top {
        justify-content: center;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    button {
        font-size: medium;
        margin-right: 2vw;
        margin-top: 6px;
    }

    div {
    margin-bottom: 7vw;
    max-width: 100%;
    box-sizing: border-box;
    }

    /* Section headings */
    .middle h1 {
        font-size: 10vw;
    }

    /* Big name logo */
    #bigName {
        width: 80vw;
        margin-top: 5vw;
    }

    /* Poster + text block: stack vertically, centered */
    .vedlesebe {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 0 10px;
    }

    #poster {
        width: 80vw;
        margin-right: 0;
    }

    #mepic {
        width: 70%;
        margin: 10px auto;
    }

    .charm {
        width: 70vw;
    }

    /* Paragraph text: remove manual <br> effect by letting it wrap */
    .middle p, .vedlesebe p {
        text-align: center;
        padding: 0 10px;
        line-height: 1.6;
    }

    /* Video fills the screen */
    .middle video {
        width: 95vw;
        height: auto;
    }

    /* Slideshow */
    .slideImg {
        width: 90vw;
    }

    .prev, .next {
        width: 8vw;
    }

    /* Photo mosaic: 1 column on mobile */
    .column {
        flex: 100%;
        max-width: 100%;
        padding: 0 10px;
    }
}

/* ─── TABLET (601px – 900px) ─────────────────────────────── */
@media (min-width: 601px) and (max-width: 900px) {

    #poster {
        width: 45vw;
        margin-right: 5vw;
    }

    .charm {
        width: 35vw;
    }

    .middle video {
        width: 80vw;
        height: auto;
    }

    .slideImg {
        width: 80vw;
    }

    /* Mosaic: 2 columns on tablet */
    .column {
        flex: 48%;
        max-width: 48%;
    }
}
