/* GLOBAL */
#p5Container {
    background-color: transparent;
    background-image: none; 
    background-repeat: no-repeat;
    background-size:cover;
    background-position: left;
    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
}

body {
    background-color: #7e9b60;
    background-image: url(groenBaggrund.png); 
    background-size:contain;
    cursor: none;
    color: rgb(71, 95, 57);
    margin: 0;
}

.start-layout,
.home-layout,
.projects-layout,
.signup-layout,
.about-layout,
.craft-layout,
.hviskeleg-layout {
    position: relative;
    z-index: 1;
}


h2,
p {
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: rgb(67, 86, 66);
}

h1 {
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 100px;
    color: #372f4a;
}

h2 {
    font-size: 40px;
    font-style: italic;
}

p {
    font-size: 25px;
}

/* START PAGE */
#TITEL {
    text-align: center;
}

#TITEL h1 {
    font-style: italic;
    margin: 0;
}

.btn-container a {
    text-decoration: none;
}

.start-layout,
.home-layout,
.projects-layout,
.signup-layout, 
.hviskeleg-layout {
    min-height: 100vh;
    padding: 48px 24px;
    box-sizing: border-box;
}

.start-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 48px;
}

.btn-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: min(100%, 900px);
}

.button:hover {
    background-color: #4CAF50; /* Green */
  color: white;
}

.start-btn,
.back-btn,
#tilmeldBtn,
#projectsBtn,
#aboutBtn, 
#startBtn {
    background-color: rgb(207, 207, 205);
    border: 1px solid black;
    border-radius: 2px;
    font-size: 20px;
    padding: 16px 28px;
    min-width: 180px;
    color: rgb(40, 30, 45);
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
#currentBtn {
    background-color: rgb(233, 187, 222);
    border: 4px dotted rgb(57, 47, 47);
    border-radius: 2px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 30px;
    font-style: italic;
    padding: 20px 28px;
    min-width: 300px;
    color: rgb(57, 47, 47);
    transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease, border-color 140ms ease;

}

.start-btn:hover,
#tilmeldBtn:hover,
#projectsBtn:hover,
#aboutBtn:hover, 
#startBtn:hover,
#currentBtn:hover {
    background-color: rgb(210, 210, 210);
    border-color: rgb(16, 23, 91);
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35);
    color: rgb(16, 23, 91)
}

#tilmeldBtn {
    position: static;
    transform: translate(-100px, 5px) rotate(-4deg);
}

#projectsBtn {
    position: static;
    transform: translate(14px, -12px) rotate(3deg);
}

#aboutBtn {
    position: static;
    transform: translate(100px, 20px) rotate(2deg);
}

#currentBtn {
    position: static;
    transform: translate(0px, 20px) rotate(-2deg);
}

.signup-back a {
    text-decoration: none;
}

.signup-back {
    margin-top: 16px;
    align-self: flex-start;
}

#startBtn {
    transform: rotate(-2deg);
}
/* HVISKELEG PAGE */
.hviskelegBody {
    background-color: rgb(142, 181, 106);
    background-image: url(hviskelegBack2.png);
    background-position: top left;
    background-size: cover;
    background-repeat: no-repeat;
}

.hviskeleg-layout {
    width: min(100%, 960px);
    margin: 0 auto;
    gap: 24px;
}

.hviskeleg-header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(6px, 1.5vw, 20px);
    width: 100%;
}

#covenPraesenterer {
    margin: 0;
    flex-shrink: 0;
    font-size: clamp(20px, 3.5vw, 30px);
    color: #000000;
    text-align: right;
    font-style: italic;
    white-space: nowrap;
}

.hviskeleg-arrow {
    display: block;
    flex-shrink: 1;
    width: clamp(48px, 10vw, 180px);
    height: auto;
}

.hviskeleg-logo {
    display: block;
    flex-shrink: 1;
    width: clamp(120px, 26vw, 420px);
    height: auto;
}

.hviskeleg-covenlogo {
    display: block;
    flex-shrink: 1;
    width: clamp(90px, 20vw, 300px);
    height: auto;
}

.hviskeleg-content {
    width: 100%;
}

.hviskeleg-layout p {
    color: #2d283a;
    font-style: normal;
    text-align: left;
}

#hviskelegTekst1 {
    margin: 0;
    font-size: clamp(10px, 2.5vw, 15px);
    line-height: 1.5;
    text-align:center;
    color: #31252a;
}

#zineTitel {
    margin: 0;
    color: #ffe2fa;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-style: italic;
    font-size: clamp(20px, 4vw, 20px);
}

