
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

nav#navbar {
    background: #333;
    color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 20px;
}

nav#navbar a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    transition: background 0.3s;
}

nav#navbar a:hover {
    background: #575757;
    border-radius: 5px;
}


form {
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form label, form input, form select, form button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

form input, form select, form button {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}


button {
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #575757;
}


#purchased-courses-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.course {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 200px;
}

.course img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.course button {
    margin-top: 10px;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: center;
}

@media (max-width: 768px) {
    table, th, td {
        display: block;
        width: 100%;
    }

    th, td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    th::before, td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 10px;
        font-weight: bold;
        text-align: left;
    }

    th {
        background: #333;
        color: #fff;
        text-align: left;
    }
}


#course-details {
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#course-details img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}


.login-container {
    max-width: 400px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#signup-form, #login-form {
    display: flex;
    flex-direction: column;
}


@media (max-width: 600px) {
    nav#navbar {
        flex-direction: column;
    }

    .course, .login-container, #course-details, form {
        width: 100%;
        margin: 10px 0;
    }
}




/* PORTAL */

