@media screen and (min-width: 1000px) { .slide-container { display: flex; flex-direction: column; transition: all .3s ease 0s; } .slide-main { display: flex; border-radius: 0.4rem; box-shadow: 0px 20px 50px -10px rgba(0, 0, 0, 0.2); background-color: var(--color-background); height: 22rem; margin-left: 2.5rem; margin-right: 2.5rem; z-index: 1; transition: all .3s ease 0s; } .slide-img { max-height: 15rem; min-width: 20rem; max-width: 25rem; } .slide-img-mobile { height: 0; width: 0; } .slide-img-container{ display: flex; margin: 1.5rem; justify-content: center; align-items: center; } .slide-title { color: var(--color-text); font-family: 'Gabarito', sans-serif; font-weight: 600; font-size: 2rem; margin-bottom: 0.5rem; } /* Any Subtitle */ .slide-subtitle { color: var(--color-text); font-family: 'Gabarito', sans-serif; font-weight: 500; font-size: 1.5rem; margin-top: 0.75rem; margin-bottom: 0.75rem; width: 100%; } .slide-text-container { margin: 1.5rem; width: 25rem; } .slide-unactive { scale: 0.9; margin-left: 2.25rem !important; margin-right: 2.25rem !important; box-shadow: 0 7px 30px -10px rgba(150,170,180,0.5) !important; } } @media screen and (max-width: 1000px) { .slide-container { display: flex; flex-direction: column; transition: all .3s ease 0s; } .slide-main { display: flex; border-radius: 0.4rem; box-shadow: 0px 20px 50px -10px rgba(0, 0, 0, 0.2); background-color: var(--color-background); height: 36rem; width: 90dvw; margin-left: 5dvw; z-index: 1; transition: all .3s ease 0s; } .slide-img-mobile { max-height: 15rem; min-width: 76dvw; max-width: 76dvw; margin-top: 1.5rem; margin-bottom: 1.5rem; } .slide-img-container{ visibility: hidden; width: 0; height: 0; } .slide-title { color: var(--color-text); font-family: 'Gabarito', sans-serif; font-weight: 600; font-size: 2rem; margin-bottom: 0; } /* Any Subtitle */ .slide-subtitle { color: var(--color-text); font-family: 'Gabarito', sans-serif; font-weight: 500; font-size: 1.25rem; margin-top: 0.5rem; margin-bottom: 0.5rem; width: 100%; } .slide-text-container { margin: 1.5rem; width: 75dvw; } .slide-unactive { scale: 0.9; box-shadow: 0 7px 30px -10px rgba(150,170,180,0.5) !important; } } .slide-subtitle-container { display: flex; flex-direction: row; align-items: center; } /* When an icon is put after a subtitle*/ .slide-aftericon { margin-left: 0.5rem; } .slide-justify { text-align: justify; text-justify:auto; } /* Add it to any text that may overflow. (long texts)*/ .slide-text { font-size: 1.25rem !important; } .slide-overflow { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; text-overflow: ellipsis; } .slide-o1 { -webkit-line-clamp: 1; } .slide-o2 { -webkit-line-clamp: 2; } .slide-o3 { -webkit-line-clamp: 3; } .slide-o4 { -webkit-line-clamp: 4; } .slide-o5 { -webkit-line-clamp: 5; } /* For button at the end of the container*/ .slide-button-container { display: flex; justify-content: flex-end; } /* Every button are centered to the right side of the component */ .slide-button { padding-right: 1rem; padding-left: 1rem; padding-top: 0.5rem; padding-bottom: 0.5rem; display: flex; justify-content: center; align-items: center; border-radius: 5rem; color: var(--color-background); background-color: var(--color-special); font-family: 'Urbanist', sans-serif; font-weight: 700; border: 0.05rem solid; border-color: rgba(0, 0, 0, 0); box-shadow: 0px 2px 5px -1px rgba(0, 0, 0, 0.2); transition: all .3s ease 0s; } .slide-button:hover { color: var(--color-special); background-color: var(--color-background); box-shadow: 0 0.7px 3px -1px rgba(150,170,180,0.5); border: 0.05rem solid; border-color: var(--color-special); } .slide-button:active { transform: translateY(0.25rem); background-color: var(--color-subtitle); } /* Timeline stuff */ .slide-time { margin-top: 3rem; display: flex; flex-direction: column; justify-content: center; align-items: center; } .slide-bubble { z-index: 2; width: 5rem; height: 5rem; background-color: var(--color-special); box-shadow: 0px 2px 5px -1px rgba(0, 0, 0, 0.2); border-radius: 50%; transition: all .3s ease 0s; display: flex; justify-content: center; align-items: center; } /* Date text */ .slide-date { color: var(--color-special); font-weight: 700; } .slide-string { z-index: -1; position: absolute; height: 3rem; background-color: var(--color-special); opacity: 0.5; transition: all .3s ease 0s; }