/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Header */
#header {
    height: 3.75rem;
    background-color: var(--secondary-background-color);
    color: var(--primary-text-color);
    font-family: var(--primary-font-family);
    display: flex;
    align-items: center;
    padding: 0.5rem 2rem;
    width: 100%;
    position: relative; /* tidigare absolute, nu normal flow */
    z-index: 10;
}

#camera-logo {
    width: 50px;
    height: auto;
    margin-right: 10px;
    margin-left: 10px;
}

/* Text i header */
.word {
    font-weight: 700;
    font-size: 0.8rem;
    margin-right: 5px;
    position: relative;
    top: 6px;
}

.first {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Hamburger */
.hamburger-menu {
    display: block;
    color: rgb(245, 245, 245);
    margin-left: auto;
    margin-right: 20px;
    position: relative;
    top: 5px;
    cursor: pointer;
}

.hamburger-menu:hover {
    transform: scale(1.1);
    transition: 0.2s ease;
}

/* Nav */
nav {
    display: none;
}

nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 3.75rem;
    right: 0;
    background-color: var(--secondary-background-color);
    width: 100%;
    padding: 1rem;
    gap: 1rem;
    z-index: 1000;
}

nav a {
    color: var(--primary-text-color);
    text-decoration: none;
    padding-left: 2rem;
    transform-origin: left;
    font-family: var(--primary-font-family);
    font-weight: 700;
}

nav a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
    transition: 0.2s ease;
}



/* Tvinga body och html att låta innehållet styra layouten */
html, body {
    height: auto !important;
    min-height: 100% !important;
}

/* Säkerställ att hero-banner ligger direkt efter header */
.hero-banner {
    position: relative !important;
    top: 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background-color: var(--accent-color) !important;
    color: var(--secondary-text-color) !important;
    font-family: var(--primary-font-family) !important;
    font-size: larger !important;
    font-weight: 700 !important;
    padding: 0.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    z-index: 1 !important;
}


#title-pic {
  width: 100px;
  height: auto;
  display: block;
  margin: 2.5rem;
}

#main-title {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: xx-large;
    gap: 2rem;
    margin-top: 3rem;
    color: var(--secondary-text-color);
}

#main-content {
    background-color: var(--secondary-background-color);
    color: var(--primary-text-color);
    font-family: var(--primary-font-family);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    padding: 2rem;
}

#first-words {
    font-size: large;
    font-weight: 700;
}

#text-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#text-column p {
    margin-bottom: 1rem; /* eller t.ex. 16px, 1.5em */
}

#img1-container {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    align-items: center;
    gap: 15px;
}

#img1-container img{
    width: 100%;
    width: 200px;
    height: 250px;
}

#img2-container {
    display: flex;
    flex-direction: column;   
    gap: 15px;
    max-width: 400px;
    justify-content: center;
    margin: 0 auto;
}



/* Media queries */
@media (min-width: 451px) {
    .hero-banner {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hamburger-menu {
        display: none;
    }

    nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        position: relative;
        top: 8px;
        gap: 2rem;
        padding: 0.5rem 1rem;
        margin-left: auto;
        font-weight: 700;
    }

    nav a {
        color: rgb(245, 245, 245);
        text-decoration: none;
        font-size: 0.8rem;
        transition: 0.2s ease;
        transform-origin: center;
    }

    nav a:hover {
        color: var(--accent-color);
        transform: scale(1.2);
    }

    /*main*/

    .ak-container{
        display:flex;
        align-items: center;
        background-color: var(--secondary-background-color);
    }

    #main-content {
        max-width: 1100px;
        display: grid;
        grid-template-columns: 2fr 1fr;
        padding: 5rem;
        margin-inline: auto;
    }

    #text-column{
        display: block;
        text-align: start;
        grid-column: 1/2;
    }

    #img1-container {
        display: flex;
        flex-direction: column;
        gap: 5rem;
    }

    #img1-container img:nth-of-type(1) {
    width: auto;
    height: 500px;
    width: 300px;
    height: 300px;
   }

   #img1-container img:nth-of-type(2) {
    width: auto;
    height: 500px;
   }

    #img2-container {
        display: flex;
        flex-direction: column;
        margin-top: -35rem;
        gap: 4rem;
    }

    #img2-container img{
        width: 400px;
        height: 250px;
    }
}
/* Extra stora skärmar */
@media (min-width: 1921px) {
    nav a {
        font-size: 1.5rem;
    }

    .word {
        font-size: 1.5rem;
    }

    .first {
        font-size: 2rem;
    }
}