@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    background: #2c2b2b;

}

header{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 100px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#playImg  {
    width: 20px;
}


.parallax{
    position:relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.parallax img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

#text{
    position: absolute;
    font-size: 7em;
    color: #ffff;
    text-shadow: 2px 2px 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.content{
    position: relative;
    background: #2c2b2b;
    width: 100%;
}


.content h2 {
    font-size: 3em;
    color: #fff;
    margin-bottom: 50px;
    text-align: center;
}



.popup {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
}

.popup button {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    background-color:red;
    cursor: pointer;
    border-radius: 5px;
}

#closePopupBtn {
    font-size: 1.1rem;
    color: white;
}

.popup button:hover {
    background-color: darkred;
}

.hidden {
    visibility: hidden;
    opacity: 0;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}

.chapter.visible {
    opacity: 1;
}

.chapter {  
        height: 100vh; /* Gør hver sektion lige så høj som skærmen */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        transition: background 1s ease-in-out;
        position: relative;
    }

#chapter1 { 
    background: url('/img/chapter1.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
}

#chapter2 { background: url('/img/chapter2.jpg') center/cover no-repeat; }
#chapter3 { background: url('/img/chapter3.jpg') center/cover no-repeat; }
#chapter4 { background: url('/img/chapter4.jpg') center/cover no-repeat; }
#chapter5 { background: url('/img/chapter5.jpg') center/cover no-repeat; }

.chapter p{
    color: white;
    font-size: 1.5rem;
    opacity: 0;  /* Skjult som standard */
    transform: translateY(50px); /* Flyt ned for en flot fade-in */
    transition: opacity 2s ease-in, transform 2s ease-in;
    color: #ddd;
    font-weight: 300;
    width: 80%;
    line-height: 3;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 50px;
}

.chapter h2 {
    font-size: 5rem;
}


.fade-in {
    opacity: 1 !important;
    transform: translateY(0);
}



#regnestykke {
    text-align: center;
}

#svarInput {
    padding: 10px;
    font-size: 16px;
    width: 475px;
    margin-right: 10px;
}

#tjekSvar {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: red;
    color: white;
}

#feedback {
    margin-top: 1.5rem;
    font-weight: bold;
}

/* Style for popup */
.popupAnswer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Content inside the popup */
.popupAswer-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 80%;
    max-width: 600px;
}

/* Hide popup by default */
.hiddenAnswer {
    display: none;
}

#closePopupAswer {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    background-color:red;
    cursor: pointer;
    border-radius: 5px;
    color: white;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.popupAnswer p {
    font-size: 1.2rem;
    color: red;
    margin-top: 1rem;
}

.popupAnswer h2 {
    font-size: 2rem;
    color: red;
    font-weight: bold;
    margin-top: 1rem;
}

.answer {
    height: 400px;
}

#regnestykke h2 {
    margin-top: 5rem;
    font-size: 4rem;
    margin-bottom: 6rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#regnestykke h2 p {
    color: red;
}