@font-face {
    font-family: 'Minecraft'; /* A custom name for your font */
    src: url('/Fonts/Minecraft.ttf') format('truetype'); /* Path to the TTF file and its format */
    font-weight: normal; /* Optional: Define the weight of this specific font file */
    font-style: normal; /* Optional: Define the style of this specific font file */
}

@font-face {
    font-family: 'Minecraftia'; /* A custom name for your font */
    src: url('/Fonts/Minecraftia-Regular.ttf') format('truetype'); /* Path to the TTF file and its format */
    font-weight: normal; /* Optional: Define the weight of this specific font file */
    font-style: normal; /* Optional: Define the style of this specific font file */
}

@font-face {
    font-family: 'Alagard'; /* A custom name for your font */
    src: url('/Fonts/alagard.ttf') format('truetype'); /* Path to the TTF file and its format */
    font-weight: normal; /* Optional: Define the weight of this specific font file */
    font-style: normal; /* Optional: Define the style of this specific font file */
}



html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;

    text-align: center;
    /*overflow: hidden;*/

    /* Ensure body doesn't create a weird stacking context that hides the fixed div */
    -webkit-overflow-scrolling: touch;
}

.background-fixed {
    background: url('Images/pixel_game.png') no-repeat center center; /* Legger til pixelart bakgrunn */
    background-size: cover; /* Sikrer at bildet dekker hele skjermen */
    background-position: center;
    position: fixed; /* Stays in place */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: -webkit-fill-available;
    /* z-index: -1; REMOVED because it might hide the element on iOS when used with transforms */
    /* Instead of z-index, we will rely on DOM order if possible, 
       but here we want it fixed behind everything. 
       Let's try a very low z-index but ensure it's not creating a new context that's hidden. */
    z-index: -10; 
    pointer-events: none; /* Ensure it doesn't block interactions */
    transform: translateZ(0); /* Force GPU acceleration and fix z-index issues on iOS */
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

header {
    background: rgba(51, 51, 51, 0.8); /* Gjør header semi-transparent */
    color: #fff;
    padding: 20px;
    text-align: center;
    font-family: Minecraftia, sans-serif;
    width: 60%;
    border-radius: 10px;
    margin: 50px 50px 50px 50px;
  }


  nav ul {
    list-style: none;
    padding: 0;
    line-height: 3;
  }

  nav ul li {
    display: inline;
    margin: 0 15px;
  }

  nav a {
    color: #fff;
    padding: 12px 10px;
    text-decoration: none;
  }

  nav a:hover {
      color: forestgreen;
  }

  section {
    padding: 20px;
    margin: 50px 50px 50px 50px;
    border: 1px solid #ccc;
    background-color: rgba(255, 255, 255, 0.9); /* Gjør seksjonene semi-transparente */
    border-radius: 10px;
    text-align: center;
    width: 60%;
    font-size: larger;
}

.parent-container {
    display: flex;
    justify-content: center;
    align-items: center; /* Optional: for vertical centering */
    min-height: 100vh;  /*Example for full viewport height centering */
    flex-wrap: wrap;
    /* overflow-y: auto; REMOVED to fix iOS background issue */
    position: relative;
    z-index: 1;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center; /* Optional: for vertical centering */
    flex-wrap: wrap;
}

footer {
    text-align: center;
    padding: 10px 0;
    background: rgba(51, 51, 51, 0.8); /* Gjør footer semi-transparent */
    color: #fff;
    width: 60%;
    border-radius: 10px;
    margin: 50px 50px 5px 50px;
}

.button {
    /* Display & Sizing */
    display: inline-block; /* Allows padding/margin and keeps it inline with text flow */
    padding: 10px 20px;    /* Adds space inside the button */
    text-align: center;    /* Centers the text */
    cursor: pointer;       /* Changes cursor to a hand icon on hover */

    /* Appearance */
    /* background-color: #1950c0; /* Button background color (blue in this example) */
    background-color: cornflowerblue;
    color: white;              /* Text color */
    text-decoration: none;     /* Removes the default hyperlink underline */
    border: none;              /* Removes default border */
    border-radius: 5px;        /* Rounds the corners */
    font-weight: bold;         /* Makes the text bold */

    /* Optional: Hover and Active states for interactivity */
}

.button:hover {
    background-color: #166dca; /* Darker blue on hover */
}

.button:active {
    background-color: #004494; /* Even darker blue when clicked */
}

.button:visited {
    color: white; /* Keeps visited links the same color as unvisited ones */
}

.logo {
    max-width: 70%;
    min-width: 150px;
    max-height: 70px;
    margin: 10px;
}




.accordion {
    background-color: lightsteelblue;
    color: #444;
    cursor: pointer;
    padding: 18px;
    margin: 5px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 17px;
    transition: 0.4s;
    border-radius: 5px;
}

.active, .accordion:hover {
    background-color: #ccc;
}

.accordion:after {
    content: '\002B';
    color: #777;
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

.active:after {
    content: "\2212";
}

.panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    font-size: 17px;
    text-align: left;
}




@media screen and (max-width: 768px) {
    .background-fixed {
        background-image: url('Images/pixel_game_mobile.png'); /* Optional: use a smaller image for mobile */
        /*background-size: 300vw auto; /* Adjust as needed for mobile */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        height: -webkit-fill-available;
        z-index: -10;
        pointer-events: none;
        margin: 0;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        /*overflow-x: hidden;*/
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    }

    section{
        width: 100%;
        margin: 100px 1px 1px 1px;
    }

    header{
        width: 100%;
        margin: 100px 1px 1px 1px;
    }

    nav ul {
        line-height: 3;
    }

    /*
    .parent-container {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: -1;
    }
    */
}