html {
    background-color: #3a2b21;
    max-width: 100%;
    min-width: 600px;
    margin: 0 auto;
    padding: 0;
    justify-content: center;
    overflow: auto;
}

body { 
    background-color: #a9ae6c;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: black;
    margin: 0 auto;
    height: 100%;
    text-decoration: none;
    justify-self: center;
    overflow: auto;
}
/* Dölj scrollbar i WebKit-baserade webbläsare (Chrome, Edge, Safari) */
body::-webkit-scrollbar {
  display: none;
}

/* Dölj scrollbar i Firefox */
body {
  scrollbar-width: none; /* Firefox */
}

/* Dölj scrollbar i IE/Edge Legacy */
body {
  -ms-overflow-style: none;
}

main {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/*Textens utseende som utgångspunkt*/

@font-face {
    font-family: handskriven;
    src: url('fonts/JustMeAgainDownHere-Regular.woff2');
}

h1 {
    font-family: handskriven;
    font-size: 2.5em !important;
    margin: 0;
}

h2 {
    font-family: handskriven;
    font-size: 1.7em;
}

a {
    text-decoration: none;
    color: white;
}

a:hover {
    color: #4a382d;
}

p {
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 1em;
    padding: 0;
    margin: 0;
    color: black;
}

/* Hemsidans layout, logga */

header {
   z-index: 106;  
   justify-content: center;
   align-items: center;
   width: 70%;
   margin: 0 auto;
   display: flex;
   padding: 0%;
   position: relative;
z-index: 800;

}

.header {
    max-width: 70%;
    height: auto;
       padding-left: -30vw;
}

main  {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: start;
    width: 100%;
    margin: 0;
    padding: 0;
    height: auto;
    min-height: 60vh;
    flex: 1;
    gap: 1rem;
    overflow: visible;
}

/*Flygande kaffekopp */

.gif {
    grid-column: 2;
    justify-self: center;
    align-self: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  min-height: 30vh;
  max-height: 70vh;
  overflow: visible;
  pointer-events: none;
}

.anga {
    position: absolute;
    z-index: 1;  
    opacity: 0.4; 
    display: block;
    margin: auto 0;
    z-index: 104;
    height: 60vh;
    max-width: 70vw;
    justify-self: center;
    top: -30vh;
    pointer-events: none;
}

.kaffe {
    position: absolute;
    height: 55vh;
    width: auto;
    z-index: 2; 
    top: -10vh;
    margin-left: 5vw;
    display: flex;
    justify-content: center;
    z-index: 105;
    pointer-events: none;
}

/* Navigationsmenyn*/

nav {
    grid-column: 1;
    align-self: start;
    justify-self: start;
    position: relative;
    margin: 0;
    padding: 0;
    z-index: 600;
    font-family: handskriven;
    left: 15%;
    width: 40%;
}

.nav-menu {
        display: flex;
        flex-direction: column;
        text-decoration: none;
    width: 100%;
    list-style-type:circle;
    margin: auto;
    left: 0;
    position: relative;
    margin-bottom: auto;
}

.nav-item {
    text-decoration: none;
    margin: 0;
    padding-bottom: 5vh;
    font-size: 1.5em;
    position: relative;
    text-align: left;
    color: white;
}

.nav-item:hover {
    color: #6f7347;
}

/* Händelserutor på framsidan*/


.event-square h2{
    color: white;
    font-weight: 100;
}

.event-square2 h2{
    color: white;
        font-weight: 100;
}

.event-square p{
    color: white;
}

.event-square2 p{
    color: white;
}


.events {
  grid-column: 3;
  align-self: start;
  display: flex;
  flex-direction: column;
  margin-top: -10%;
  color: white;
  z-index: 600;
}

.event-square,
.event-square2 {
  background: rgba(255, 255, 255, 0);
  border-radius: 5px;
  padding: 0.2rem;
  margin: 1%;
  width: 65%;       /* så de inte blir för smala */
  text-align: center;
  font-family: handskriven;
  font-size: 0.8em;
  color: #6f7347;
  border: #6f7347 2px solid;
}


.valkommen {
    display: flex;
    justify-content: center;
    font-size: 1.5em;
    font-family: handskriven;
    text-align: center;
    position: sticky;
    margin: 0%;
    flex-direction: column;
    margin-top: -10%;
    z-index: 500;
}


.valkommen2 {
    font-family: handskriven;
    color: white;
}

.oppet {
    display: inline-block;
    justify-content: center;
    border: #ffe9d4 2px solid;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.75);
    flex-direction: column;
    font-size: 1.1rem;
    order: 1;
}

.oppet2 {
    display: flex;
    justify-content: center;
    border: #ffe9d4 2px solid;
    border-radius: 5px;
    background: white;
    flex-direction: column;
    font-size: 1.1rem;
}

.reviews {
    order: 3;
}

/* Knappar och spakar */

.stang {
    display: flex;
    max-width: 20%;
    top: 15%;
}

.stang-about {
    top: 5%;
}

.close {
    display: flex;
    max-width: 3%;
    left: 90%;
    margin: auto;
    position: absolute;
    z-index: 100;
}

.knapp {
    display: flex;
    justify-content: center;
    margin: 2%;
    padding: 2%;
    background-color: #a9ae6c;
    border: #a9ae6c solid 2px;
    border-radius: 5%;
    color: white;
}

.knapp:hover {
    background-color: #6f7347;
}

.idag {
    font-weight: bold;
    color: #4a382d;
}

.bild {
    display: flex;
    max-width: 70%;
    height: auto;
    max-height: 70%;
    justify-content: center;
    margin: auto 0;
}

/* Ruta för varje länk */

.overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    text-decoration: none;
    width: 62%;
    height: 90%;
    justify-self: center;
    background-color: white;
    border-radius: 5%;
    z-index: 999;
    top: 3%;
    pointer-events: none;
}

