:root {
    --main-color : #b40000;
    --second-color: #747474;
    --white-space: #000000;
    --font-color: #fff;

    --red:#b40000;
    --green: #2ad200;
    --blue: #007ac6;
    --yellow: #ccd300;
    --white: #fff;

    --font-3xl: 40px;
    --font-xxl: 35px;
    --font-xl: 30px;
    --font-lg: 25px;
    --font-md: 20px;
    --font-sm: 16px;
    --font-xs: 14px;
    --font-xxs: 12px;
    --font-3xs: 10px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    font-size: inherit;
    color: inherit;
    text-decoration: none;
}
body {
    overflow-x: hidden;
    background-color: var(--white-space);
    color: var(--font-color);
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
main {
    margin-top: 9vh;
}
section {
    min-height: 91vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url(../img/starBackground.png);
}
section > .title {
    display: flex;
    flex-direction: column;
    font-size: 60px; 
    text-transform: uppercase;
    word-spacing: 2vw;
}
section > .title span {
    display: inline-block; /* Ensure transforms work as expected */
    animation-duration: 1s;
    animation-fill-mode: forwards;
    opacity: 0;
}
section > .title span:nth-of-type(odd) {
    transform: translateX(-10vw);
    animation-name: slide-right;
}
section > .title span:nth-of-type(even) {
    transform: translateX(10vw);
    animation-name: slide-left;
}
@keyframes slide-right {
    from {
        transform: translateX(-10vw);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slide-left {
    from {
        transform: translateX(10vw);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
section .content {
    width: 80vw;
    margin-top: 5vh;
    font-size: var(--font-lg);
    opacity: 0;
    transform: translateY(10vh);
    animation: slide-up 1s 0.5s forwards;
    line-height: 45px;
}
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(10vh);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes border-drawing {
    from {
        border-style: none;
    }
    to {
        border-style: solid;
    }
    
}
span.specialaization {
    border: solid 1px;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 20px;
}
span.specialaization:nth-child(1) {
    border-color: var(--red);
}
span.specialaization:nth-child(2) {
    border-color: var(--blue);
}
span.specialaization:nth-child(3) {
    border-color: var(--yellow);
}
span.specialaization:nth-child(4) {
    border-color: var(--green);
}
span.specialaization:nth-child(5) {
    border-color: var(--white);
}

.cards-container {
    min-height: 20vh;
    height: 40vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center
}
.card {
    width: 30vw;
    height: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vh;
    border-right: solid 1px;
    opacity: 0;
}
.card:last-child {
    border: none !important;
}
.card img {
    width: 7vw;
    height: 7vw;
}
.card > span {
    width: 80%;
    text-align: center;
}

.visible {
    animation: slide-up 1s 0s forwards;
}
.fade-in {
    opacity: 0;
    transform: translateY(10vh);
}
#x {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 5vh;
}
.scroll-content {
    display: flex;
    flex-direction: row;
}
.scroll-content:first-child {
    border-top: none;
}
.scroll-content > .title {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 1vw;
    width: 25vw;
    font-size: var(--font-3xl);
    font-weight: bolder;
    color: var(--second-color);
    border-right: solid 3px var(--white);
    padding-top: 5vh;
}
.scroll-content > .title span {
    width: min-content;
}
.scroll-content > .scroll-card {
    padding-left: 1vw;
    width:  70vw;
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
    padding-top: 5vh;
}
.scroll-content > .scroll-card .headline {
    display: inline-flex;
    align-items: center;
    gap: 1vw;
    font-size: var(--font-xxl);
}
.scroll-content > .scroll-card .headline.li::before {
    content: "";
    background-color: var(--main-color);
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    
}
.scroll-content .scroll-card > p {
    padding: 10px;
}

.carousel {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    overflow-x: hidden;
}
.carousel #message-container {
    width: 100%;
    display: flex;
    gap: 1vw;
    transition: transform 0.5s ease-in-out;
}
.carousel #message-container .carousel-card {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 1vh;
    align-items: center;
    border: solid 2px var(--red);
    border-radius: 15px;
    min-width: calc((100% - 3vw) / 3); /*total width:75, total gap: 1vw * 2 gaps, total displayed cards: 3 */
}
.carousel #message-container .carousel-card .name {
    font-size: var(--font-lg);
    width: 95%;
    padding-bottom: 0.5vh;
    border-bottom: solid 1px gray;
}
.action {
    margin:2vh 0vh;
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 2vw;
}
.rounded-button {
    padding: 10px;
    border-radius: 50%;
    border: none;
    background-color: var(--red);
    font-size: 1.5rem;    
    cursor: pointer;
}
.roadmap {
    gap: 0 !important;
}
.course {
    background-color:darkred;
    width: 60%;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 1vw;
}
.course > .title {
    min-width: 25%;
    text-align: center;
    font-size: var(--font-lg);
}
.course .description {
    background-color: #000000;
    padding: 10px;
}
.course-devider {
    height: 50px;
    margin-left: 2vw;
    margin-top: 1vh;
    border-left: dashed 5px;
}
.last-section {
    position: relative;
    overflow: hidden;
    background-image: none;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    background-size: cover;
}

.last-section .content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4vh;
    align-items: center;
    font-size: var(--font-3xl);
}
.last-section .content *:first-child {
    font-size: 60px;
}
.last-section .content *:last-child {
    font-size: var(--font-xl);
}
.last-section .content *:last-child:hover {
    margin-left: 3vw;
    transition: margin 0.5s;
}
@media screen and (max-width:1024px) {
    section > .content {
        width: 80vw;
    }
    .card img {
        width: 10vw;
        height: 10vw;
    }
    .scroll-content > .title {
        width: 30vw !important;
    }
    .carousel #message-container .carousel-card {
        min-width: calc((100% - 2vw) / 2);
    }
    .course {
        width: 80%;
    }

}
@media screen and (max-width:830px) {
    section > .content {
        width: 80vw;
    }
    .card img {
        width: 13vw;
        height: 13vw;
    }
    .scroll-content > .title {
        flex-direction: row;
        gap: 1vh;
        transform: rotate(90deg);
        border: none;
        height: 10vh;
        width: 10vw !important;
        max-height: 10vw;
        align-items: flex-start;
        padding-top: 0;
        padding-left: 5vh;
        text-wrap: nowrap;
        gap: 2vh;
    }
    .scroll-content:first-child > .title {
        padding-left: 0vh;
    }
    .scroll-content > .scroll-card {
        width: 89vw  !important;
        border-left: solid 1px gray ;
    }
    .carousel #message-container .carousel-card {
        min-width: calc((100% - 1vw) / 2);
    }
    .course {
        width: 80%;
    }

}
@media screen and (max-width:600px) {
    section > .title {
        font-size: var(--font-3xl);
    }
    section > .content {
        font-size: var(--font-md);
    }
    .cards-container > .card > span {
        font-size: var(--font-md);
    }
    .headline {
        font-size: var(--font-lg) !important;
    }
    .scroll-card > .description {
        font-size: var(--font-sm);
    }
    .course {
        width: 90%;
        flex-direction: column;
    }
}
@media screen and (max-width:525px) {
    .carousel #message-container .carousel-card {
        min-width: 100%;
    }
}
@media screen and (max-width:450px) {
    section.cards-container {
        flex-direction: column;
        height: auto;
    }
    section.cards-container > .card {
        border-right: none;
        border-bottom: solid 1px;
        width: 80vw;
    }
    section.cards-container > .card > img {
        width: 20vw;
        height: 20vw;
    }
    .last-section .content *:first-child {
        font-size: var(--font-3xl);
    }
    .last-section .content *:nth-child(2) {
        font-size: var(--font-lg);
    }
    .last-section .content *:last-child {
        font-size: var(--font-sm) !important;
    }
    .last-section .content *:last-child:hover {
        margin-left: 3vw;
        transition: margin 0.5s;
    }
    .scroll-content > .title {
        height: 12vw;
        width: 15vw !important;
        max-height: 12vw;
    }
    .scroll-content > .scroll-card {
        width: 84vw  !important;
    }
    .course > .title {
        font-size: var(--font-lg);
    }
}