@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Poppins:wght@600;900&display=swap');

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Manrope", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e6ed;
    overflow-x: hidden;
    touch-action: manipulation;
}

body {
    overflow-x: hidden;
    position: relative;
}

nav {
    position: fixed;
    display: flex;
    height: 4rem;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 999;
}

nav .panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 0;
    right: 0;
    gap: 0.1rem;
    width: auto;
    border-radius: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    z-index: 10;
}

#TMPdevtext {
    font-size: 4rem;
    margin-left: 2rem;
    color: rgb(230, 152, 152);
    backdrop-filter: blur(3px);
    z-index: 999;
}

#NavButton {
    top: 0;
    right: 0;
    position: absolute;
    margin-top: 2rem;
    margin-right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 2rem;
}

#NavCloseButton {
    top: 0;
    right: 0;
    position: absolute;
    margin-top: 2rem;
    margin-right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 2rem;
}

#NavDumyButton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 2rem;
    margin-left: 1rem;
}

#NavMenu {
    top: 0;
    right: 0;
    padding: 1rem;
    border-radius: 16px;
    background-color: #2f2f2f;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    margin-right: 1rem;
    transition: 0.3s;
}



main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    color: #e0e6ed;
    gap: 0rem;
}

.course-container {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    z-index: 900;
}

.course-wrapper {
    display: flex;
    flex-wrap: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    transition: 0.7s;
}

.course-fregment {
    width: 100vw;
    display: flex;
    text-align: center;
    justify-content: center;
}

.course-infomation {
    display: flex;
    overflow: hidden;
    flex-shrink: 0;
    flex-direction: column;
    color: rgb(51, 51, 51);
    align-items: center;
    justify-content: center;
    height: 20rem;
    width: 44rem;
    gap: 2rem;
    background: linear-gradient(180deg, rgb(197, 205, 211) 0%, rgb(197, 205, 211) 35%, rgb(70, 70, 70) 35%, rgba(70, 70, 70) 100%);
    border-radius: 16px;
    padding: 2rem;
    z-index: 10;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

button {
    width: 10rem;
    border-radius: 16px;
    border: none;
    padding: 1rem;
    transition: 0.3s;
}

button:hover {
    cursor: pointer;
    background-color: #e0e6ed;
    transform: scale(1.05);
}

input,
textarea {
    font-family: "Manrope", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 10rem;
    border-radius: 16px;
    border: none;
    padding: 1rem;
    outline: none;
    resize: none;
}

a {
    color: #e0e6ed;
    text-decoration: none;
}

#MainHead {
    font-size: 8rem;
}

#SubHead {
    font-size: 4rem;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.image-container img {
    filter: brightness(60%) blur(3px);
    width: 100%;
    transform: scale(1.1);
    height: 100%;
    object-fit: cover;
}

.text-overlay {
    position: absolute;
    bottom: 15%;
    left: 10vw;
    color: white;
    text-align: left;
    display: flex;
    flex-direction: column;
}

footer {
    background: #2f2f2f;
    color: #e0e6ed;
    padding: 5rem;
    height: 9rem;
    margin-top: auto;
    width: 100%;
}

.panel {
    display: flex;
    flex-direction: column;
    max-width: 60rem;
    max-height: 0;
    padding: 0;
    border-radius: 8px;
    overflow-y: hidden;
    overflow-x: hidden;
    transition: 0.2s ease-out;
}

.panel.show {
    max-height: 15rem;
    padding: 1.5rem;
}


@media only screen and (max-width: 1650px) {
    .course-container {
        height: 75vh;
    }
}

@media only screen and (max-width: 1200px) {

    .course-infomation {
        max-width: min(30rem, 80vw);
    }

    #MainHead {
        font-size: 6rem;
    }

    #SubHead {
        font-size: 3rem;
    }
}

@media only screen and (max-width: 500px) {
    .course-infomation {
        max-width: min(30rem, 80vw);
    }

    #MainHead {
        font-size: 4rem;
    }

    #SubHead {
        font-size: 2rem;
    }
    #TMPdevtext {
        font-size: 2rem;
    }
}