/* imbedded font */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wdth,wght@0,75..100,100..900;1,75..100,100..900&display=swap');

/* var */

:root {
    --primairDonker: rgba(31, 29, 29, 1);
    --secundairLicht: rgba(245, 245, 220, 1);
    --tertiairWit: rgba(255, 255, 255, 0.5);
    --quartairDonker: rgba(31, 29, 29, 0.5);
}

/* html */

html, body {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow: auto; /* zorg dat je popup gescrold kan worden indien nodig */
}

/* algemeen */

*, li {
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif; 
}

h1, h2, h3, p, form {
    color: var(--secundairLicht);
}

span {
    line-height: 1.8rem;
}

p {
    line-height: 1.8rem;
}

b {
    font-weight: bold;
}

h2 {
    margin: 1rem 0rem 0rem 0rem;
    font-size: 1.3rem;
    font-weight: normal;
}

/* hide */
#hide {
    visibility: hidden;
}

/* body */

body {
    background-color: var(--primairDonker);
}

/* header */

header img:first-of-type {
    width: 15rem;
    margin: 1rem 0rem 0rem 1rem;
}

/* main */

main h1 {
    margin: 3rem 0rem 0rem 1rem;
    font-size: 2rem;
    font-weight: bold;
}

main p, form, li {
    margin: 0rem 0rem 0rem 1rem;
    font-size: 1.3rem;
    font-weight: normal;
}







/* taal.html */

#taal main a:first-of-type{
    margin: 2rem 1rem 0rem 1rem;
}

#taal main a{
    margin: 1rem 1rem 0rem 1rem;
    display: flex;
    align-items: center;        
    justify-content: left; 
    width: auto;
    background-color: var(--primairDonker);
    color: var(--secundairLicht);                
    border: 0.15rem solid var(--secundairLicht);
    border-radius: 2rem;
    outline: none;
    font-size: 1.3rem;
    cursor: pointer;
    text-decoration: none;
}

#taal main a img {
    height: 5rem;
    margin: 1rem 1rem 1rem 1rem;
}







/* menu.html */

#menu main a:first-of-type{
    margin: 2rem 1rem 0rem 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: left;
    width: auto;
    padding: 1rem 1rem 1rem 1rem;
    background-image: url('../img/ervaring.png'); /* jouw afbeelding hier */
    background-size: cover;
    background-position: center;
    color: var(--secundairLicht);
    border: 0.15rem solid var(--secundairLicht);
    border-radius: 2rem;
    outline: none;
    font-size: 1.3rem;
    cursor: pointer;
    text-decoration: none;
    flex-direction: column;
}



#menu main a:first-of-type span:last-of-type {
    color: var(--primairDonker);
    background-color: var(--secundairLicht);
    padding: 0.5rem 1rem 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: bold;
    margin: 1rem 0rem 0rem 0rem;
}

#menu main a {
    margin: 1rem 1rem 0rem 1rem;
    display: flex;
    align-items: center;        
    justify-content: left; 
    width: auto;
    background-color: var(--primairDonker);
    color: var(--secundairLicht);                
    border: 0.15rem solid var(--secundairLicht);
    border-radius: 2rem;
    outline: none;
    font-size: 1.3rem;
    cursor: pointer;
    text-decoration: none;
}

#menu main a img {
    height: 5rem;
    margin: 1rem 1rem 1rem 1rem;
}

#menu main article:nth-of-type(2) a:nth-of-type(2) span {
    margin-right: 1remd;
}




/* overzicht.html */

#overzicht main a:first-of-type{
    margin: 2rem 1rem 0rem 1rem;
}

#overzicht main a{
    margin: 1rem 1rem 0rem 1rem;
    display: flex;
    align-items: center;        
    justify-content: left; 
    width: auto;
    background-color: var(--primairDonker);
    color: var(--secundairLicht);                
    border: 0.15rem solid var(--secundairLicht);
    border-radius: 2rem;
    outline: none;
    font-size: 1.3rem;
    cursor: pointer;
    text-decoration: none;
}

#overzicht main a img {
    height: 5rem;
    margin: 1rem 1rem 1rem 1rem;
}

#overzicht section {
    margin-bottom: 8rem;
}





/* instellingen.html */

#instellingen article:nth-of-type(2) {
    border-top: 0.15rem solid var(--secundairLicht);
    margin: 1rem;
}

#instellingen h2:first-of-type {
    border-top: hidden;
    padding-top: 0rem;
}

#instellingen h2 {
    border-top: 0.15rem solid var(--secundairLicht);
    padding-top: 1rem;
}

#instellingen form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0rem 0rem 0rem;
}

#instellingen input {
    width: 2.6rem;
    height: 2.6rem;
}

#instellingen label {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#instellingen section {
    margin-bottom: 8rem;
}

#instellingen input[type="radio"] {
    accent-color: var(--secundairLicht);
    background-color: var(--secundairLicht);
}

input[type="radio"]:checked::before {
    accent-color: var(--secundairLicht);
}

#instellingen label img {
    width: 2rem;
    margin-left: 1rem;
}

#instellingen span {
    margin-left: 1rem;
}




/* uitlegContext.html */

#uitlegContext main section article img, #uitlegToestemming main section article img, #uitlegLetOp main section article img {
    border: 0.15rem solid var(--secundairLicht);
    border-radius: 2rem;
    display: block;
    width: calc(100% - 2rem);
    max-width: 30rem;
    height: auto;
    max-height: 100vh;
    object-fit: contain;
    margin: 1rem 1rem 0rem 1rem;
    box-sizing: border-box;
}

#uitlegContext main p, #uitlegToestemming main p, #uitlegLetOp main p {
    margin-top: 1rem;
}



/* uitlegToestemming.html */

