Projekts490130/styles.css

137 lines
2.7 KiB
CSS

/* styles.css */
body {
background-color: #333; /* Dark background color */
color: white; /* Text color */
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
header {
text-align: center;
padding: 20px;
background-color: #444; /* Slightly lighter than the background */
border-bottom: 1px solid #555;
}
.container {
max-width: 400px;
margin: 0 auto;
padding: 20px;
background-color: #444;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.input-section {
display: flex;
align-items: center;
margin-bottom: 20px;
}
#todo-input {
flex-grow: 1;
padding: 10px;
margin-right: 10px;
border: 1px solid #ccc;
border-radius: 4px;
background-color: #555; /* Input background */
color: white;
}
#add-button, #random-task-button {
padding: 10px 20px;
background-color: #28a745; /* Button background */
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
margin-right: 5px;
}
#add-button {
background-color: #007bff; /* Blue background for Add button */
}
#random-task-button {
background-color: #28a745; /* Green background for Show Random Task button */
}
#add-button:hover {
background-color: #0056b3; /* Darker blue on hover for Add button */
}
#random-task-button:hover {
background-color: #218838; /* Darker green on hover for Show Random Task button */
}
.delete-button {
margin-left: 10px;
color: red;
cursor: pointer;
background: none;
border: none;
padding: 5px 10px;
border-radius: 4px;
background-color: #dc3545;
color: white;
}
.delete-button:hover {
background-color: #c82333;
}
.popup {
display: none; /* Initially hidden */
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.4);
}
.popup-content {
background-color: #fefefe;
margin: 15% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
color: black; /* Ensure text is visible */
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
.list-section {
margin-top: 20px;
}
ul#todo-list {
list-style-type: none;
padding: 0;
}
ul#todo-list li {
background-color: #555;
padding: 10px;
margin-bottom: 10px;
border-radius: 4px;
display: flex;
justify-content: space-between;
align-items: center;
}