:root {
    --arrow-hover-scale: 1.2;
}

.main-frame-uni {
    position: relative;
    display: grid;
    border: var(--main-frame-border);
    border-image: var(--main-frame-border-image);
    box-shadow: var(--main-frame-shadow);
    grid-area: 2 / 2 / 6 / 9;
    grid-template-rows: 5% 5% 80% 2% 8%;
    grid-template-columns: 50% 50%;
    justify-items: center;
}

.spin-symbol-container {
    display: flex;
    position: relative;
    height: 100%;
    justify-content: center;
    align-items: center;
    grid-area: 2 /1 /5 /2;
    z-index: -1;
}

.spin-symbol-container img {
    height: 100%;
    will-change: opacity;
}

/* Selection-Title */
.uni-title-selection {
    position: relative;
    display: grid;
    width: 100%;
    height: min-content;
    top: 5%;
    grid-area: 3/ 2/ 4/ 3;
    right: 3vw;
    align-items: center;
    justify-items: center;
    justify-content: center;
    grid-template-columns: 8% 2% min-content 2% 8%;
}

#current-selection-uni {
    position: relative;
    font-family: var(--simonetta-font);
    color: var(--text-color-light);
    font-size: var(--font-48-size);
    text-align: center;
    margin: 0 0;
    white-space: nowrap;
}

/* Preview */
#preview-uni {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    width: 65%;
    height: 90%;
    grid-area: 3/ 1/ 4/ 2;
}

#preview-container-uni {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 1;
}


#preview-container-scroll-uni {
    position: relative;

    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;

    -ms-overflow-style: none;
    scrollbar-width: none;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    overflow-x: visible;
    overflow-y: hidden;

    cursor: pointer;
    z-index: 1;
}

#preview-container-scroll-uni::-webkit-scrollbar {
    display: none;
}

.selection-previews {
    position: relative;
    flex: 0 0 33.5%;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: center;
    white-space: nowrap;
    opacity: 0.5;
    transition: all 0.4s ease-in-out;
}

/* Selected */
.selection-previews img {
    position: absolute;
    height: 90%;
    width: 100%;
    object-fit: cover;
    transition: all 0.4s ease-in-out;
}

.selection-previews div {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    transition: all 0.4s ease-in-out;
}

.selected-project {
    opacity: 1;
    z-index: 2;
}

.selected-project img {
    width: 250%;
    height: 100%;
}

.selected-project-1U div,
.selected-project-1D div {
    opacity: 0.5;
}

/* Description */
.uni-description-container {
    position: relative;
    display: flex;
    right: 3vw;
    margin: 0 5vw;
    grid-area: 3/ 2/ 4/ 3;
    align-items: center;
}

.uni-description-container div {
    display: flex;
    font-family: var(--noticia-font);
    font-size: var(--font-32-size);
    color: var(--text-color-text);

    text-align: center;
    align-items: center;

    letter-spacing: 0.02vw;
}


/* Animation */
#next-item img:hover {
    scale: calc(var(--arrow-hover-scale) * -1);
}

#previous-item img:hover {
    scale: var(--arrow-hover-scale);
}

.uni-arrows {
    scale: 0.8 !important;
}

.uni-arrows-flipped {
    scale: -0.8 !important;
}

/* Fix Phone BlueTap */
#preview-container-uni,
#next-item,
#previous-item {
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: var(--webtap-color);
}