#uitlegToestemming main section {
    margin-bottom: 8rem;
}

#uitlegToestemming main li {
    margin: 0.5rem 0rem 0rem 2.6rem;
    color: var(--secundairLicht);
    font-weight: bold;
}

#uitlegToestemming main ul {
    margin-top: 1.3rem;
}





/* portret info */

#portretInfo main h1 {
    margin-top: 1rem;
}

#portretInfo main li {
    margin: 0.2rem 0rem 0rem 2.6rem;
    color: var(--secundairLicht);
}

#portretInfo main h2 {
    margin: 1.5rem 1rem 0rem 1rem;
    font-weight: bold;
}

#portretInfo main ul {
    margin-top: 0rem;
}

#portretInfo main a{
    margin: 2rem 1rem 0rem 1rem;
    display: flex;
    align-items: center;        
    justify-content: left; 
    width: auto;
    background-color: var(--primairDonker);
    color: var(--secundairLicht);                
    border: 0.15rem solid var(--secundairLicht);
    border-radius: 2rem;
    outline: none;
    font-size: 1.3rem;
    cursor: pointer;
    text-decoration: none;
}

#portretInfo main a img {
    height: 5rem;
    margin: 1rem 1rem 1rem 1rem;
}

#portretInfo main section {
    margin-bottom: 8rem;
}

#portretInfo main p {
    margin: 0rem 1rem 0rem 1rem;
}

#portretInfo main article:nth-of-type(2) p:first-of-type {
    margin-top: 2rem;
}


#portretInfo header {
    position: relative;
    width: 100vw;
    overflow: hidden;
}

#portretInfo header img:nth-of-type(1) {
    position: absolute;
    top: 0rem;
    left: 0rem; 
}

#portretInfo header img:nth-of-type(2) {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
}

#portretInfo header img:nth-of-type(3) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}






/* navigatie footer */

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0rem 1rem 1rem 1rem;
    background-color: var(--tertiairWit);
    backdrop-filter: blur(0.25rem);
    padding: 1.2rem 1rem;
    z-index: 1000;
    border-radius: 2rem;
    box-sizing: border-box;
}

#footer nav ol {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin: 0;
}

#footer nav li {
    display: flex;
    align-items: center;
    justify-content: center;
}

#footer nav li:first-child {
    margin-left: 1rem;
}

#footer nav li:last-child {
    margin-right: 1rem;
}

#footer nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--tertiairWit);
    font-weight: bold;
}

#footer nav li:nth-child(2) a {
    background-color: var(--secundairLicht);
    padding: 0.7rem 1rem;
    width: 10rem;
    border-radius: 2rem;
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--primairDonker);
}

#footer nav img {
    height: 2.2rem;
}




a-scene {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.menu-bar {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 500px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem;
    border-radius: 2rem;
    z-index: 9999; /* Zorgt dat dit er bovenop ligt */
}

.menu-bar button {
    background-color: var(--secundairLicht);
    border: none;
    border-radius: 1.5rem;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    color: var(--primairDonker);
    font-weight: bold;
    cursor: pointer;
}

.menu-bar button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}



#scanTest header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
}

#scanTest header article {
    margin: 0rem;
}

#scanTest header img {
    width: 15rem;
}



/* Popup stijl voor <main> als venster */
#scanTest main {
    position: fixed;
    top: 47%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 30rem;
    background-color: var(--primairDonker); /* bijna zwart met transparantie */
    border: 0.15rem solid var(--secundairLicht);
    border-radius: 2rem;
    padding: 1rem 1rem;
    z-index: 2000; /* bovenop camera en scene */
    height: 70vh;
}

/* Sluitknop in popup */
#scanTest main button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--secundairLicht);
    cursor: pointer;
}

/* Afbeelding in popup */
#scanTest main img {
    width: 100%;
    border-radius: 1rem;
    margin-top: 1rem;
    border: 0.15rem solid var(--secundairLicht);
    
}

#scanTest main {
    display: none; /* standaard verborgen */
}

#scanTest main {
    /* margin: 0.5rem 0rem 0rem 2.6rem; */
    color: var(--secundairLicht);
    font-weight: bold;  
}

#scanTest main ul {
    margin: 1.3rem 0rem 0rem 0rem;
}





/* pop up scan */

.marker-popup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 6.4rem;
    left: 50%;
    transform: translateX(-50%);
    /* Achtergrond en border styling verwijderd */
    padding: 1.2rem 1rem;
    max-width: 90vw;
    width: calc(100% - 2rem);
    z-index: 999;
    text-align: center;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

.marker-popup .popup-content {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center; /* Zorgt ervoor dat knoppen naast elkaar komen */
    gap: 1rem; /* 1rem tussen de knoppen */
}

/* Algemene styling voor knoppen */
.marker-popup button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 2rem;
    color: var(--secundairLicht); /* Lichte tekstkleur */
    background-color: var(--primairDonker); /* Donkere achtergrond */
    border: 0.15rem solid var(--secundairLicht); /* Lichte rand */
    border-radius: 2rem;
    width: 2rem;
}

/* Info button - gecentreerd met lichtgrijze rand en donkere achtergrond */
.marker-popup .info-button {
    text-decoration: none;
    cursor: pointer;
    color: var(--secundairLicht); /* Lichte tekstkleur */
    background-color: var(--primairDonker); /* Donkere achtergrond */
    border: 0.15rem solid var(--secundairLicht); /* Lichte rand */
    padding: 0.7rem 1rem;
    border-radius: 2rem;
    font-weight: bold;
    font-size: 1.3rem;
    font-family: "Roboto", sans-serif;
    display: inline-block; /* Zorgt ervoor dat de button correct wordt gecentreerd */
    height: auto; /* Zorgt ervoor dat de hoogte dynamisch is */
}