body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #70c9e4;
}

#main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
}

.app-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.774);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#fortune-container {
    border: 4px solid #2c3e50;
    padding: 30px;
    border-radius: 10px;
    background-color: #ecf0f1;
    text-align: center;
    max-width: 400px;
    flex: 1;
    transition: all 0.3s ease;
}

#fortune-text {
    font-size: 1.5em;
    font-style: italic;
    color: #34495e;
    margin: 0;
    transition: all 0.3s ease;
}

#fortune-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

button {
    padding: 10px 20px;
    background-color: #2980b9;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #1f618d;
}

#stopwatch-section {
    flex-direction: column;
    text-align: center;
}

#stopwatch-section h2 {
    font-family: "Georgia", serif;
    margin-top: 0;
    color: #2c3e50;
}

#stopwatch-display {
    font-size: 5em;
    font-weight: bold;
    color: #e74c3c;
    margin: 20px 0;
    font-family: "Courier New", Courier, monospace;
}

#stopwatch-controls {
    display: flex;
    gap: 20px;
}

#btn-start { background-color: #27ae60; }
#btn-start:hover { background-color: #2ecc71; }

#btn-stop { background-color: #e67e22; }
#btn-stop:hover { background-color: #d35400; }

#btn-reset { background-color: #7f8c8d; }
#btn-reset:hover { background-color: #606b6d; }

#todo-section {
    flex-direction: column;
    align-items: flex-start;
}

#todo-section h2 {
    font-family: "Georgia", serif;
    margin-top: 0;
    color: #2c3e50;
    align-self: center;
}

#todo-controls {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
}

#todo-input {
    flex: 1;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#btn-add-todo {
    background-color: #8e44ad;
}

#btn-add-todo:hover {
    background-color: #732d91;
}

#todo-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

#todo-list li {
    background-color: #f1f2f6;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 5px solid #8e44ad;
    font-size: 1.1em;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.task-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.task-content input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

li.completed span {
    text-decoration: line-through;
    color: #95a5a6;
}

.btn-delete {
    background-color: #e74c3c;
    padding: 8px 12px;
    font-size: 0.9em;
}

.btn-delete:hover {
    background-color: #c0392b;
}

footer {
    text-align: center;
    padding: 15px;
    background-color: #2c3e50;
    color: white;
}

#top-nav {
    width: 100%;
    display: flex;
    justify-content: flex-end; 
    padding: 20px 40px;
    box-sizing: border-box;
}

#portfolio-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.1em;
    padding: 8px 16px;
    border: 2px solid #2c3e50;
    border-radius: 5px;
    transition: all 0.3s ease;
}

#portfolio-link:hover {
    background-color: #2c3e50;
    color: white;
}