body {
    overflow: hidden;
}

main {
    height: 85vmin;
    overflow: hidden;
    padding: 0.5vmin;
}

#left-side, #middle, #right-side {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3vmin 4vmin;

}
#left-side, #right-side {
    width: 37%;
    overflow: auto;
}
#middle {
    width: 26%;
    margin-top: 6vmin;
}

.divider {
    height: 60vmin;
    border-right: solid 1px rgba(0,0,0,0.3);
}


#middle img:not(.color) {
    width: 85%;
    object-fit: contain;
}

#description-section {
    background: rgba(230,230,230);
    border-radius: 10px;
    padding: 2vmin;
    margin-bottom: 1.1rem;
}
#accessories-section {
    padding: 2vmin;
    margin-bottom: 1.1rem;
}
#data-section {
    border: solid 1px black;
    padding: 2vmin;
    margin-top: 1.1rem;
    margin-bottom: 1.1rem;
    border-radius: 10px;
}
#left-side .files-section {
    display: none;
}

#data {
    width:100%;
    padding-top: 0.5vmin;
}
tr {
    vertical-align: top;
}
td:nth-child(2) {
    padding-left: 3vmin;
}

#accessories {
    width: 100%;
    display: flex;
    padding-top: 0.5vmin;
}
#accessories > div {
    margin-right: 2vmin;
    width: 50%;
    display: flex;
}
#accessories > div p {
    margin-right: 1vmin;
    writing-mode: vertical-lr;
    text-align: center;
    border: solid 1px black;
    padding: 0.5vmin;
    transform: rotate(180deg);
}
#accessories > div:first-child p {
    background-color: rgba(0, 255, 0, 0.15);
}
#accessories > div:last-child p {
    background-color: rgba(255, 0, 0, 0.15);
}
#accessories li {
    cursor: pointer;
}

#colors {
    display: flex;
}
.color {
    margin: 0.5vmin 0.5vmin;
    width: 3vmin;
    height: 3vmin;
}
.note {
    margin-top: -0.75rem;
    margin-bottom: 1.1rem;
}
#equipment-accessory, #equipment-schematic, #equipment-blueprint, #equipment-gallery {
    width: 60%;
    height: calc(100% - 30vmin);
    margin: auto;
    top: 15vmin;
    left: auto;
    background: white;
    border: solid 1px black;
}
#equipment-accessory .offcanvas-body, #equipment-schematic .offcanvas-body,
 #equipment-blueprint .offcanvas-body, #equipment-gallery .offcanvas-body  {
    margin: 3vmin;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80%;
}
#equipment-schematic .offcanvas-body, #equipment-blueprint .offcanvas-body, #equipment-manual .offcanvas-body {
    align-items: flex-start;
    justify-content: center;
}

#blueprint, #schematic {
    cursor: pointer;
}

#accessory-data, #photo-data {
    align-self: flex-start;
    margin: 0 4.5vmin;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
#included, #optional {
    box-shadow: 8px 0px 16px 0px rgba(0,0,0,0.3);
    cursor: pointer;
}
#included:hover, #optional:hover {
    box-shadow: none;
    font-style: italic;
}
.files {
    width: 100%;
    text-align: center;
    padding-top: 0.5vmin;
}

.gallery {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}
.gallery img, .gallery video {
    padding: 1vmin;
    width: 25%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

#photo-data {
    height: 55vmin;
    width: 100%;
}
#photo-data img {
    width: 100%;
}

a.button {
    display: inline-block;
    min-width: 25vmin;
    border: solid 1px black;
    height: auto;
    padding: 0.5vmin;
    cursor: pointer;
}
a.button:hover {
    font-style: italic;
}
#images {
    width: 100%;
}
#accessories li:hover {
    font-style: italic;
}
#equipment-schematic img {
    width: 80%;
    object-fit: contain;

}
#equipment-blueprint img {
    width: 80%;
    object-fit: contain;
}

#equipment-file {
    width: 100%;
    height: 100%;
    margin: auto;
    top: 0;
    left: 0;
    background: white;
}

.fixed {
    left: 37%;
}

#middle #pv-img {
    width: 105%;
}
#grill-1, #grill-2, #grill-3, #info-1, #info-2, #info-3, #cm, .cierre {
    display: none
}
@media (max-aspect-ratio: 4/3) {

    html {
        overflow: auto;
    }
    body {
        padding-top: 15vmin;
        overflow: auto;
    }
    main {
        flex-wrap: wrap;
        height: auto;
        overflow: auto;
    }

    #left-side, #right-side, #middle {
        width: 100%;
    }
    .divider {
        display: none;
    }
    #middle {
        order: 1;
    }
    #right-side {
        order: 3;
    }
    #left-side {
        order: 2;
    }
    #middle img:not(.color) {
        width: 50%;
    }
    button, .button {
        width: 40%;
    }

    a.button {
        width: 25%;
    }
    #equipment-accessory, #equipment-blueprint, #equipment-schematic, #equipment-gallery {
        width: 100%;
        height: auto;
        top: 50%;
        transform: translateY(-50%);
    }
    #photo-data {
        height: 100%;
    }
    .fixed {
        left: 2vmin;
    }

    #left-side .files-section {
        display: block;
        margin-bottom: 1.1rem;
    }
    #right-side .files-section {
        display: none;
    }
    #pv-image {
        display: none;
    }
    #right-side.config {
        display: none;
    }
    #middle.config {
        order: 2;
    }
    #left-side.config {
        order: 3;
    }
}

#pdf-viewer {
    width: 100%;
    height: 100%;
    background: white;
    overflow: auto;
}

.pdf-page-canvas {
    display: block;
    margin: 5px auto;
    border: 1px solid rgba(0, 0, 0, 0.2);
}
