* {
    margin:0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    margin: 0;
    padding: 0; 
    background-color: #141b5739;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body h3 {
    font-family: 'Cormorant Garamond', serif;
    size: 200px;
}

main {
    flex: 1;
}

.mobil-bakgrunn {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(to bottom, rgba(8, 10, 35, 1) 0%, rgba(133, 133, 133, 0) 70%), url("bilder/kiran-sindre_01.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -1;
}

header {
    background-color: #741e5f;
    width: 100%;
    position: fixed;
    top:0;
    left:0;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding: 20px 40px;
    align-items: center;
}

header h1 {
    font-family: 'MonteCarlo', cursive;
    font-size: 2.5em;
    color: #fff;
    margin: 0;
    text-align: center;
}
header nav {
    padding-top: 15px;
} 

header nav ul{
    display: flex;
    list-style: none;
    color: #fff;
    margin: 0;
    padding: 0;
    width: auto;
    gap: 20px;
    align-items: center;
}

header nav ul li {
    width: auto;
}

@media (max-width: 768px) {
    
    header, .hero {
        padding: 30px 60px 20px 10px !important; 
        height: auto !important; 
        min-height: auto !important;
    }

    header h1, .hero h1 {
        font-size: 2rem !important; 
        line-height: 1.2 !important; 
        margin-bottom: 10px !important;
    }
    
}
/* Video-popup modal */
/* Skjul som standard */
.hidden {
  display: none !important;
}

/* Modal Overlay */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.video-modal.show {
  opacity: 1;
}

.video-modal-innhold {
  position: relative;
  width: 90%;
  max-width: 800px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.video-container {
  position: relative;
  padding-bottom: 177.77%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

#info-modal {
    touch-action: pan-y;
}
.fane-innhold {
    display: none;
}
.fane-innhold.aktiv {
    display: block;
}

.fane-innhold a {
    color: rgb(188, 47, 153);
    text-decoration: none;
}
.fane-innhold a:hover {
    text-decoration: underline;
    color: #fff;
}

.bilde-galleri {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.bilde-galleri .bilde-kort {
    flex: 1 1 calc(33.333% - 15px);
    min-width: 200px;
    box-sizing: border-box;
}
.bilde-galleri .bilde-kort img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
@media (max-width: 768px) {
    .bilde-galleri .bilde-kort {
        flex: 1 1 100%;
    }
    .bilde-galleri .bilde-kort img {
        height: 220px;
    }
}

nav ul li a { 
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
}

nav ul li a:hover {
    color: rgba(47, 29, 148, 1);
    text-decoration: underline;
}

.meny-checkbox {
    display: none;
}

.hamburger-knapp {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 20;
}

.hamburger-knapp .strek {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.meny-linker {
    position: fixed;
    top: 20px;
    right: -320px;
    width: 280px;
    height: auto;
    background-color: #141b57f2;
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    list-style: none;
    margin: 0;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 15px 0 0 15px;
}

.meny-linker a {
    color: white;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 500;
    transition: color 0.2s;
}

.meny-linker a:hover {
    color: #741e5f;
}

.meny-checkbox:checked ~ .meny-linker {
    right: 20px;
}

.meny-checkbox:checked ~ .hamburger-knapp .strek:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.meny-checkbox:checked ~ .hamburger-knapp .strek:nth-child(2) {
    opacity: 0; 
}
.meny-checkbox:checked ~ .hamburger-knapp .strek:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


.karusell-seksjon {
    width: 100%;
    padding: 150px 20px 20px 20px;
    display: flex;
    justify-content: center;
}

.karusell-container {
    display: flex;
    gap: 25px;                  
    overflow-x: auto;           
    scroll-snap-type: x mandatory; 
    padding: 15px;
    padding-bottom: 5px !important;
    margin-bottom: 0px !important;
    width: 100%;
    max-width: 1200px;          
    -webkit-overflow-scrolling: touch;
}
.karusell-container::-webkit-scrollbar {
    display: none;    
}
.info-boks {
    flex: 0 0 350px;
    min-height: 250px;            
    scroll-snap-align: center;  
    background-color: #141b57cc; 
    color: #fff;                
    padding: 30px;
    border-radius: 15px;        
    box-shadow: 0 10px 25px #0000001a;
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.info-boks p {
    color: #fff;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.5em;
}
.info-boks a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto;
    align-self: flex-end;
}

.info-boks a:hover {
    text-decoration: underline;
    transform: scale(1.2);
}

.info-boks h2 {
    color: #fff;             
    font-size: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px 0px 15px 0px;
}

.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #19216ecc;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
.modal-vindu {
    background-color: #3f0c38cc;
    border: 1px solid #000,0.1;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 20px;
    box-shadow: 0 20px 50px #000, 0.5;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95);}
    to {opacity: 1; transform: scale(1);}
}
.lukk-modal-knapp {
    position: absolute;
    display: none;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 1010;
    opacity: 0.7;
    transition: opacity 0.2;
}
.lukk-modal-knapp :hover {opacity: 1;}

.modal-tabs {
    display: flex;
    gap: 5px;
    padding: 20px 50px 10px 20px;
    border-bottom: 1px solid #49163f;
    overflow-x: auto;
    background-color: #741e5f;
    flex-shrink: 0;
}
.tab-knapp {
    background: none;
    border: none;
    color: #fff;
    padding: 10px 15px;
    font-size: 15px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}
.tab-knapp p {
    color:#fff;
}
.tab-knapp :hover, .tab-knapp.aktiv {
    color: #fff
}
.tab-knapp.aktiv {
    border-bottom-color: #fff;
    font-weight: bold;
}
.modal-innhold-container {
    padding: 30px 25px;
    overflow-y: auto;
    color: #fff;
    place-content: 1;
}

.fane-innhold {
    display: none;
}
.fane-innhold-rsvp {
    overflow-y: auto;
    padding-bottom: 20px;
}
.fane-innhold.aktiv {
    display: block;
}
.modal-innhold-container h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2em;
    font-weight: bold;
    padding:5px;
}
.modal-innhold-container p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5em;
    padding: 5px;
}

.karusell-indikatorer {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    margin-bottom: 25px;
    width: 100%;
    clear: both;
    box-sizing: border-box;
}

.prikk {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.prikk.aktiv {
    background-color: #ffffff;
    transform: scale(1.2); /* Gjør den aktive prikken ørlite grann større */
}

.svar-spørsmål-seksjon {
    width: 100%;
    padding: 15px 20px 20px 20px;
    display: flex;
    justify-content: center;
    clear: both !important;
    position: relative !important;
    box-sizing: border-box;
}

.svar-spørsmål-boks {
    width: 100%;
    max-width: 100vh;
    padding: 40px 30px;
    box-sizing: border-box;
    background-color: #141b57cc;
    color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 25px #0000001a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.svar-spørsmål-boks h2 {
    color: #fff;             
    font-size: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px 0px 15px 0px;
}
.svar-spørsmål-boks p {
    color: #fff;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.5em;
}
button.mer-info-knapp, a.mer-info-knapp {
    background-color: #741e5f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin-top: 15px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}
.mer-info-knapp:hover {
    background-color: #49163f;
    transform: translateY(-3px);
}
.boks-ikon {
    font-size: 0.8em;
    margin-left: 15px;
    display: inline-flex;
    transition: transform 0.3s ease;     
}
/* --Design på skjema*/
#rsvp-skjema {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    margin-top: 10px;
}  
.skjema-seksjon {
    margin-bottom: 25px;
}
.skjema-instruksjon {
    font-size: 0.095rem;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 500;
}
.skjema-gruppe input[type="text"],
.skjema-gruppe input[type="email"],
.skjema-gruppe input[type="tel"],
.skjema-gruppe select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #741e5f;
    background-color: #19216ecc;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.skjema-gruppe input::placeholder {
    color: #fff;
}
.skjema-gruppe input :focus,
.skjema-gruppe select :focus {
    outline: none;
    border-color: #fff;
    background-color: #fff;
    box-shadow: 0 0 0 3px #fff;
}
.skjema-skille {
    border: 0;
    height: 1px;
    background-color: #fff;
    margin: 25px 0;
}
.valg-kort-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /*Se hvordan dette blir på mobil */
    gap: 12px;
    margin-bottom: 15px;
}
.valg-kort input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.valg-kort {
    cursor: pointer;
    display: block;
}
.valg-kort .kort-innhold {
    background-color: #19216ecc;
    border: 1px solid #49163f;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: all 0.2 ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.valg-kort .kort-ikon {
    font-size: 1.5rem;
}
.valg-kort .kort-tekst {
    font-size: 1.2rem;
    font-weight: bold;
    font-style: bold; 
    color: #fff;
}
.valg-kort:hover .kort-innhold {
    background-color: #49163f;
    border-color: #19216ecc;
}
.valg-kort input[type="radio"]:checked + .kort-innhold,
.valg-kort input[type="checkbox"]:checked + .kort-innhold {
    background-color: #fff;
    border-color: #fff;
    box-shadow: 0 4px 12px #000;
}
.valg-kort input[type="radio"]:checked + .kort-innhold .kort-tekst,
.valg-kort input[type="checkbox"]:checked + .kort-innhold .kort-tekst {
    color: #19216ecc;
    font-weight: 600;
}

.valg-kort-container.antall-valg {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;   
    margin-top: 20px !important;       
    margin-bottom: 20px !important;
}
.valg-kort-container.antall-valg .valg-kort {
    flex: 1 !important;
    min-width: 0 !important;
}
.valg-kort-container.antall-valg .kort-innhold {
    padding: 20px 10px !important;
    width: 100% !important;
}

@media (min-width: 480px) {
    .valg-kort-container:not(.antall-valg) {
        grid-template-columns: repeat(4,1fr);
    }
}

footer {    
    background-color: #741e5f;
    color: #fff;
    text-align: left;
    padding: 10px 40px;
    width: 100%;
    box-sizing: border-box;
}

footer a {
    color: #fff;
    text-decoration: none;  
    font-size: 0.8em;
}
