:root{
    --footerHeight: 200px;
}

*{
    box-sizing: border-box;
}

body{
    display: flex;
}

#side-deco{
    position: relative;
    width: 50%;
    height: 100vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

#side-deco-bg{
    width: 100%;
    height: 100vh;
    object-fit: cover;
    /* animation: kenburns 360s infinite; */
}

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(2) translate(0, 0);
    }
}

#deco-shadow{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(26, 139, 179, 0.6); */
    background: linear-gradient(rgba(3, 38, 51, 0.3), rgba(2, 22, 29, 0.76));
    /* background-color: rgba(2, 22, 29, 0.76); */
}

#back-btn{
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    padding: 1em;
    color: var(--white);
    cursor: pointer;
}

#back-btn:hover{
    text-decoration: none;
}

#back-btn span:last-child{
    margin-bottom: 6px;
}

#course-features{
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    padding: calc(var(--generalSpacing) * 2);
}

#logo-epap{
    width: 150px;
    height: auto;
    margin-bottom: 1em;
}

#course-name{
    font-size: 2.5em;
    font-weight: bold;
    color: var(--white);
    line-height: 1;
}

#course-mode{
    font-size: 1.5em;
    color: var(--white);
    margin-bottom: calc(var(--generalSpacing) / 2);
}

#course-description{
    font-size: 1.2em;
    color: var(--white);
}

#side-form{
    width: 50%;
    height: 100vh;
    overflow-y: scroll;
    scrollbar-width: thin;
}

main{
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--footerHeight));
    padding: calc(var(--generalSpacing) * 2) calc(var(--generalSpacing) * 3);
}

footer{
    display: flex;
    justify-content: center;
    align-items: center;
    height: var(--footerHeight);
    font-size: small;
    text-align: center;
    color: var(--white);
    padding: 0 calc(var(--generalSpacing) * 2);
    margin-top: auto;
    background-color: var(--governmentBlue);
}

#logo-ansec{
    height: 125px;
}

#image-container{
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: calc(var(--generalSpacing) / 4);
    border: dashed 1px var(--grayLight);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 85%;
    margin-top: calc(var(--generalSpacing) / 2);
    cursor: pointer;
}

.uk-modal-title{
    font-size: var(--large);
    font-weight: bold;
}

@media screen and (max-width: 768px){
    body{
        flex-direction: column;
    }

    main{
        padding: calc(var(--generalSpacing) * 1);
    }

    #side-deco, #side-form{
        width: 100%;
    }

    #side-deco{
        height: 25vh;
    }

    #side-deco-bg{
        height: 25vh;
    }

    #course-features{
        padding: calc(var(--generalSpacing) / 2);
        text-align: right;
    }

    #logo-epap{
        width: auto;
        height: 100px;
        margin-bottom: 0.5em;
    }
    
    #course-name{
        font-size: 1.5em;
        font-weight: bold;
        color: var(--white);
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        -webkit-box-orient: vertical;
    }

    #course-mode{
        font-size: 1em;
        color: var(--white);
        margin-bottom: 0;
    }
    
    #course-description{
        display: none;
    }

    #side-form{
        height: 85vh;
    }
}
