.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 1000;
}
video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/*General*/

body{
    margin: 0;
    padding: 0;

    background-image: url("assets/img/background.png");
    background-size: cover;
    background-attachment: fixed;
    background-position: left top, right top;
    background-size: 100% auto;
    background-repeat: repeat;

    background-color: #7EE174;
    font-family: "Kalam", "Matemasie", sans-serif;
}

h1 {
    color: #00ff00;
    font-family: "Matemasie", "Kalam", sans-serif;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 2px 2px 0 #000;
    margin: 0;
    padding: 1%;
}

h2{
    margin: 0;
    padding: 0;
}

h3{
    margin: 0;
    padding: 0;
}

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


/*Header */

header{
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    margin: 0 auto 10px auto;
    padding: 10px;

    width: 80%;
    height: 100px;
    
    background-color: #1CA90D;
    border-radius: 10px;
    align-items: center;
}

header h1{
    margin: 0 auto 0 auto;
    padding: 0;
}


/*Main Content*/

#wrapper{
    display: flex;
    flex-direction: row;
    margin: 0 auto 10px auto;
    width: 80%;
}

#wrapper main{
    display: flex;
    flex-direction: row;
    border-radius: 1rem;

    background: rgba(50,213,33, 0.9);
    background: linear-gradient(90deg, rgba(50,213,33,0.9) 33%, rgba(19,114,9,0.9) 100%);
    color: white;

    width: 59%;
    height: 600px;

    margin-right: 1%;
    padding: 20px;

    scrollbar-color:  #1CA90D #58D24B;
    scrollbar-width: thin;
}

#showroom{
    display: flex;
    min-width: 40%;
    max-width: 60%;
    max-height: 100%;
    justify-content: center;
}

#showroom img{
    max-width: 100%;
    max-height: 100%;

}


#selected-description{
    display: flex;
    flex-direction: column;
    align-items: center;

    font-size: large;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-color:  #1CA90D #58D24B;
    scrollbar-width: thin;

    width: 50%;
    max-height: 100%;
    padding: 20px;
}

#selected-description h2{
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

#selected-description details{
    font-size: medium;
    font-weight: 700;
    align-self: flex-start;
    cursor: pointer;
}

#selected-description details[open] summary{
    color: #dddddd;
}


#selection{
    display: flex;
    flex-direction: column;
    border-radius: 1rem;

    background-color: rgba(88, 210, 75, 0.9);
    background: linear-gradient(90deg, rgba(79, 187, 67, 0.9) 33%, rgba(88, 210, 75, 0.9) 100%);

    height: 600px;
    width: 40%;

    align-items: center;

    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-color:  #58D24B #1CA90D ;
    scrollbar-width: thin;

    padding: 20px;
}

#selection::-webkit-scrollbar {
    width: 12px;
    border-radius: 15px; /* Scrollbar Rundung */
}

@media only screen and (max-width: 1000px){
    #wrapper{
        flex-direction: column;
        width: 80%;
    }

    #showroom{
        width: 100%;
        max-height: 100%;
    }

    #wrapper main{
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        margin: auto;
        width: 100%;
        overflow: auto;
        align-items: center;
    }

    #showroom{
        width: 100%;
        max-height: 80%;
    }

    #selected-description{
        width: 90%;
        height: 70%;
        overflow: unset;
    }

    
    #selection{
        box-sizing: border-box;
        margin: auto;
        margin-top: 10px;
        width: 100%;
    }

}

@media only screen and (max-width: 1500px) and (min-width:1001px){
    #wrapper{
        flex-direction: column;
        width: 80%;
    }

    #showroom{
        width: 100%;
        max-height: 100%;
    }

    #wrapper main{
        display: flex;
        box-sizing: border-box;
        margin: auto;
        width: 100%;
        overflow: auto;
        align-items: center;
    }

    #showroom{
        width: 100%;
        height: 100%;
    }

    #selected-description{
        width: 90%;
        height: 70%;
        overflow: unset;
    }

    
    #selection{
        box-sizing: border-box;
        margin: auto;
        margin-top: 10px;
        width: 100%;
    }
}


/*Data*/

