/* --Fonts-- */
@font-face {
    font-family: silka;
    src: url(../fonts/Silka-Light.otf);
    font-weight: 300;
}

@font-face {
    font-family: silka;
    src: url(../fonts/Silka-LightItalic.otf);
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: silka;
    src: url(../fonts/Silka-Regular.otf);
}

@font-face {
    font-family: silka;
    src: url(../fonts/Silka-Medium.otf);
    font-weight: 600;
}

@font-face {
    font-family: silka;
    src: url(../fonts/Silka-Bold.otf);
    font-weight: 700;
}


/* --Foundation-- */
html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    font-family: silka;
    font-style: normal;
    font-size: 16px;
    color: #FFFFFF;
    box-sizing: border-box;
    background-color: #282854;
    box-sizing: border-box;
}

#wrapper {
    position: relative;
    padding: 30% 10%;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

img {
    width: 100%;
}

code {
    background: rgba(30, 30, 65, 0.8);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    color: #fc9fff;
    font-size: 0.95rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 700;
}

h1 {
    font-weight: 600;
    min-height: 50px;
    display: flex;
    align-items: center;
}

h2 {
    font-size: 1.75em;
    margin: 15px 0 20px 0;
}

h3 {
    font-size: 1.5em;
    margin: 15px 0 20px 0;
    font-weight: 700;
    line-height: 1;
    opacity: .9;
}

h4 {
    font-size: 1.3em;
    margin-bottom: 5px;
}

h5 {
    margin-bottom: 20px;
    font-weight: 600;
}

h6 {
    margin-bottom: 20px;
}

p {
    line-height: 1.5;
    opacity: .8;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color .2s, transform .3s;
    font-weight: 400;
}

a:hover {
    color: #9ecfff;
}

a.list-link {
    font-weight: 700;
    text-decoration: underline;
}

strong {
    font-weight: 600;
}

button,
.btn {
    padding: 15px 30px;
    border-radius: 20px;
    background-color: #282854;
    border: 1px solid #ffffff;
    background-size: 300% 100%;
    color: #ffffff;
    font-family: silka;
    font-weight: 700;
    font-size: 1em;
    margin: 20px 0;
    cursor: pointer;
    transition: all .3s;
    display: inline-block;
}

button span,
.btn span {
    display: inline-block;
    transition: transform .3s;
}

button:hover span,
.btn:hover span {
    transform: rotate(90deg)
}

button:hover,
.btn:hover {
    background-color: #9ecfff;
    color: rgb(30, 30, 65);
    border: 1px solid #9ecfff;
}

.btn-secondary {
    position: relative;
    margin: 20px 0 0 0;
    padding: 0;
    background: transparent;
    color: #ffffff;
    opacity: .9;
    border-radius: 0;
    font-weight: 600;
    border: none;
    display: inline-block;
}

.btn-secondary::after {
    content: '';
    border-bottom: 1px solid #9ecfff;
    width: 0;
    position: absolute;
    bottom: -5px;
    left: 0;
    transition: all .2s;
}

.btn-secondary:hover {
    background-color: transparent;
    color: #9ecfff;
    border: none;
}

.btn-secondary:hover span {
    transform: translateX(5px);
}

.btn-secondary:hover::after {
    width: 104%;
}

.btn-tertiary {
    border: 1px solid #282854;
    margin-bottom: 0;
}

ul {
    font-size: .9em;
}

ul li {
    margin-bottom: 15px;
    line-height: 1.5;
}

ul li::before {
    display: inline-block;
    content: '\2600';
    width: 20px;
}

ul li span {
    display: block;
    margin-top: 5px;
    margin-left: 20px;
    font-weight: 700;
    font-size: .85em;
    letter-spacing: 1px;
    text-transform: uppercase;
}

ul.list-columns li span {
    display: inline;
    color: #fc9fff;
}

section {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding-top: 25%;
}

section:first-of-type {
    padding-top: inherit;
}

@media only screen and (min-width: 1024px) {
    body {
        font-size: 16px;
    }

    #wrapper {
        padding: 15%;
    }

    h2 {
        font-size: 3.75vw;
    }

    ul.list-columns {
        column-count: 2;
        column-gap: 50px;
    }
}

@media only screen and (min-width: 1500px) {
    body {
        font-size: 18px;
    }

    #wrapper {
        padding: 10% 15%;
    }
}


/* --Heading & Navigation-- */
header {
    box-sizing: border-box;
    position: fixed;
    top: 25px;
    width: 80%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    z-index: 998;
    font-size: 1.1em;
    border-radius: 20px;
}

