@import "common.css";

#app-container {
    position: relative;
    width: 100%;
    height: 100vh;

    background: var(--primary);
    background-image: url('../img/Background.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    padding: 40px;
}

.hide-block {
    display: none;
}

.bar {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100vh - 120px);
}

.open-bar {
    display: none;
}

.menu-icon {
    background-color: white;
    border-radius: 100%;
    padding: 4px;
}

#open-menu {
    position: absolute;
    z-index: 100;
}

#left-bar {
    position: absolute;
    z-index: 100;
}


#right-bar {
    position: absolute;
    z-index: 100;
    right: 40px;

    align-items: flex-end;
}

#model {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

#scenario-btn-groups {
    flex-wrap: wrap;
    height: 152px;
}

.btn-input {
    display: none;
}

.btn {
    display: inline-block;
    cursor: pointer;
    user-select: none;

    position: relative;
    overflow: hidden;

    width: 100%;
    padding: 22px 24px;

    background: var(--light);

    border: none;
    border-radius: 14px;

    z-index: 1;

    font-size: 16px;
    text-align: center;
}

.btn::before {
    content: "";
    position: absolute;

    background: var(--active);

    display: none;

    top: 0;
    left: -100%;

    height: 100%;
    width: 100%;
}

.btn:hover {
    background: rgba(242, 153, 74, 0.86);
}

.btn-input:checked + .btn::before {
    display: block;
    left: var(--left-position, 0);
    z-index: -1;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 200px;
}

#v-btn-group {
    width: 300px;
}

label.disabled {
    pointer-events: none;
}

.info-paper {
    width: 525px;
}

.paper {
    padding: 15px;
    background: var(--light);
    border-radius: 15px;
}

.paper-title {
    padding: 9px 16px;

    border-radius: 8px;

    background: #E5EFF9;
    box-shadow: inset 0px 4px 14px rgba(49, 36, 16, 0.1);
    font-weight: 400;
}

.paper-title-link {
    position: relative;
    display: flex;
    gap: 7px;
    opacity: .7;

    transition: opacity .25s ease;
}

.paper-title-link::before {
    content: '';

    display: block;
    margin-top: 2px;

    width: 15px;
    height: 15px;

    background: url("../img/icon/link.png") center no-repeat;
    background-size: contain;
}

.paper-title-link:hover {
    position: relative;
    opacity: 1;
}

.paper-info-grid {
    width: 100%;
    margin-top: 15px;
    display: grid;

    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
    row-gap: 20px;
}

.paper-info-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.paper-info-grid-item > p {
    width: 80%;
    text-align: center;
    height: 44px;
}

.termostat {
    position: relative;
    width: 130px;
    height: 130px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.4);
    border: 2px solid #FFFFFF;
    box-shadow: -6px -6px 16px rgba(255, 255, 255, 0.6), 6px 9px 40px rgba(176, 195, 210, 0.5);

    display: flex;
    align-items: center;
    justify-content: center;
}

.termostat > img {
    position: absolute;

    margin-left: 13px;
    margin-top: 20px;
}

.termostat > .text {
    position: relative;
    font-size: 25px;
    color: rgb(57, 63, 101);
    opacity: .8;
}

.termostat.term-grad > .text {
    margin-left: -32px;
}

.termostat.term-grad > .text::after {
    content: 'o';
    position: absolute;
    font-size: 20px;
}

.termostat.term-grad > .text::before {
    content: 'C';
    right: -32px;
    position: absolute;
    font-size: 25px;
}

.termostat.term-pressure > .text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.termostat.term-pressure > .text::after {
    content: 'кг/см2';
    font-size: 16px;
}

#video-paper {
    width: 350px;
}

#v-container {
    /*margin-top: 15px;*/

    display: flex;
    flex-direction: column;
    gap: 15px;
}

.v-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v-title {
    font-weight: 400;
}

.v-video {
    width: 0;
    height: 0;
}

.polygons-count {
    text-shadow: 1px 1px #000;
    color: #fff;
    text-transform: uppercase;
    opacity: .5;

    font-size: 18px;
    font-family: sans-serif;

    z-index: 1000;
    position: absolute;
    bottom: 1%;
    left: 1%;
}

@media all and (max-width: 1440px) {
    .btn {
        font-size: 14px;
        padding: 22px 12px;
    }

    .paper-info-grid-item > p {
        font-size: 13px;
    }

    .info-paper {
        width: 350px;
        padding: 0;
    }

    .paper-info-grid {
        column-gap: 0;
        row-gap: 0;
    }

    .termostat {
        margin-top: -10px;
        transform: scale(.8);
    }

    .paper-info-grid-item {
        gap: 0;
    }
}
