@import url("../../styles/variables.css");

/*copiar daqui*/
.rack-component {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.rack-container {
    display: flex;
    width: 100%;
    flex-direction: column;
    aspect-ratio: 619/583.24;
    background-image: url("../../assets/images/rack-illustration.png");
    background-size: contain;
}

.rack-component h6 {
    font-family: var(--font-family-MS);
    font-size: var(--text-xl);
    font-style: normal;
    font-weight: var(--font-weight-medium);
    line-height: 141%;
}

.rack-button {
    width: 20px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.distribution {
    margin: 11.57% 0 0 0;
    left: 8.58%;
    width: 34.5%;
    height: 7.5%;
}

.switch {
    margin: 2.34% 0 0 0;
    left: 10.1%;
    width: 31.2%;
    height: 12.1%;
}

.monitor {
    margin: 1.34% 0 0 0;
    left: 11.1%;
    width: 29.2%;
    height: 17.1%;
}

.server {
    margin: 3.34% 0 0 0;
    left: 9.9%;
    width: 31.5%;
    height: 13.5%;
}

.patch {
    margin: 3.8% 0 0 0;
    left: 8.4%;
    width: 34.3%;
    height: 9.9%;
}

/* popup */
.popup {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.25s ease;

    background: var(--grey-c100);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 40%;
    position: relative;
    left: 55.4%;
    margin-top: -50%;
}

.popup h3 {
    text-align: center;
    font-family: var(--font-family-MS);
    font-size: var(--text-sm);
    font-style: normal;
    font-weight: var(--font-weight-medium);
    line-height: 130%;
}

.popup p {
    width: 100%;
    text-wrap: pretty;
    text-align: center;
    word-wrap: break-word;
    font-family: var(--font-family-MS);
    font-size: var(--text-xs);
    font-style: normal;
    font-weight: var(--font-weight-regular);
    line-height: 130%;
}

.popup p span {
    font-weight: bold;
}

.popup.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.popup.hide {
    opacity: 0;
    transform: translateY(-20px);
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

/*até aqui*/