
/* Variabler som kan bruges gennem CSS*/
:root {
    /* Farver */
    --primary-color--: #C7D4E3;
    --secondary-color--: #DA2328;
    --text-color--: black;
    --btn-color--:  #52805A;

    /* Typografier */
    --header-font--: "Bebas Neue";
    --text-font--: "Inter", sans-serif;

    /* Tekst størrelser */
    --font-size-small:13px;
    --font-size-base:16px;
    --font-size-medium:18px;
    --font-size-large:20px;
    --font-size-xl:24px;
    --font-size-xxl:28px;
}

/* Resetter styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* --------------------------------------------------------------------------------------------------------
Styling af hele siden og baggrunden
-------------------------------------------------------------------------------------------------------- */
body {
    font-family: var(--header-font--);
    background: var(--primary-color--);
    background-image: url("../../img/brain-background.svg");
    /* Sørger for at baggrundsbilledet kun ses 1 gang */
    background-repeat: no-repeat; 
    background-position: center;
    color: var(--text-color--);
    
    /* Til fade-out animation */
    opacity: 1;
    transition: opacity 1s ease;
}

/* Styling til header */
header {
    background: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header p {
    font-family: var(--header-font--);
    font-size: var(--font-size-small);
    letter-spacing: 0.105rem;
    margin-left: 0.23rem;
    color: grey;
}

/* Styling til bjælken under header */
nav {
    background-color: var(--secondary-color--);
    height: 5vh;
}

/* Styling til overskrift*/
h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    text-align: center;
}

/* Overordnet styling til begge knapper */
.content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
}


/* Styling kun til "hjælp mig i gang" knap */
#helpBtn, #nextBtn {
    font-family: var(--text-font--);
    font-size: var(--font-size-base);
    width: 50%;
    background-color: var(--btn-color--);
    border-radius: 15px;
    padding: 20px;
    /* Fjerner outline fra knappen */
    outline: none;
    border: none;
    color: white;
}

/* Styling kun til "Jeg har prøvet før" knappen */
#triedBeforeBtn {
    font-family: var(--text-font--);
    font-size: var(--font-size-base);
    padding-top: 40px;
    color: var(--text-color--);
}

#nextBtn{
    margin-top: 2rem;
    margin-bottom: 4rem;
}
/* --------------------------------------------------------------------------------------------------------
Styling af hele onboarding/instruktionssiderne
-------------------------------------------------------------------------------------------------------- */
.onboarding {
    display: none;
    flex-direction: column;
    align-items: center;
    height: 60vh;
}

#instructionImg {
    width: 8rem;
    height: 8rem;
    min-height: 8rem;
}

#instructionImg.wide-image {
    width: 16rem;
    height: 8rem;
    border: 1px solid black;
    border-radius: 15px;
}

#instructionText {
    width: 70%;
    text-align: center;
    font-size: var(--font-size-xxl);
    font-family: var(--text-font--);
    font-weight: normal;
    margin-top: 3rem;
    min-height: 6rem;
}

/*------progress dots------*/
.progressDots {
    display: flex;
    gap: 0.8rem;
    margin-top: 3rem;
}

.dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background-color: white;
}

.dot.active {
    background-color: red;
}

.imageWrapper {
    position: relative;
    width: 100%;
    height: 8rem;
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}


/* --------------------------------------------------------------------------------------------------------
Animation mellem start-side og puslespilssiden
-------------------------------------------------------------------------------------------------------- */

/* Body fade-out animation */
body.fade-out {
    opacity: 0;
}

@keyframes slideUp {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Tilføj klasser vi kan toggles fra JS */
.slide-up {
    animation: slideUp 0.8s ease forwards;
}

.fade-in {
    animation: fadeIn 2.5s ease forwards;
}

/* Optional overlay-billede for slide 3 */
#instructionOverlay {
    position: absolute;
    width: 8rem;
    height: 8rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

#cornerEffect {
    position: absolute;
    width: 8rem;
    height: 8rem;
    pointer-events: none;
}

/* Generel corner styling */
.corner {
    position: absolute;
    width: 25px;
    height: 25px;
    opacity: 0;
}

/* Top left */
.top-left {
    top: -16px;
    left: -16px;
    border-top: 5px solid black;
    border-left: 5px solid black;
}

/* Top right */
.top-right {
    top: -16px;
    right: -16px;
    border-top: 5px solid black;
    border-right: 5px solid black;
}

/* Bottom left */
.bottom-left {
    bottom: -16px;
    left: -16px;
    border-bottom: 5px solid black;
    border-left: 5px solid black;
}

/* Bottom right */
.bottom-right {
    bottom: -16px;
    right: -16px;
    border-bottom: 5px solid black;
    border-right: 5px solid black;
}

/* Animation */
#cornerEffect.fade-corners .corner {
    animation: fadeIn 1.4s ease forwards;
}