#header-blur {
    position: fixed;
    top: 25px;
    height: 70px;
    padding: 10px 30px;
    width: 80%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 996;
    background-color: rgba(55, 55, 107, 0.9);
    border-radius: 20px;
    box-sizing: border-box;
}

/*Mobile menu button animation*/
.mobile-nav-input {
    display: none;
}

.menu--1 label {
    display: block;
    cursor: pointer;
    position: fixed;
    width: 25vw;
    height: 25vw;
    max-width: 80px;
    max-height: 80px;
    top: 20px;
    right: 10%;
    z-index: 998;
    padding: 0 10px;
}

.menu--1 path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    --length: 24;
    --offset: -38;
    stroke-dasharray: var(--length) var(--total-length);
    stroke-dashoffset: var(--offset);
    transition: all .8s cubic-bezier(.645, .045, .355, 1);
}

.menu--1 circle {
    fill: #fff3;
    opacity: 0;
}

.menu--1 label:hover circle {
    opacity: 1;
}

.cross input:checked+svg .line--1,
.cross input:checked+svg .line--3 {
    --length: 22.627416998;
}

.cross input:checked+svg .line--2 {
    --length: 0;
}

.back input:checked+svg .line--1,
.back input:checked+svg .line--3 {
    --length: 8.602325267;
}


.menu--1 .line--1,
.menu--1 .line--3 {
    --total-length: 126.64183044433594;
}

.menu--1 .line--2 {
    --total-length: 70;
}

.menu--1 input:checked+svg .line--1,
.menu--1 input:checked+svg .line--3 {
    --offset: -94.1149185097;
}

.menu--1 input:checked+svg .line--2 {
    --offset: -50;
}

nav a {
    margin-right: 0;
    margin-bottom: 35px;
}

nav a:last-of-type {
    margin-right: 0;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    right: -110%;
    flex-direction: column;
    z-index: 997;
    height: 100vh;
    width: 100vw;
    background-color: #191A1E;
    transition: right 1s;
    font-size: 2em;
    opacity: 1;
    color: white;
    font-weight: 600;
    min-height: 50px;
}

.show-nav-mob {
    right: 0;
}

.overflow-mob {
    width: 110%;
}

@media screen and (min-width: 1024px) {
    header {
        width: 70%
    }

    #header-blur {
        width: 70%;
    }

    .menu--1 {
        display: none;
    }

    nav {
        position: fixed;
        top: 25px;
        right: 15%;
        width: 70%;
        padding: 10px 30px;
        background-color: transparent;
        z-index: 999;
        height: auto;
        width: auto;
        flex-direction: row;
        font-size: 1em;
    }

    .show-nav-mob {
        right: 15%;
    }

    nav a {
        margin-right: 35px;
        margin-bottom: 0;
    }

    nav a:last-of-type {
        margin-right: 0;
    }

    .overflow-mob {
        width: 40%;
    }
}

.contact-btn {
    position: relative;
    top: -3px;
    width: 50px !important;
    height: 50px;
    z-index: 20;
    background: url("../img/ico-plane-light.svg") -36px 18px no-repeat;
    border-radius: 25px;
    transition: all .25s ease-in-out;
}

.contact-btn:hover {
    width: 50px !important;
    height: 50px;
    background: url("../img/ico-plane-light.svg") 14px -32px no-repeat;
}


/* --Hero Section-- */
#hero {
    position: relative;
    text-align: center;
}

#hero h3 span {
    font-weight: 700;
    color: #fc9fff;
    font-size: 1.1em;
}

#hero .btn {
    margin: 50px 0;
}

#current-module {
    position: relative;
    background-color: rgba(30, 30, 65, .8);
    text-align: left;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#current-module>div {
    padding: 30px;
}

#current-module h5 span {
    color: #BFFF0C;
}

#current-module .btn-secondary {
    margin: 20px 0 0 0;
}

#current-module aside {
    background-color: #BFFF0C;
    color: rgb(30, 30, 65);
    padding: 30px;
    box-sizing: border-box;
    border-radius: 20px;
    align-items: stretch;
}

#current-module img {
    position: absolute;
    bottom: -300px;
    left: 20%;
    width: 40%;
}

@media screen and (min-width: 800px) {
    #current-module {
        flex-direction: row;
    }

    #current-module div {
        width: 65%;
    }

    #current-module aside {
        width: 30%;
    }
}


/* --Modules-- */
#module-wrapper {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(1, 1fr);
}

#module-wrapper article {
    position: relative;
    outline: 1px solid #ffffff;
    border-radius: 20px;
    padding: 30px;
    background-color: #282854;
    transition: transform .3s;
    cursor: pointer;
    overflow: hidden;
    box-sizing: border-box;
}

