html, body {
    margin: 0 auto;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: rgb(209, 209, 209);
    color: #333;
    user-select: none;
    justify-content: center;
}

@font-face {
    font-family: handskrivet;
    src: url(font/Brigetta\ Rumble.woff2);
}

h1 {
    display: inline-block;
    font-family: handskrivet;
    font-size: xx-large;
    margin: 0;
    padding: 0;
}

h2 {
    font-family: handskrivet;
    font-size: x-large;
    color: #ff1010;
    margin: 0;
    padding: 0;
}

.welcome {
    position: fixed;
    color: #ff1010;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 400;
    top: 35vh;
    justify-self: center;
    transform: rotate(-10deg);
    font-family: handskrivet;
    padding: 3%;
    border-radius: 5%;
}

.welcome h2{
    font-size: 3em;
    letter-spacing: 10px;
}

p {
    margin-bottom: 0;
    font-size:xx-small;
}

header {
    display: flex;
    flex-direction: column;
    justify-self: center;
    text-align: center;
    padding-top: 2%;
    z-index: 200;
    position: fixed;
    background-color: rgba(159, 159, 159, 0.7);
    width: 100%;
}

hr.header-line {
    width: 100%;
    padding: 0;
    margin: auto 0;
    margin-top: 2%;
    border: 0.7px  solid #ff1010;
    z-index: 120;
}

ul {
    display: flex;
    list-style-type: none;
    text-decoration: none;
    flex-direction: row;
    justify-content: center;
    gap: 15%;
    margin: 0;
    padding-top: 1%;
    padding-left: 0;
}

li {
    text-decoration: none;
    padding-bottom: 1%;
    padding-left: 2%;
    padding-right: 2%;
}

li:hover, li:focus, li:active {
    background-color: #535353;
}


a {
    color: #ffffff;
    text-decoration: none;
    font-size: medium;
}

a:hover, a:focus, a:active {
    color: #ff1010;
    text-decoration: none;
    background-color: #535353;
}

a:hover img,
a:focus img,
a:active img {
  background-color: transparent !important;
}

a:has(img):hover,
a:has(img):focus,
a:has(img):active {
  background-color: transparent !important;
}

main {
    display: flex;
    text-align: center;
    overflow-y: auto;
    justify-content: center;
    margin-left: 15%;
    margin-right: 15%;
    z-index: 150;
    flex: 1;
} 

.galleri-del {
    display: flex;
    flex-direction: column;
    padding-top: 20%;
    padding-bottom: 15%;
    margin: 0 auto;
    z-index: 175;
}

.galleri {
    width: 100%;
    border-bottom: rgba(246, 246, 246, 0.7) 16px solid;
}

.galleri-sida {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 5%;
    padding: 5%;
    margin: 0 auto;
    padding-top: 14%;
    padding-bottom: 34%;
    overflow: hidden;
}

.galleri-bild {
    width: 100%;
    border-radius: 5%;
    transition: transform 0.3s ease;
    display: flex;
    align-self: center;
}

.galleri-bild:hover {
    transform: scale(1.01);
    cursor: pointer;
}


.storbild {
  position: fixed;
  inset: 0;
  background: #ff10105f;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 300;
}

.storbild-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5%;
    transition: transform 0.3s ease;
}

.storbild-img:hover {
    transform: scale(1.02);
    cursor: zoom-out;
    background-color: transparent;
}

.storbild:target {
    opacity: 1;
    pointer-events: auto;
}

.storbild .close {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.storbild a:hover,
.storbild a:focus,
.storbild a:active {
  background: transparent !important;
}

.about-main {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-left: 10%;
    margin-right: 10%;
    overflow: hidden;
    z-index: 175;
    max-height: 55%
}

.about {
    display: inline-block;
    flex-direction: column;
    margin-top: 10%;
    text-align: right;
    max-height: 60%;
    height: auto;
    justify-self: flex-end;
    background-color: rgb(83, 83, 83, 0.3);
    border-radius: 15%;
    padding: 3%;
    padding-bottom: 2%;
    overflow: hidden;
}

.about p{
    font-size: 1em;
    color: white;
}

.about h2{
    font-size: 2em;
    color: #ff1010;
    margin-bottom: 0;
    padding-bottom: 0;
    display: inline-flex;
    padding: 2%;
    border-radius: 15%;
}

.mig {
    max-height: 40%;
    height: 22%;
    border-radius: 15%;
    margin: 0 auto;
    display: flex;
    margin-top: 15%;
    padding-right: 3%;
    background-color: transparent !important;
    overflow: hidden;
}

.info {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 500;
    width: 60%;
    height: auto;
    background-color: white;
    top: 20%;
    justify-self: center;
    justify-content: center;
    justify-items: center;
    text-align: center;
    align-items: center;
    border: #ff1010 1px solid;
    padding-bottom: 5%;
} 

.info p{
    font-size: 1.2em;
    width: 80%;
}

.info a{
    color: black;
    font-size: 1.2em;
    margin-top: 5%;
    padding-left: 0;
    justify-self: center;
    text-align: center;
}

.info h2{
   font-size: 2em;
}

.utv {
    transform: rotate(-10deg);
    margin-bottom: 5%;
    margin-top: 5%;
} 


/* Formulärbas */
.kontakt-sida {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 15%;
  padding-bottom: 29%;
  margin: 0 auto;
  text-align: center;
}

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: rgba(159, 159, 159, 0.15);
  padding: 5%;
  border-radius: 10px;
  width: 80%;
  max-width: 90%;
}