.overlay:target {
    opacity: 0.9;
    visibility: visible;
    pointer-events: auto;
}

.overlay-content a{
    color: #6f7347;
    font-size: 1.2em;
    font-family: handskriven, cursive, sans-serif !important;
}

.overlay-content a:hover{
    color: #4a382d;
    background-color: #6f7347;
}

.overlay-content {
    inset: 0;
    display: grid;
    transition: opacity 0.3s ease;
    z-index: 999;
    background-color: white;
    color: #58595b;
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    height: 98%;
    text-align: center;
    justify-items: center;
    text-decoration: none;
    border-radius: 5%;
    padding: 2%;
    overflow-y: scroll;
}

#overlay-kaffe:target, #overlay-mat:target, #overlay-events:target, #overlay-about:target, #overlay-contact:target {
    opacity: 1;
    visibility: visible;
}

.overlay-dagens {
    position: fixed;
    max-height: 90vh;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 999;
    top: 1%;
    border-radius: 15%;
    justify-items: center;
    justify-content: center;
    margin: 0;
    margin: auto;
    min-width: 65%;
    max-width: 80%;
    justify-self: center;
    overflow-x: scroll;
    overflow-y: scroll;
    top: 5%;
    background-color: white;
}

#overlay-dagens:target {
    opacity: 1;
    visibility: visible;
}

.overlay-dagens:not(:target) .overlay-content {
    display: none;
}

.dagens-bild {
    display: flex;
    max-width: 100%;
    justify-content: center;
    height: auto;
}

.evenemang-bild {
    display: flex;
    max-width: 70%;
    height: auto;
    justify-content: center;
    margin: auto;
}

.evenemang {
    border: #a9ae6c solid 2px;
    border-radius: 5%;
    padding: 7%;
    animation: blinkandeBorder 0.75s infinite;
    width: 40%;
}


.overlay-maps {
    position: fixed;
    inset: 0;
    display: flex;
    justify-items: center;
    justify-content: center;
    justify-self: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 999;
    background-color: white;
    color: #58595b;
    max-width: 90%;
    width: 100%;
    max-height: 90vh;
    text-align: center;
    text-decoration: none;
    border-radius: 5%;
    overflow-x: scroll;
    overflow-y: scroll;
    margin: 0;
    place-items: center;
}

.karta {
    width: 100%;
    border: 0;
    height: 70vh;
}

#overlay-map:target {
    opacity: 1;
    visibility: visible;
}

.overlay-maps:not(:target) .overlay-content {
    display: none;
}

.kaffemeny {
    display: flex;
    max-width: 60%;
    justify-self: center;
}

/*Footer */

footer {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    background-color: #7e5f4b;
    max-width: 100%;
    justify-content: center;
    margin: 0;
    margin-top: auto;
    padding: 0.5em 0;
    z-index: 107;
    padding-bottom: 0;
}

.footer {
    display: flex;
    list-style-type: none;
    width: 100%;
    flex-direction: row;
    font-size: 0.6em;
    justify-content: space-evenly;
    text-align: center;
    align-content: center;
    padding: 0; 
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.social {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.facebook {
  max-width: 50%;
  height: auto;
}

.instagram {
  max-width: 20%;
  height: auto;
}

.fdd {
    display: flex;
    flex-direction: column;
    max-width: 37%;
    align-content: flex-end;
    justify-content: center;
    text-align: center;
    font-size: small;
    margin: auto;
    padding: 0;
}

.fddlogo {
    width: 40%;
    opacity: 100%;
    padding: 0;
}
