/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #FFFFFF;
    padding: 20px;
}

/* Header */
header {
    background-color: #1E1E1E;
    padding: 10px;
    text-align: center;
}

.logo {
    width: 100px;
    height: auto;
}

/* Cover Photo with Overlay */
.cover-photo {
    position: relative;
    height: 200px;
    background: url('cover-photo.jpg') no-repeat center center/cover;
    border-radius: 10px;
    margin: 10px 0;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cover-overlay h2 {
    font-size: 1.8em;
    color: #FFFFFF;
}

/* User Info */
.user-info {
    text-align: center;
    margin: 20px 0;
}

.user-photo img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ffffff;
    margin-bottom: 10px;
}

.user-name {
    font-size: 1.5em;
    margin: 10px 0;
}

.user-ranking {
    color: #BBBBBB;
}

/* Task List */
.task-list {
    margin-top: 20px;
}

.task-list h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

/* Task Header (Collapsible) */
.task-header {
    width: 100%;
    background-color: #1E1E1E;
    padding: 10px;
    text-align: left;
    font-size: 1.1em;
    color: #ffffff;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 5px;
}

.task-header:hover {
    background-color: #333333;
}

/* Task Body (Initially Hidden) */
.task-body {
    background-color: #1E1E1E;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: none; /* Initially hidden */
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
}

input[type="file"], textarea {
    background-color: #333333;
    color: #FFFFFF;
    border: none;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 10px;
}

button[type="submit"] {
    background-color: #ff5722;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #ff784e;
}

/* Media queries for responsive design */
@media (max-width: 600px) {
    .logo {
        width: 80px;
    }

    .user-photo img {
        width: 80px;
        height: 80px;
    }

    .cover-photo {
        height: 150px;
    }
}
