@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

html {
    scroll-behavior: smooth;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    margin: 0px;
    font-size: large;
    color: #303030;
    background-color: rgb(242, 242, 242);
}

a {
    color: #303030;
    transition: 0.1s;
}

a:hover {
    opacity: 80%;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-2px);
}

body {
    margin: 0px;
    padding: 0px;
    width: 100vw;
}

div.center {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

div.panel {
    height: 300px;
    width: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 0px 4px #00000010;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

div.container {
    padding: 50px 40px;
    width: calc(100vw - 380px);
}

nav.main {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 220px;
    background-color: white;
    box-shadow: 0px 0px 2px #00000010;
    padding: 40px 40px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    overflow-y: scroll;
    overflow-x: hidden;
}

div.inactive-course-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background-color: orange;
    box-shadow: 0px 0px 2px #00000010;
    padding: 20px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    text-align: center;
}

h1 {
    margin: 0px;
    padding: 0px;
    font-size: x-large;
    font-weight: 700;
}

img.logo {
    height: 100px;
}

img.logo-nav {
    height: 60px;
}

input.username {
    width: 300px;
    height: 30px;
    font-size: 2em;
}

div.spacing-50vw {
    width: 50vw;
}

div.card-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 20px;
}

div.card-display a.card {
    width: calc(100% - 40px);
    height: 110px;
    padding: 20px;
    flex-grow: 1;
    background-color: white;
    border-radius: 10px;
    /* box-shadow: 0px 0px 2px #00000010; */
    border: rgba(0, 0, 0, 0.1) 1px solid;
    transition: 0.1s;
    text-decoration: none;
    color: #303030;
    overflow: hidden;
}

div.card-display .inactive-card {
    background-color: lightgray !important;
}

a.back-button {
    text-decoration: none;
    font-size: small;
    color: gray;
    transition: 0.1s;
    display: flex;
    align-items: center;
    gap: 2px;
}

a.back-button:hover {
    opacity: 50%;
}

a.card .course-id {
    font-size: medium;
    font-weight: 400;
    color: gray;
}

a.card .content {
    font-size: large;
    font-weight: 700;
}

.small {
    font-size: medium;
    font-weight: 400;
    color: gray;
}

.mini {
    font-size: small;
    font-weight: 400;
    color: gray;
}

.section-title {
    font-size: medium;
    font-weight: 700;
}

.description {
    width: 50%;
    font-size: medium;
    font-weight: 400;
}

