/* To help QR to jump to howto */
html {
  scroll-behavior: smooth;
}

/* Color Palette */

/* ---------------------------------------------------------------- BODY ------------------------------------------------------------------*/
body {
    margin: 0;
    font-family: 'Helvetica Neue', sans-serif;
    background-color: #fef5e7; /* cream */
    color: #704e3c; /* dark earth */
    line-height: 1.6;
}

/* ---------------------------------------------------------------- HEADER ------------------------------------------------------------------*/
header {
    position: relative;
    text-align: center;
    color: #ffffff;
    padding: 100px 20px;
    background-image: url('skimages/oilybeach.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(201, 124, 93, 0.5); /* dark earth overlay */
    z-index: 0;
}

header > * {
    position: relative;
    z-index: 1;
}

header img {
    max-width: 450px;
    margin-bottom: 20px;
}

header p {
    font-size: 1.3rem;
    margin-top: 10px;
    color: #fff8f5;
}

/* ---------------------------------------------------------------- LANGUAGE SWITCH ------------------------------------------------------------------*/
.language-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.language-switch a {
    background: #c97c5d; /* earth clay */
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/* ---------------------------------------------------------------- SECTIONS ------------------------------------------------------------------*/
section {
    padding: 60px 20px;
    max-width: 900px;
    margin: auto;
    text-align: center;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #c97c5d; /* earth clay */
}

ul {
    text-align: left;
    display: inline-block;
    margin-top: 20px;
    padding-left: 20px;
}

/* -------------------------------------------------------------- HOW-TO SECTION -------------------------------------------------------------- */
.howto {
    text-align: left;        /* align all content to the left */
    max-width: 900px;        /* optional width */
    margin: auto;            /* center section horizontally */
    padding: 60px 20px;      /* spacing inside section */
}

.howto h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #c97c5d;          /* earth clay */
}

.howto ul {
    display: block;          /* full width for bullets */
    padding-left: 20px;      /* bullet indentation */
    margin-top: 20px;        /* space above list */
    line-height: 1.6;        /* spacing between list items */
}

.howto p {
    margin-top: 15px;        /* space between paragraphs */
    line-height: 1.6;
}

.howto .disclaimer {
    font-style: italic;      /* makes disclaimer cursive */
}


/* ---------------------------------------------------------------- IMAGES ------------------------------------------------------------------*/
img {
    max-width: 100%;
    margin: 20px 0;
    border-radius: 12px;
}

/* ---------------------------------------------------------------- SIGNUP FORM ------------------------------------------------------------------*/
.signup input[type="email"] {
    padding: 12px;
    border: none;
    border-radius: 8px;
    width: 60%;
    max-width: 300px;
    margin-bottom: 15px;
}

.signup button {
    background: #f7a072; /* sunset orange */
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.signup button:hover {
    background: #c97c5d; /* earth clay */
}

/* ---------------------------------------------------------------- FOOTER ------------------------------------------------------------------*/
footer {
    background: #fcd5ce; /* peach */
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
    color: #704e3c; /* dark earth */
}

/* ---------------------------------------------------------------- LINKS ------------------------------------------------------------------*/
a {
    color: #573a2b; /* coffee */
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
    color: #a87e68; /* dusty brown */
}

/* ---------------------------------------------------------------- COOKIE BANNER ------------------------------------------------------------------*/

/* Initial hidden state for the cookie banner */
    .cookie-banner {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 0;
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        background: #fcd5ce; /* peach */
        padding: 12px 0;
        z-index: 1000;
        text-align: center;
        transition: bottom 1.5s ease;
    }
    
    /* Show the cookie banner */
    .cookie-banner.visible {
        bottom: 0;
    }
    
    /* Styling for the paragraph inside the cookie banner */
    .cookie-banner p {
        margin: 0;
        padding: 2px;
        line-height: 1;
        color: #704e3c; /* dark earth */
    }
    
    /* Styling for the accept cookies button */
    #accept-cookies {
        margin-top: 10px;
        padding: 6px 16px;
        color: #704e3c; /* dark earth */
        background-color: transparent;
        border: 1px solid #704e3c; /* dark earth */;
        border-radius: 2px;
        cursor: pointer;
        transition: color 0.3s, border-color 0.3s;
        font-size: 16px;
    }
    
    #accept-cookies:hover {
        color: white;
        border-color: white;
        background-color: rgba(100, 100, 100, 0.4);
    }
    
    /* Ensuring full height of the initial section */
    #home {
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        text-align: center;
    }

/* ------------------------------------------------------------- LOGO CENTERED ON MOBILE ---------------------------------------------------------------*/    

@media (max-width: 480px) {
  header img {
    width: 100%;       /* tar hela bredden */
    max-width: none;   /* tar bort begränsning */
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
  }

  header {
    padding: 80px 20px; /* lite inre marginal så loggan inte går utanför texten */
  }
}