@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
:root{
    --text-color-1 : #fff;
    --bg-color-1: #090909;
    --bg-color-2: #1c1c1c;
    --bg-color-3: #2d2d2d;
    --main-color-1: #ff7337;
    --main-color-1-hover: #ff6523;
    --code-bg-color: #292929;
}


*{
    margin: 0;padding: 0;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-style: normal;
    color: var(--text-color-1);
    text-decoration: none;
    transition: 0.2s ease;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-size: 1.1rem;

}

body{
    color: var(--text-color-1);
    background-color: var(--bg-color-1);
    padding: 12vh 5vw;
}


/* Navbar */
.navbar{
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    justify-content: space-between;
    align-items: center;
    width: 100vw;
    padding: 4px 10px;
    box-shadow: 0px 0px 10px #000;
    background-color: var(--bg-color-1);
    z-index: 99;
}

.navbar #logo{
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    box-shadow: 0px 0px 10px #000;
    color: var(--main-color-1);
    display: inline-block;
    font-size: 1.2rem;
    margin: 0 10px;
}

.navbar #logo:hover{
    color: var(--main-color-1-hover);
}
.navbar ul{
    width: 50vw;
    float: right;
    list-style: none;
    display: flex;
    float: right;
    justify-content: space-around;
    margin-right: 10vw;
}
.navbar ul li a:hover{
    color: var(--main-color-1);
}
.title{
  padding-left: 10px;
  border-left: 5px solid var(--main-color-1);
  margin-bottom: 40px;
  font-size: 2rem;
}

.chapter-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 90vw;
    gap: 10px;
}

.module{
    background-color: var(--text-color-1);
    color: var(--bg-color-1);
    display: flex;
    border: none;
    height: 70px;
    cursor: pointer;
}

.module:hover{
    opacity: 0.85;
}

.module .num{
    width: 20%;
    background-color: var(--main-color-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.module .name{
    color: inherit;
    display: flex;
    align-items: center;
    padding: 10px;
    font-size: 1rem;
    width: 80%;
}

@media only screen and (max-width: 720px) {
    body{
        padding: 8vh 5vw;
    }
    .chapter-grid{
        background-color: #000;
        grid-template-columns: repeat(1, 1fr);
    }
    .navbar{
        height: 7vh;
    }
    .navbar ul{
        display: none;
    }
}