
html {
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Arial", sans-serif;
    color: rgba(0, 0, 0, 0.69);
    line-height: 1.4;
    min-height: 100%;
    width: 100%;
}

nav {
    background-color: #000;
    padding: 0;
    display: flex;
    border-bottom: 1px solid #282828;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    height: fit-content;
    min-height: 57px;
    z-index: 1000;
}

.logo img {
    width: 100%;
    max-width: 200px;
}

.nav-items {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0 0 0 97px;
    padding: 0;
}

.nav-item {
    margin: 0 15px;
    position: relative;
    width: max-content;
}

.nav-item:hover {
    border-bottom: solid 3px #5252f2;
}

.navigLink {
    color: #fff;
    text-decoration: none;
    display: block;
    font-size: 17px;
    text-align: center;
    line-height: 50px;
    border: 0;
    height: 4rem;
    margin: 7px 0rem -7px 0;
    padding: 0 1rem;
}

.navigLink:hover {
    height: calc(4rem - 3px);
}

.submenu {
    display: none;
    position: absolute;
    text-decoration: none;
    list-style: none;
    top: 100%;
    left: 0;
    width: max-content;
    background-color: #282828;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px;
    z-index: 1001;
}

.nav-item:hover .submenu {
    display: none;
}

.submenu li {
    margin: 8px 0;
}

.submenu a {
    color: #fff;
    text-decoration: none;
}

.burger-menu {
    display: none;
    cursor: pointer;
}

.burger-menu img {
    max-width: 30px;
}

@media screen and (max-width: 1070px) {
    nav {
        padding: 0;
        justify-content: space-around;
    }

    .nav-items {
        flex-direction: column;
        align-items: flex-end;
        position: relative;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .burger-menu {
        display: block;
    }

    .nav-items {
        display: none;
        width: 100%;
        background-color: #000;
        position: absolute;
        top: 70px;
    }

    .nav-items.show {
        display: flex;
        flex-direction: column;
        margin-left: -25px;
        font-size: 2rem;
        background-color: #282828;
        width: max-content;
        position: absolute;
        top: 100%;
        right: 10%;
    }

    .submenu {
        font-size: 17px;
        left: -100px;
        top: 99%;
    }

    .navigLink {
        margin: -15px 0;
    }
}

@media screen and (min-width: 1071px) {
    nav {
        justify-content: flex-start;
    }
}

.main-content {
    margin: 65px 10px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.type-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 15px 0 30px 0;
    padding: 0;
    flex-wrap: wrap;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    margin-bottom: 10px;
}

.modelButton {
    padding: 0;
    background-color: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: calc(20% - 2px);
    max-width: 130px;
}

.modelButton.active {
    background-color: #e0e0e0;
    color: white;
}

.modelButton:hover:not(.active) {
    background-color: #e0e0e0;
}

.modelButton img {
    width: 100%;
}

.controls {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    width: 100%;
    justify-content: center;
}

.info-button {
    position: absolute;
    right: 20px;
    cursor: pointer;
    width: fit-content;
    height: fit-content;
}

.info-button span {
    display: block;
    font-size: 30px;
    color: #5f5f5f80;
}

#info-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000000da;
    border: 1px solid #ffffff;
    padding: 1.7rem;
    border-radius: 0.625rem;
    color: white;
    font-family: monospace;
    text-align: center;
    z-index: 1000;
    max-width: calc(100vw - 40px);
    width: auto;
    height: auto;
}  

.info-content h3 {
    margin: 0.625rem;
}

#close-button-info {
    position: absolute;
    top: 0px;
    right: 0px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ffffff;
    padding: 0;
    display: block;
    cursor: pointer;
    width: 50px;
    height: 50px;
}

.pauseButton {
    padding: 2px 4px;
    background-color: #ffb4b4;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: larger;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
}

.model-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.model-container {
    position: relative;
    border: 1px solid #000;
    padding: 0;
    margin: 5px;
    width: calc(100% - 2px);
    height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #fff;
}

.model-container model-viewer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.text-picture {
    position: relative;
    border: 1px solid #000;
    padding: 0;
    margin: 5px;
    width: calc(100% - 2px);
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #fff;
    flex-direction: column;
}

.text-picture img {
    width: 100%;
}

.description-text p{
    font-size: 16px;
    text-align: center;
    display: block;
    width: calc(100% - 20px);
    margin: 0 10px;
}

.hidden {
    display: none;
}

.footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 15px;
}
