
body {
    overflow-y:scroll;
}

.initial-content {
    --nav-padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: var(--nav-padding);
    background-color: black;
}

main {
    flex-grow: 1;
    width: 100%;
    background-image: url("/images/wallpaper.jfif");
    background-size: cover;
    background-position: center;

    display: grid;
    place-items: center;
}

.main-text {

    width: max-content;
    max-width: 95vw;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.4);
    word-wrap: break-word;
}

.main-text > h1 {
    text-transform: uppercase;
    font-weight: bold;
    font-size: clamp(3rem, 5vw, 5rem)
}

.main-text > h2 {
    font-size: clamp(1.5rem, 2vw, 2rem);
}

.main-text > h3 {
    font-size: clamp(1rem, 1.3vw, 1.3rem);
}

.rest {
    /*background-color: #0c090d;*/
    background-color: #14213d;

    /* just for testing */
    min-height: 10vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 4rem;
}




#box{
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    padding: 3rem 10% 0;
    margin-bottom: 5rem;
    background-color: #f48c06;
    box-shadow: 0px 10px 15px 5px rgba(28,28,28,1);
    flex-wrap: wrap;

    /*box-shadow: 0px 0px 10px 8px rgba(28,28,28,1);*/

}

.box-item {
    /* Margin bottom op box item i.p.v paddding op box: werkt beter met flex-wrap */
    margin-bottom: 3rem;
    vertical-align: center;
}


.box-item>figure{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 15rem;
}

.box-item>figure>img{
    height: 5rem;
    width: auto;
    margin-bottom: 1rem;
}

.box-item>figure>figcaption{
    margin-top: 0.2rem;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.box-item>figure>i{
    fill: #14213d;
}

#price-form {
    background-color: #f48c06;
    box-shadow: 0 0 17px 3px rgba(43,43,43,1);
    padding: 1rem;
    /*opacity: 0.2;*/
    width: max(10rem, 80vw);
    height: auto;
    /*transform: translateY(-10%);*/
    border-radius: 0.2rem;
    display: flex;
    flex-direction: column;
    /* Gekroimpt voor mooier grid */
    max-width: 60rem;
}

#error-box {
    display: none;
}

#error-box.has-error {
    display: block;
}

#price-form>h2{
    margin: 0.5rem auto 1rem;
    color: whitesmoke;
    font-weight: bold;
}

 /*fieldset en legend zijn voor testing purpose hier neer geplets neit vast maar tijdelijk.*/
legend{
    margin:1rem auto 1rem;
    font-size: 1.5rem;
    color: #14213d;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

#form-part-box {
    --height: 400px;
    position: relative;
    height: var(--height);
    margin-bottom: 1rem;
}

.has-error{
    display: flex;
    flex-direction: column;
    background-color: lightcoral;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border: red 3px solid;
    border-radius: 0.5rem;
}

.has-error>ul{
    flex-direction: column;
    list-style: unset;
    margin-left: 1.5rem;
}
/*heir begint modal styling*/

#modal.hidden {
    display: none;
}


#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.5);
    transition: all 5s;
}

#modal > .modal-main {
    position: relative;
    max-width: 40rem;
    width: 80%;
    height: 20rem;
    background-color: white;
    padding: 2rem;
    border-radius: 5px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;

}


#modal > .modal-main > img {
    max-width: 50%;
    max-height: 50%;
}

#modal > .modal-main > .close {
    font-size: 1.5rem;
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
}

/*hier eindigt de modal styling*/

.fieldset-inner {
    position: absolute;
    top: 0;
    width: 100%;
    height: max-content;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

}
.fieldset-inner.next, .fieldset-inner.prev {
    visibility: hidden;
    animation-name: hideFrom;
    animation-duration: 0.2s;
}

.fieldset-inner.current {
    visibility: visible;
    animation-name: showForm;
    animation-duration: 0.2s;
}

.control label {
    visibility: hidden;
}

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

@keyframes hideFrom {
    0% {
        visibility: visible;
        opacity: 1;
    }

    99% {
        opacity: 0;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

a {
    color: white;
}

.control input, .control textarea, .control .select {
    background-color: white;
    width: 100%;
    height: 3rem;
    border: none;
    font-size: 1rem;
}
.control input, .control textarea, .control .select > span {
    padding: 0.5rem;
}

.control .select input {
    display: none;
}


.control .select ul {
    z-index: 2;
}

.control textarea {
    /*ik raad aan om resize neit te doen tegen mensen die u html gaan breken en u grid.*/
    resize: vertical;
    text-align: start;
    /* testen normaal fixt dit font en alignement*/
    resize: none;
    font-family: inherit;
    padding-top: 1rem;
    padding-bottom: 1rem;
    max-width: 100%;
    height: 15rem;
}

.btn-wrapper{
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 3rem;
}

.btn-wrapper>button{
    width: 45%;
}

button{
    height: 3rem;
    background-color: #14213d;
    font-size: 1.2rem;
    color: whitesmoke;
    border: #1E325C 2px solid;
    box-shadow: 0px 0px 2px 1px rgba(25,41,77,1);
    border-radius: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
}

#submitBtn{
    margin-top: 1rem;
}

button:hover{
    border: black 2px solid;
    box-shadow: 0 0 3px 1px black;
}

.select {
    position: relative;
    display: flex;
}

.select > img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    height: 50%;
    transition: transform 0.2s;
}


.select > span {
    display: block;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 0rem;
}
.select > ul {
    display: none;
}

.select.open > img {
    transform: translateY(-50%) rotateZ(180deg);
}


.select.open > ul {
    display: flex;
    position: absolute;
    flex-direction: column;
    top: calc(100% + 10px);
    background-color: white;
    width: 100%;
}

.select.open > ul > li {
    display:block;
    padding: 1rem;
    width: 100%;
    border-bottom: 1px solid black;
    font-size: 1rem;
    transition: background-color 0.1s;
}

.select.open > ul > li:hover {
    background-color: lightgray;
}

.select.open > ul > li.active {
    font-weight: bold;
}

.about-wrapper{
    margin-top:5rem;
    width: max(10rem, 80VW);
    height: inherit;
    display: flex;
    flex-direction: column;
    max-width: 60rem;
}

.about-wrapper>h3{
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
}

.about-text{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    padding: 2rem;
    background-color: #f48c06;
}

.about-text>p{
    text-align: left;
    font-size: 1.2rem;
    font-weight: bold;
    color: floralwhite;
    line-height: 1.8rem;
    text-align: center;
}

.about-text>.footnote{
    display: flex;
    text-align: center;
    color: #14213d;
    margin-top: 1rem;
    font-size: 1.1rem;
}

footer{
    height: 5rem;
    width: 100%;
    background-color: #071013;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}

footer>h3{
    font-size: 1.1rem;
    text-transform: uppercase;

}

footer>p{
    color: floralwhite;
    font-size: 0.9rem;
    font-weight: bold;
}

@media only screen and (max-width: 480px){
    .btn-wrapper{
        flex-direction: column;
        height: 7rem;
    }

    .btn-wrapper>button{
        width: 100%;
    }

    .btn-wrapper>button:first-child{
        margin-bottom: 1rem;
    }

    .footer {
        flex-direction: column;
    }
}