/* GENERAL*/

html, body {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: white;
}

p {
    font-family: 'Work Sans';
    font-weight: 400;
    font-size: 15px;
    line-height: 21px;
}


/* NAVBAR */

nav {
    display: flex;
    justify-content: space-between; /* logo left, links right */
    align-items: center;             /* vertically centered */
    background-color: rgb(133,88,208);
    color:white;
    width: 100vw; /* ensures full width */
    padding: 1rem 0;
    position: relative;
}

#codify-edu-logo {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: rgb(255, 255, 255);
    padding-left: 2rem;
}

#navbar-links {
    list-style: none;   /* removes bullets */
    margin: 0;          /* reset default */
    padding: 0;         /* reset default */
    display: flex;      /* makes links horizontal */
    flex-wrap: wrap;
}

nav ul li a {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    padding-right: 2rem;
    display: block;
    padding: 0.5rem 1rem;
}

/* HAMBURGER MENU */
.hamburger-toggle {
    display: none;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 2rem;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger-toggle:checked + .hamburger-menu span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-toggle:checked + .hamburger-menu span:nth-child(2) {
    opacity: 0;
}

.hamburger-toggle:checked + .hamburger-menu span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* COURSE TITLE CONTAINER*/

#contact-title {
    font-family: 'Roboto', sans-serif;   
    font-weight: 100;
    font-size: 36px;
    color: rgb(133,88,208);
}

#contact-title-container {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

hr {
    border-color: rgb(241,241,241);
    width: 100%;
    max-width: 90rem;
    margin: 1rem 0;
}

#contact-text {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* MEDIA QUERIES FOR RESPONSIVE DESIGN */

/* Tablet styles */
@media screen and (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    #navbar-links-container {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        background-color: rgb(133, 88, 208);
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 8px 8px;
    }
    
    .hamburger-toggle:checked ~ #navbar-links-container {
        display: block;
    }
    
    #navbar-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 0;
    }
    
    nav ul li a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        display: block;
    }
    
    #codify-edu-logo {
        padding-left: 1rem;
        font-size: 16px;
    }
    
    #contact-title-container,
    #contact-text {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #contact-title {
        font-size: 28px;
    }
}

/* Mobile styles */
@media screen and (max-width: 480px) {
    .hamburger-menu {
        display: flex;
        margin-right: 1rem;
    }
    
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
    }
    
    #navbar-links-container {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        background-color: rgb(133, 88, 208);
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 8px 8px;
    }
    
    .hamburger-toggle:checked ~ #navbar-links-container {
        display: block;
    }
    
    #navbar-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 0;
    }
    
    nav ul li a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        display: block;
    }
    
    #codify-edu-logo {
        padding-left: 1rem;
        font-size: 16px;
    }
    
    #contact-title {
        font-size: 24px;
        text-align: center;
    }
    
    #contact-text {
        text-align: center;
    }
}