div.assignment {
    margin: 10px 0px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

div.assignment a.item {
    width: 100%;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 0px 2px #00000010;
    transition: 0.1s;
    text-decoration: none;
    color: #303030;
    font-size: medium;
    display: flex;
    flex-direction: row;
}

a.item div.col {
    flex-grow: 1;
}

div.assignment a.item:hover {
    opacity: 50%;
    cursor: pointer;
}

table {
    border-collapse: collapse;
    text-align: left;
    font-size: medium;
}

th {
    border-bottom: 2px solid gray;
    padding-top: 0px;
    padding-bottom: 5px;
}

tr {
    border-bottom: 1px solid gray;
    font-weight: 400;
}

td {
    padding-top: 20px;
    padding-bottom: 20px;
}

a.submit-button {
    text-decoration: none;
    font-weight: 700;
    color: white;
    background-color: rgb(111, 80, 0);
    box-shadow: 0px 0px 2px #00000010;
    padding: 5px 10px;
    margin: 0px 10px;
    border-radius: 20px;
    font-size: small;
}

div.divider {
    height: 60px;
}

.team-list {
    font-size: medium;
}

.team-list .item {
    display: block;
    text-decoration: none;
    font-size: small;
    padding: 10px 20px;
    background-color: white;
    border-radius: 5px;
    border-left: grey 5px solid;
    border-right:rgba(0, 0, 0, 0.1) 0.5px solid;
    border-top:rgba(0, 0, 0, 0.1) 0.5px solid;
    border-bottom:rgba(0, 0, 0, 0.1) 0.5px solid;
    transition: 0.1s;
}

.team-list .item:hover {
    transform: translateY(-2px);
    cursor: pointer;
}

.instructor {
    border-left: orange 5px solid !important;
}

nav div.nav-content {
    width: 220px;
    margin: 10px;
    margin-top: 40px;
}

nav div.nav-buttons {
    width: 220px;
}

.course-title {
    font-size: x-large;
    font-weight: 700;
    margin-bottom: 10px;
}

.course-subtitle {
    font-size: medium;
    font-weight: 400;
    color: gray;
}

a.menu-button {
    color: #303030;
    text-decoration: none;
    text-align: left;
    padding: 10px 5px;
    font-size: 85%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0px;
    border-radius: 5px;
}

a.menu-button:hover {
    background-color: lightgray;
}

span.menu-button-icon { 
    font-size: small;
    background-color: #303030;
    color: white;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

div.feedback {
    font-size: small;
    color: gray;
}

div.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 3;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
}

div.overlay-modal {
    position: relative;
    cursor: default;
    width: 500px;
    /* height: auto; */
    background-color: white;
    box-shadow: 0px 0px 2px #b0b0b0;
    /* border: rgba(0, 0, 0, 0.1) 1px solid; */
    /* border-radius: 10px; */
    z-index: 4;
}

div.overlay-modal div.overlay-header {
    font-size: medium;
    font-weight: 700;
    width: calc(100% - 40px);
    padding: 15px 20px;
    text-align: left;
    margin: 0px;
    background-color: #303030;
    color: white;
    /* border-radius: 10px 10px 0px 0px; */
}

div.overlay-modal div.overlay-content {
    width: calc(100% - 40px);
    padding: 20px 20px;
    overflow: scroll;
    max-height: 400px;
    /* display: flex;
    flex-direction: column;
    justify-content: center; */
}

div.overlay-modal div.overlay-footer {
    font-size: medium;
    font-weight: 700;
    width: calc(100% - 40px);
    padding: 10px 20px;
    text-align: left;
    margin: 0px;
    background-color: #eeeeee;
    /* border-radius: 0px 0px 10px 10px; */
    display: flex;
    flex-direction: row;
    justify-content: right;
    gap: 10px;
}

div.overlay-footer button {
    border-radius: 0px;
    width: 90px;
    height: 30px;
    border: 1px solid rgb(195, 195, 195);
    cursor: pointer;
    font-size: small;
    font-family: inherit;
}

table.narrow-table {
    width: 100%;
}

table.narrow-table td {
    padding-top: 10px;
    padding-bottom: 10px;
}

select {
    border: 2px solid #ddd;
    background: #eee;
    padding: 10px;
    transition: 0.4s;
    font-size: medium;
    font-family: 'Figtree', sans-serif;
}

input[type="number"] {
    width: 40px;
    font-size: medium;
    font-family: 'Figtree', sans-serif;
}

input[type="text"] {
    font-size: medium;
    font-family: 'Figtree', sans-serif;
}

input[type="file"] {
    display: none;
}

label[for="file"] {
    height: 100px;
    background-color: gainsboro;
    border: 1px solid #aaa;
    color: #777;
    border-style: dashed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: medium;
    cursor: pointer;
}

label[for="file"]:hover {
    background-color: lightgray;
}

span.file-upload-icon {
    font-size: 48px;
}

span.file-upload-text {
    margin-top: 4px;
    font-size: medium;
    color: #777;
    text-align: center;
}

button:hover:enabled {
    opacity: 50%;
}

button[type="submit"] {
    background-color: rgb(111, 80, 0);
    color: white;
}

button[type="submit"]:disabled {
    background-color: gainsboro;
    color: white;
    cursor: not-allowed;
}

div#file-list {
    height: auto;
    width: 500px;
    text-align: left;
    font-size: small;
    margin-top: 20px;
}

span.status-chip {
    color: white;
    font-size: small;
    padding: 2px 8px;
    border-radius: 10px;
}

div.status-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile {
    display: none;
}



@media screen and (max-width: 800px) {
    div.panel {
        width: calc(100vw - 80px);
        padding: 20px;
    }

    div.overlay-modal {
        width: calc(100vw - 40px);
    }

    div.panel .logo {
        width: calc(100vw - 80px);
        height: auto;
        padding: 20px;
    }

    div.panel small {
        text-align: center;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    nav.main {
        top: calc(100dvh - 60px);
        left: 0;
        width: 100vw;
        overflow-y: hidden;
        background-color: orange;
        padding: 0px;
        margin: 0px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    nav.main img.logo-nav, .course-title, .course-subtitle {
        display: none;
    }

    nav div.nav-content {
        display: none;
    }

    .nav-buttons {
        width: 100vw !important;
        margin: 0px;
        padding: 0px;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
    }

    a.menu-button {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0px;
        width: 100px;
        text-align: center;
    }

    span.menu-button-text {
        font-size: x-small;
        text-align: center;
    }

    a.menu-button span.material-icons {
        font-size: 24px;
        color: #303030;
        background-color: transparent;
    }

    div.container {
        padding: 50px 20px;
        width: calc(100vw - 40px);
    }

    div.card-display {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        column-gap: 20px;
        row-gap: 20px;
    }

    div.inactive-course-banner {
        font-size: small;
        height: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0px;
    }

    .mobile {
        display: block;
    }

    .nav-buttons div.small {
        font-size: x-small;
        text-align: center;
    }

    .description {
        width: 100%;
    }

    div.status-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    div.status-container span.status-chip {
        font-size: x-small;
        padding: 2px 4px;
    }
}

@media screen and (min-width: 800px) and (max-width: 1200px) {
    div.card-display {
        grid-template-columns: repeat(1, 1fr);
    }

    .description {
        width: 100%;
    }
}

@media screen and (min-width: 1200px) and (max-width: 1400px) {
    div.card-display {
        grid-template-columns: repeat(2, 1fr);
    }
}