#datasheet{
    display: flex;
    flex-direction: column;
    overflow-y: auto;

    margin: 0 auto 10px auto;
    padding: 20px;
    box-sizing: border-box;

    width: 80%;
    min-height: 200px;
    max-height: 400px;
    
    background-color: rgba(88, 210, 75, 0.9);
    border-radius: 1rem;
}

#datasheet h2{
    margin: 0 auto 20px auto;
}

#pdf-btns{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
}

#pdf-btns a{
    width: 45%;
    padding-top: 5px;
    display: inline-block;
    font-size: 16px;

    color: #000000;
    background-color: rgba(0, 255, 0, 1);

    text-align: center;
    text-decoration: none;

    border: 1px solid #000000;
    border-radius: 5px;

    cursor: pointer;
}

#pdf-btns a:hover{
    background-color: rgba(0, 255, 0, 0.5);
}

#buildModal{
    padding-top: 5px;
    font-size: 16px;
    font-family: "Kalam", "Matemasie", sans-serif;

    width: 45%;
    background-color: rgba(0, 255, 0, 1);

    border-radius: 5px;
    border: 1px solid #000000;

    cursor: pointer;
}

#datasheet button:hover{
    background-color: rgba(0, 255, 0, 0.5);
}

#tableWrapper table{
    border-collapse:collapse;
    
    margin: 0 0 20px 0;
    width: 100%;

}

th:first-child, td:first-child {
    text-align: left;
}

th:not(:first-child), td:not(:first-child) {
    text-align: center;
}


#tableWrapper tbody{
    font-family: sans-serif;
    font-size: medium;
    font-weight: 700;
}

#tableWrapper th{
    padding: 5px;
}

#tableWrapper td{
    border:1px solid #000000;
    padding: 5px;
}

#tableWrapper{
    width: 100%;
}


/*Dialog*/

dialog {
    border: solid #808080 2px;
    border-radius: 10px;

    background-color: rgb(224, 224, 224);
    box-shadow: 0 0 10px 10px rgba(0, 0, 0, 0.3);

    min-width: 60%;
    max-width: 80%;
    min-height: 70%;
    max-height: 90%;

    padding: 0;

    overflow: hidden;
}


::backdrop, /* for native <dialog> */
dialog + .backdrop {
  /* for dialog-polyfill */
  /* a transparent shade of gray */
  background-color: rgba(0, 0, 0, 0.2);
}

#toolbar{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    

    height: 30px;

    margin-bottom: 10px;
    margin-top: 5px;
    margin-inline: 5px;
}

dialog button{
    border: 1px solid black;
    border-radius: 5px;

    align-self: center;
    cursor: pointer;

    min-width: 20px;
    min-height: 20px;

    font-weight: bold;
    font-size: large;
}

#pdfFrame{
    width: 100%;
    min-height: 800px;
}


/*Footer*/

footer{    
    margin: 0 auto 100px auto;

    background-color: rgba(14, 133, 2, 0.9);
    color: white;

    display: flex;
    flex-direction: row;
    border-radius: 1rem;
    
    width: 80%;
    height: 40px;
}

footer p{
    padding-inline: 20px;
    margin-top: 10px;
}


/*---Classes---*/

.card{
    display: flex;
    flex-direction: column;
    overflow: hidden;

    box-sizing: border-box;
    margin-bottom: 10px;
    padding: 10px;

    background-color: #58D24B;

    border: 1px solid black;
    border-radius: 5px;

    width: 100%;
    min-height: 160px;
    max-height: 200px;
    cursor: pointer;
}

.card legend{
    font-size: large;
    font-weight: 700;
}


.card p{
    margin: 0;
    padding: 0;
    font-size: small;
    font-weight: 400;
}

.card .content{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 10px;
    height: 100px;
}


.card img{
    max-width: 30%;
    margin-inline: 3%;
    margin-bottom: 20px;
}

.card.active{
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid #ffffff;
}

.ad-card{
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    font-family: sans-serif;

    margin-bottom: 10px;
    padding: 10px;

    background-color: rgba(154, 209, 255, 0.3);

    border: 2px solid rgb(0, 56, 102);

    
    min-height: 180px;
    width: 100%;
}

.ad-card legend{
    font-size: medium;
    font-weight: 700;
}

.ad-content{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ad-content p{
    margin: 0;
    padding: 0;
    font-size: medium;
    font-weight: 800;
}
