html, body {
  margin: 0;
  padding: 0;
}

html {
    background-color: #282b03;
    width: 100%;
    min-height: 100vh;
}

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;
    text-decoration: none;
    overflow-x: hidden;
    overflow-y: auto;
}

/*Textens utseende som utgångspunkt*/

@font-face {
    font-family: handskriven;
    src: url('fonts/JustMeAgainDownHere-Regular.woff2');

}

h1 {
    font-family: handskriven;
    font-size: 2.5em;
}

h2 {
    font-family: handskriven;
    color: #7e5f4b;
    font-size: 2.3em;
}

h3 {
    color: black;
}

a {
    text-decoration: none;
    color: white;
    border-radius: 5%;
        font-size: 1.7em;
}

a:hover {
    color: #7f5f4b;
}

li {
        font-size: 1.7em;
}

p {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 1.2em;
    padding: 0;
    margin: 0;
    color: black;
}

/* Hemsidans layout, logga */

header {
    z-index: 400;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    display: flex;
    padding: 0%
}

.header {
    max-width: 80%;
    height: auto;
    filter: brightness(70%);
}

main {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    margin: 0;
    padding: 0;
    min-height: auto;
    gap: 0;
    width: 100%;
}

/*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: 50vh;
    max-width: 70vw;
    justify-self: center;
    top: -10vh;
    margin-left: -9vw;
    pointer-events: none;
}

.kaffe {
    position: absolute;
    height: 45vh;
    width: auto;
    z-index: 2; 
    top: 9vh;
    margin-left: 5vw;
    display: flex;
    justify-content: center;
    z-index: 105;
    pointer-events: none;
}

/* Navigationsmenyn*/

nav {
    grid-column: 1;
    z-index: 600;
    font-family: handskriven;
    max-width: 50%;
    font-size: 0.6em;
}

.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;
    position: relative;
    text-align: left;
    color: white;
}

/* Händelserutor på framsidan*/

.events {
    grid-column: 3;
    width: 100%;
    position: relative;
}

.events p{
    margin: 0;
    padding: 0;
}

.events h2{
    margin: 0;
    padding: 0;
    font-size: 1.3em;
}

.event-square,
.event-square2 {
  background: rgba(255, 255, 255, 0);
  border-radius: 5px;
  margin: 1%;
  width: 95%;
  text-align: center;
  font-family: handskriven;
  font-size: 0.6em;
  color: white;
  border: #6f7347 2px solid;
}

.event-square p,
.event-square2 p{
    color: white;
}

.event-square {
    margin-bottom: 2vh;
}


.event-square a {
    color: #58595b;
}

.event-square2 a {
    color: #58595b;
}

.valkommen {
    display: flex;
    justify-content: center;
    font-size: 1.5em;
    text-align: center;
    position: relative;
    flex-direction: column;
}

.valkommen2 {
    font-family: handskriven;
    color: white;
    order: 2;
    top: 5%;
}

.oppet {
    display: inline-block;
    justify-content: center;
    border: #ffe9d4 2px solid;
    border-radius: 5px;
    background: white;
    flex-direction: column;
    font-size: 1.1rem;
    order: 1;
    padding: 0;
}

.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: 5%;
    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;
    font-size: 1em;
    font-family: handskriven;
}

.knapp a{
    color: white;
}

.knapp:focus, .knapp:active {
    background-color: #6f7347;
    border: #6f7347 solid 2px;
    color: white;
}

.idag {
    font-weight: bold;
    color: #4a382d;
}

.bild {
    display: flex;
    max-width: 100%;
    height: auto;
    justify-content: center;
    margin-top: 10%;
    margin-bottom: 10%;
    margin: auto;
}

/* 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: 95%;
    height: 50%;
    justify-self: center;
    top: 25%;
    background-color: white;
    border-radius: 5%;
    z-index: 999;
}

.overlay:target {
    opacity: 0.9;
    visibility: visible;
}

.overlay-content {
    inset: 0;
    display: grid;
    transition: opacity 0.3s ease;
    z-index: 999;
    min-width: 100px;
    background-color: white;
    color: #58595b;
    width: 95%;
    max-height: 90vh;
    text-align: center;
    justify-items: center;
    text-decoration: none;
    border-radius: 5%;
    overflow-x: hidden;
    overflow-y: scroll;
    padding: 5%;
    color: #7f5f4b;
}


#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;
    max-width: 100%;
    justify-self: center;
    overflow-x: hidden;
    overflow-y: scroll;
    top: 5%;
}

.dagens-bild {
    display: flex;
    max-width: 60%;
    height: auto;
    margin: 5%;
    margin-bottom: 10%;
}

#overlay-dagens:target {
    opacity: 1;
    visibility: visible;
}

.overlay-dagens:not(:target) .overlay-content {
    display: none;
}

.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: hidden;
    overflow-y: scroll;
    margin: 0;
    place-items: center;
    top: 10%;
}

.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;
}

.ostra {
    display: flex;
    max-width: 50%;
    justify-self: center;
    height: auto;
}

.evenemang {
    border: #a9ae6c solid 2px;
    border-radius: 5%;
    padding: 7%;
}

.evenemang-bild {
    display: flex;
    max-width: 60%;
    height: auto;
    justify-content: center;
    margin: auto;
}

.info {
    display: flex;
    margin: 5%;
    flex-direction: column;
    justify-content: center;
}

/*Footer*/

footer {
    display: flex;
    flex-direction: column;
    background-color: #7e5f4b;
    width: 100%;
    justify-content: center;
    justify-self: center;
    justify-items: center;
    text-align: center;
    margin: 0;
    padding: 0;
    z-index: 70;
    margin-top: 0;
}

footer a{
    font-size: 0.6em;
}

.footer {
    display: flex;
    list-style-type: none;
    width: 100%;
    flex-direction: row;
    font-size: 0.8em;
    font-weight: 100;
    justify-content: center;
    text-align: center;
    align-content: center;
    padding: 0;
    margin: 0;
    gap: 5%;
}

.social {
    display: flex;
    flex-direction: row;
    height: 40%;
    margin: 0;
    background: none;
    gap: 5%;
}

.facebook,
.instagram {
    display: flex;
    max-height: 40px;
    background: none;
}

.fdd {
    display: flex;
    flex-direction: column;
    max-width: 37%;
    justify-items: center;
    text-align: center;
    font-size: small;
    align-items: center;
    margin: 0 auto;
}

.fddlogo {
    width: 80%;
    opacity: 100%;
}