.zine-section {
    display: flex;
    flex-direction: column;
    align-items:flex-start;
    gap: 8px;
    width: 100%;
    margin: 16px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.zine-wrapper {
    --zine-cols: 4;
    --zine-rows: 2;
    --zine-cell: clamp(64px, 18vw, 220px);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    width: var(--zine-cell);
    height: var(--zine-cell);
    cursor: pointer;
    transition: width 650ms ease, height 650ms ease;
}

.zine-wrapper.is-unfolded {
    width: calc(var(--zine-cell) * var(--zine-cols));
    height: calc(var(--zine-cell) * var(--zine-rows));
}

.zine {
    display: grid;
    grid-template-columns: repeat(var(--zine-cols), var(--zine-cell));
    grid-template-rows: repeat(var(--zine-rows), var(--zine-cell));
    gap: 0;
    flex-shrink: 0;
}

.zine-panel {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-width: 0.5px;
    border-style: solid;
    border-color: #372f4a;
    cursor: pointer;
    background: none;
    position: relative;
    perspective: 1000px;
}

.zine-panel-inner {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 450ms ease;
}

.zine-panel.is-flipped .zine-panel-inner {
  transform: rotateY(180deg);
}

.zine-panel-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

.zine-panel-back {
  transform: rotateY(180deg);
}

.zine-panel-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* PROJECT PAGE */
.projectsBody {
    background-color: rgb(75, 104, 67);
}
.image-row {
  display: flex;
  align-items: flex-start; /* keeps images top-aligned even though one has extra text below it */
  gap: 20px; /* space between the two images, adjust to taste */
}

#rightNowImage:hover, 
#rightNowTekst:hover {
    background-color: rgb(210, 210, 210);
    border-color: rgb(16, 23, 91);
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35);
    color: rgb(16, 23, 91)
}
.projects-layout {
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 32px;
}

.projects-layout p {
    color: #9b59a5;
    font-style: italic;
    font-size: 16px;
}

.projects-layout h2, p {
    text-align: left;
}

.hviskeleg-layout.projects-layout p {
    color: #7b6aa3;
    font-style: normal;
}

.hviskeleg-layout.projects-layout #hviskelegTekst1,
.hviskeleg-layout.projects-layout #zineTitel {
    text-align: right;
}

.container {
    width: min(100%, 900px);
}

.container video {
    display: block;
    width: 100%;
    height: auto;
}

/* ITS A CRAFT PAGE */
.craftBody {
    background-color: rgb(68, 0, 255);
    background-image: url(omCovenBack.png);
}

.craft-layout {
    min-height: 100vh;
    padding: 48px 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

#craftPage {
    width: min(100%, 780px);
    padding: 32px;
    box-sizing: border-box;
}

#craftPage h2 {
    margin-top: 0;
}

#craftPage p {
    line-height: 1.5;
}

/* ABOUT PAGE */
.aboutBody {
    background-color: rgb(68, 0, 255);
    background-image: url(omCovenBack.png);
}

.about-layout {
    min-height: 100vh;
    padding: 48px 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}


#aboutCoven {
    width: min(100%, 680px);
    padding: 32px;
    box-sizing: border-box;
}

#aboutCoven h2 {
    margin-top: 0;
}

#aboutCoven p {
    line-height: 1.5;
}

/* SIGNUP PAGE */
.signup-layout {
    display: flex;
    align-items: left;
    justify-content: left;
}

.signup-section {
    display: flex;
    flex-direction: column;
    align-items: left;
    width: min(100%, 900px);
}

.signup-section h2,
.signup-section p {
    text-align: left;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 15px;
    color: #f9c8ff;
}

.form-embed {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 240px;
    overflow: hidden;
}

.form-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 700px) {
    .start-layout,
    .home-layout,
    .projects-layout,
    .signup-layout,
    .about-layout,
    .hviskeleg-layout {
        padding: 24px 16px;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .about-layout {
        flex-direction: column;
        gap: 24px;
    }

    #aboutCoven {
        padding: 20px;
    }

    h2 {
        font-size: 30px;
    }

    p {
        font-size: 20px;
    }

    .start-btn,
    #tilmeldBtn,
    #projectsBtn,
    #aboutBtn,
    #startBtn,
    #currentBtn {
        width: 100%;
        min-width: 0;
        transform: none;
    }

    .btn-container {
        width: 100%;
        flex-direction: column;
    }

    .form-embed {
        height: 72vh;
        min-height: 480px;
    }

    .hviskeleg-header {
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: clamp(4px, 2vw, 12px);
    }

    .hviskeleg-arrow {
        transform: rotate(90deg);
    }

    .zine-section {
        align-items: center;
    }

    .hviskeleg-intro,
    #hviskelegTekst1,
    #zineTitel {
        text-align: center;
    }

    .hviskeleg-layout #startBtn {
        transform: none;
    }

    .zine-wrapper {
        --zine-cell: clamp(56px, 21vw, 160px);
    }
}