
html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

/* WRAPPER OCH BAKGRUND */

#wrapper {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6, 16.7%);
    grid-template-rows: repeat(5, 20%);
}

/* MOBIL */

#bakgrund1 {
    display: block;
    grid-column: 1 / 7;
    grid-row: 1 / 6;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#bakgrund2 {
    display: none;
}

#bildkeeper {
    width: 100%;
    grid-row: 4;
    grid-column: 2 / 6;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1;
}

/* STOR SKÄRM */

@media (min-width: 800px) {
    #bakgrund1 {
        display: none;
    }

    #bakgrund2 {
        display: block;
        grid-column: 1 / 7;
        grid-row: 1 / 6;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }
}

/* LOGGOR */

.loggor {
    border-radius: 50%;
    background-color: rgb(62, 7, 8);
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-left: 4px;
    margin-right: 4px;
    font-family: 'math bold', 'Arial Narrow', Arial, sans-serif;
    font-size: 24px;
    width: 150px;
    height: 150px;
    object-fit: cover;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        filter 0.35s ease;

    box-shadow:
        0 0 10px rgba(224, 21, 38, 0.4),
        0 0 25px rgba(241, 242, 242, 0.3);
}

.loggor:hover {
    transform: scale(1.15) rotate(3deg);
    filter: brightness(1.2);

    box-shadow:
        0 0 10px #d20c0c,
        0 0 25px #d20c0c,
        0 0 50px #d20c0c,
        0 0 80px rgba(220, 221, 222, 0.7);
}

.loggor:active {
    transform: scale(0.95);
}

/* RUBRIKER */

.h12 {
    color: white;
    font-size: 30px;
    grid-row: 1;
    grid-column: 3 / 5;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact {
    color: white;
    font-size: 30px;
    grid-row: 1;
    grid-column: 3 / 5;
    position: relative;
    display: block;
    text-align: center;
}

/* BACK-KNAPP */

.back-button {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    pointer-events: auto;

    padding: 6px 12px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);

    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 5px;

    font-family: Georgia, serif;
    font-size: 14px;
    text-decoration: none;

    backdrop-filter: blur(4px);

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateX(-3px);
}

.back-button:active {
    transform: translateX(-1px);
}

/* PROJEKTSIDAN */

.projects-page {
    min-height: 100vh;
    overflow-x: hidden;
}

/* BAKGRUND */

.projects-page #wrapper {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.projects-page #bakgrund2 {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PROJEKTKNAPPAR */

.project-container {
    position: relative;
    z-index: 1;

    width: 80%;
    margin: auto;
    padding-top: 120px;
    padding-bottom: 60px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.projekt-box {
    height: 130px;
    padding: 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(62, 7, 8, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 15px;

    color: white;
    text-decoration: none;
    font-family: Georgia, serif;

    transition: 0.3s ease;
}

.projekt-box h2 {
    font-size: 25px;
}

.projekt-box:hover {
    transform: scale(1.05);
    background: rgba(180, 10, 20, 0.9);
    box-shadow: 0 0 25px #d20c0c;
}

/* MOBILANPASSNING */

@media (max-width: 799px) {
    .project-container {
        grid-template-columns: 1fr;
        width: 80%;
        padding-top: 100px;
    }

    .projekt-box {
        height: 100px;
    }
}