.kontakt-form label {
  font-weight: bold;
  text-align: left;
  font-size: small;
  color: #333;
}

.kontakt-form input[type="text"],
.kontakt-form input[type="tel"],
.kontakt-form input[type="file"],
.kontakt-form textarea {
  padding: 8px;
  border: 1px solid #aaa;
  border-radius: 5px;
  font-size: small;
  width: 100%;
}

.kontakt-form button {
  background-color: #ff1010;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: bold;
  letter-spacing: 1px;
}

.kontakt-form button:hover {
  background-color: #a30808;
}

/* Radio-val */
.typ-val {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  border: none;
  font-size: small;
}

.radio-grupp {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 5%;
  flex-wrap: wrap;
}

.radio-grupp input[type="radio"] {
  display: none; /* göm knappen om du vill ersätta med snygg etikett */
}

.radio-grupp label {
  background-color: rgba(255,255,255,0.5);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: small;
}

.radio-grupp input[type="radio"]:checked + label {
  background-color: #ff1010;
  color: #fff;
}

hr {
width: 90%;
border: 0.7px  solid #ff1010;
}

hr.footer-line {
    width: 100%;
    padding: 0;
    margin: auto 0;
    border: 0.7px  solid #ff1010;
    z-index: 120;
}

/* Dölj beställningsdelen som standard */
.bestallnings-del {
  display: none;
}

/* Visa rätt del beroende på valt radio */
input[value="meddelande"]:checked ~ .meddelande-del {
  display: block;
}
input[value="meddelande"]:checked ~ .bestallnings-del {
  display: none;
}

input[value="bestallning"]:checked ~ .meddelande-del {
  display: none;
}
input[value="bestallning"]:checked ~ .bestallnings-del {
  display: block;
}

/* Grundlayout för valgrupper */
.storlek-grupp, .antal-grupp {
  text-align: center;
  margin-top: 20px;
}

.storlek-grupp input[type="radio"],
.antal-grupp input[type="radio"] {
  display: none;
}

/* Knapparna */
.storlek-grupp label,
.antal-grupp label {
  background-color: rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 5px;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.storlek-grupp input[type="radio"]:checked + label,
.antal-grupp input[type="radio"]:checked + label {
  background-color: #ff1010;
  color: #fff;
}

/* Dölj alla prisbilder och kostnadstexter */
.prisbild,
.kostnad-a4,
.kostnad-a3,
.kostnad-a2 {
  display: none;
}

/* Visa rätt prisbild när storlek är vald */
#a4:checked ~ .pris-a4 { display: block; }
#a3:checked ~ .pris-a3 { display: block; }
#a2:checked ~ .pris-a2 { display: block; }

.prisbild {
  width: 80%;
  max-width: 300px;
  margin: 10px auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Visa rätt extrakostnad beroende på storlek */
#a4:checked ~ .antal-grupp .kostnad-a4 { display: inline; }
#a3:checked ~ .antal-grupp .kostnad-a3 { display: inline; }
#a2:checked ~ .antal-grupp .kostnad-a2 { display: inline; }

.prisinfo {
  margin-top: 10px;
  font-size: small;
  background-color: rgba(255,255,255,0.5);
  padding: 5px;
  border-radius: 6px;
  display: inline-block;
}
/* Grundlayout */
.storlek-grupp, .antal-grupp {
  text-align: center;
  margin-top: 20px;
}

/* Dölj radio inputs men gör etiketter klickbara */
.storlek-grupp input[type="radio"],
.antal-grupp input[type="radio"] {
  display: none;
}

.storlek-grupp label,
.antal-grupp label {
  background-color: rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 5px;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.storlek-grupp input[type="radio"]:checked + label,
.antal-grupp input[type="radio"]:checked + label {
  background-color: #ff1010;
  color: #fff;
}

/* Prisrutor (grundpris + extrakostnad) */
.prisruta {
  display: none;
  background-color: rgba(255,255,255,0.8);
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.prisruta p {
  margin: 5px 0;
  font-size: small;
  color: #333;
  font-weight: bold;
}

/* Visa rätt prisruta beroende på vald storlek */
#a4:checked ~ .pris-a4 { display: block; }
#a3:checked ~ .pris-a3 { display: block; }
#a2:checked ~ .pris-a2 { display: block; }

/* Stil för antal personer */
.antal-grupp h4 {
  margin-top: 15px;
  font-size: small;
}

.antal-grupp label {
  width: 35px;
}


/* Stil för betalningsinfo */
.betal-info {
  font-size: smaller;
  color: #333;
  background-color: rgba(255, 255, 255, );
  padding: 5px;
  border-radius: 5px;
}

footer {
    text-align: center;
    padding-top: 0;
    background-color: rgba(159, 159, 159, 1);
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 200;
}

footer p {
        font-size: 0.9em;
}

.social {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10%;
    margin: 0 auto;
    height: 25%;
}

.logo {
    width: 15%;
    margin: 0 auto;
    margin-top: 0;
    padding-top: 0;
}