
/* ==================================
   1. GRUNDINSTÄLLNINGAR
================================== */

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100vh;

    background-color: #191919;
    color: white;

    font-family: "Big Shoulders Display", sans-serif;
}


/* ==================================
   2. WRAPPER FÖR HELA SKÄRMEN
================================== */

#wrapper {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    display: grid;

    /* Tre kolumner på dator */
    grid-template-columns: 1fr 3.1fr 4fr;

    /* Tre rader för knapparna */
    grid-template-rows: repeat(3, minmax(0, 1fr));

    column-gap: 3vw;
    row-gap: 4vh;

    padding: 8vh 5vw;

    background-color: #191919;
}


/* ==================================
   3. ALLA MENYKNAPPAR
================================== */

.menu {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: flex-start;

    min-width: 0;
    min-height: 0;
}

.menu-item {
    display: block;

    width: 100%;
    text-decoration: none;
}

.button {
    width: 100%;
    height: clamp(200px, 17vh, 160px);

    background-color: #d9d9d9;

    border-radius: 16px;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    transition: transform 0.2s ease,
                background-color 0.2s ease;
}


/* ==================================
   4. BILDER INUTI KNAPPARNA
================================== */

.button img {
    max-width: 70%;
    max-height: 70%;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* ==================================
   5. HOVER EFFEKT
================================== */

.menu-item:hover .button {
    transform: scale(1.04);

    background-color: #eeeeee;
}


/* ==================================
   6. TEXT UNDER KNAPPARNA
================================== */

.menu p {
    margin: 7px 0 0 0;

    font-size: clamp(20px, 1.3vw, 22px);

    text-align: center;

    color: white;
}


/* ==================================
   7. KNAPPARNAS GRID POSITIONER
================================== */

/* Första raden */

.project {
    grid-column: 1;
    grid-row: 1;
}

.experience {
    grid-column: 2;
    grid-row: 1;
}


/* Andra raden */

.about {
    grid-column: 1;
    grid-row: 2;
}

.contact {
    grid-column: 2;
    grid-row: 2;
}


/* Tredje raden */

.tryck {
    grid-column: 1;
    grid-row: 3;
}

.che-item {
    grid-column: 2;
    grid-row: 3;
}


/* ==================================
   8. CHE VIDEO
================================== */

.che-video {
    width: 100%;
    height: clamp(200px, 17vh, 160px);

    padding: 0;
    overflow: hidden;

    background-color: #d9d9d9;
}

.che-video video {
    display: block;

    width: 100%;
    height: 100%;

    /* Fyller rutan utan att sträcka videon */
    object-fit: cover;

    /* Visar mitten av videon */
    object-position: center;
}


/* ==================================
   9. HÖGER SIDA
================================== */

.right-side {
    grid-column: 3;
    grid-row: 1 / 4;

    position: relative;

    width: 100%;
    height: 100%;
    min-height: 0;
}


/* ==================================
   10. NAMNET
================================== */

.right-side h1 {
    position: center;

    top: 0;
    left: 0;

    margin: 0;

    font-family: "BhuTuka Expanded One", sans-serif;

    font-size: clamp(80px, 2vw, 36px);
    font-weight: 400;

    white-space: nowrap;
}


/* ==================================
   11. TEDDY BEAR
================================== */

.bear {
    position: absolute;

    width: 110%;
    max-height: 90%;

    right: 0;
    bottom: 0;

    object-fit: contain;
}


/* ==================================
   12. MOBILANPASSNING
================================== */

@media (max-width: 700px) {

    /* Wrapper för mobil */


    #wrapper {
        width: 100%;
        min-height: 100dvh;

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        grid-template-rows:
        repeat(3, auto)
        minmax(220px, 1fr);

        column-gap: 24px;
        row-gap: 24px;

        padding: 30px 20px;
    }


    /* Knappar på mobil */

    .menu-item {
        display: block;
        width: 85%;
        text-align: center;
    }


    /* Ikoner på mobil */

    .button {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 25px;
    }


    /* Text på mobil */

    .menu p {
        width: 100%;
        margin: 7px 0 0;
        text-align: center;
        font-size: 25px;
    }


    /* Första raden */

    .project {
        grid-column: 1;
        grid-row: 1;
    }

    .experience {
        grid-column: 2;
        grid-row: 1;
    }


    /* Andra raden */

    .about {
        grid-column: 1;
        grid-row: 2;
    }

    .contact {
        grid-column: 2;
        grid-row: 2;
    }


    /* Tredje raden */

    .tryck {
        grid-column: 1;
        grid-row: 3;
    }

    .che-item {
    display: none;
    }


    /* CHE blir fyrkantig på mobil */

    .che-video {
        width: 85%;
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 25px;
        overflow: hidden;
    }

    .che-video video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* Nallen och namnet under knapparna */

    .right-side {
        grid-column: 1 / 3;
        grid-row: 4;

        position: relative;

        width: 100%;
        min-height: 220px;
    }


    /* Nallens storlek på mobil */

    .bear {
        position: absolute;

        width: 150%;
        max-height: none;

        right: -120px;
        bottom: 7px;

        object-fit: contain;
    }


    /* Namnet under nallen */

    .right-side h1 {
        position: absolute;

        top: auto;
        bottom: 0;
        left: 0;

        font-size: clamp(26px, 3.5vw, 23px);

        white-space: nowrap;
    }

}