#module-wrapper article.locked {
    color: rgba(255, 255, 255, .5);
    outline: 1px solid rgba(255, 255, 255, .5);
    pointer-events: none;
}

#module-wrapper article.locked h4,
#module-wrapper article.locked .btn {
    opacity: .5;
}

#module-wrapper article:hover {
    transform: scale(1.075);
    outline: 2px solid #ffffff;
    color: #ffffff;
}

#module-wrapper article:hover .btn-secondary {
    background-color: transparent;
    color: #9ecfff;
    border: none;
}

#module-wrapper article:hover .btn-secondary span {
    transform: translateX(5px);
}

#module-wrapper article:hover .btn-secondary::after {
    width: 104%;
}

#module-wrapper article h4 {
    color: #BFFF0C
}

#module-wrapper article img {
    width: 30%;
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    right: -5%;
    opacity: .15;
}

@media screen and (min-width: 768px) {
    #module-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media screen and (min-width: 1150px) {
    #module-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* --Decorative Body Images-- */
.body-code {
    position: absolute;
    z-index: -1;
    display: none;
}

.body-blob {
    position: absolute;
    display: none;
}

.single-blob {
    position: absolute;
    display: none;
}

@media only screen and (min-width: 768px) {
    .body-code {
        display: block;
        width: 80%;
        opacity: .3;
    }

    .body-blob {
        display: block;
        width: 40%;
    }

    .single-blob {
        display: block;
        width: 5%;
    }

    #code-1 {
        top: 5%;
        left: -20%;
    }

    #code-2 {
        bottom: 0;
        right: -10%;
        opacity: .3;
    }

    #purp-blob-1 {
        right: -15%;
        top: -1%;
    }

    #purp-blob-2 {
        top: 90%;
        right: 0;
    }

    #purp-blob-3 {
        top: -1%;
        left: -2%;
    }

    #single-blob-1 {
        top: 20%;
        left: -2%;
    }
}

@media only screen and (min-width: 1024px) {
    .body-code {
        width: 60%;
    }

    .body-blob {
        width: 30%;
    }

    .single-blob {
        width: 5%;
    }

    #code-1 {
        top: 5%;
        left: -2%;
    }

    #code-2 {
        bottom: 0;
        right: -10%;
    }

    #purp-blob-1 {
        right: -10%;
        top: -2%;
    }

    #purp-blob-2 {
        top: 80%;
    }

    #purp-blob-3 {
        top: -1%;
        left: -2%;
    }
}


/* --Module Page-- */
#course-content {
    padding-top: 10%;
}

#course-content article {
    margin-bottom: 50px;
}

#course-content h4 {
    margin-bottom: 20px;
}

#course-content p {
    margin-bottom: 20px;
}

#course-content p a {
    font-weight: 700;
    text-decoration: underline;
}

#course-content ul,
#projects ul {
    opacity: .8;
    margin-left: 20px;
}

#course-content iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 20px;
}

#module-assignments {
    position: relative;
    background-color: rgba(30, 30, 65, .8);
    text-align: left;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    margin-top: 10%;
}

#module-assignments .assignment-block {
    border: 1px solid #ffffff;
    padding: 30px;
    border-radius: 20px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
}

#module-assignments .assignment-block div:first-of-type {
    margin-right: 5%;
}

#module-assignments .assignment-block div:first-of-type .due-date {
    text-transform: uppercase;
    margin-bottom: 15px;
    white-space: nowrap;
}

#module-assignments .assignment-block div:first-of-type .due-date span {
    display: block;
    font-size: 2em;
    font-weight: 700;
    line-height: 1.25;
    color: #BFFF0C;
}

#module-assignments .assignment-block div:last-of-type h3 {
    font-weight: 700;
    margin-bottom: 15px;
}

@media only screen and (min-width: 800px) {
    #module-assignments .assignment-block {
        flex-direction: row;
    }

    #module-assignments .assignment-block div:first-of-type .due-date {
        margin-bottom: 0;
    }
}


/* -- Projects Page -- */
#projects article {
    margin-top: 5%;
    position: relative;
    background-color: rgba(30, 30, 65, .8);
    text-align: left;
    border-radius: 20px;
    padding: 30px;
}

#projects article h4 {
    margin-bottom: 20px;
}

#projects p {
    margin-bottom: 20px;
}


/* -- Resources Page -- */
#resources article {
    margin-top: 5%;
}

#resources article h4 {
    margin-bottom: 20px;
}

#resources article p {
    margin-top: 5px;
    margin-bottom: 20px;
}

#resources article a {
    font-weight: 700;
    text-decoration: underline;
    opacity: .8;
}