body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1500px; /* Daha geniş bir maksimum genişlik ayarladık */
    margin: 40px auto; /* Üst ve alt boşlukları artırdık */
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    text-align: center;
}

h1 {
    margin-top: 20px;
    color: #4CAF50;
}

#taskModal, #taskManagerModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    max-width: 90%;
    overflow-y: auto; /* Taşmayı önlemek için eklendi */
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 500;
}

#timer, #clock {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

#history {
    margin-top: 20px;
    font-size: 18px;
    text-align: center;
    overflow-x: auto;
}

table {
    width: 100%;
    max-width: 100%;
    margin: 20px auto; 
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: center;
}

th {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #f5f5f5;
}

#message {
    display: none;
    margin-top: 20px;
    font-size: 18px;
    text-align: center;
}

.success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
}

.button-container, .button-container-horizontal, .task-input-container, .select-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    outline: none;
    color: #fff;
    background-color: #4CAF50;
    border: none;
    border-radius: 15px;
    box-shadow: 0 9px #999;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.button:hover {
    background-color: #3e8e41;
}

.button:active {
    background-color: #3e8e41;
    box-shadow: 0 5px #666;
    transform: translateY(4px);
}

.stop-button, .postpone-button {
    background-color: #f44336;
    border-radius: 15px;
}

.form-container-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-container-horizontal label {
    display: flex;
    align-items: center;
    font-size: 20px;
    margin: 10px 0;
}

.form-container-horizontal input[type="checkbox"] {
    width: 25px;
    height: 25px;
    margin-right: 10px;
}

.modal-title {
    text-align: center;
}

.select-container label {
    font-size: 18px;
}

.select-container select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
}

#taskList {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

#taskList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#taskList li button {
    background-color: #f44336;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

#taskList li button:hover {
    background-color: #d32f2f;
}

#taskList li button:active {
    background-color: #b71c1c;
}

.task-input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
    flex: 1;
    margin-right: 10px;
}

/* Task list styles */
.task-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.task-item {
    background: #f2f2f2;
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 10px;
        margin: 0 auto; /* Mobilde üst ve alt boşlukları kaldırdık */
    }

    #taskModal, #taskManagerModal {
        width: 90%;
        height: auto;
        max-height: 90%;
        overflow-y: auto;
    }

    .button-container-horizontal {
        flex-direction: column;
        gap: 20px;
    }

    .form-container-horizontal label {
        font-size: 18px;
    }

    .select-container {
        flex-direction: column;
    }

    .select-container label {
        margin-bottom: 10px;
    }

    #taskList li {
        flex-direction: column;
    }

    .task-input-container {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
        margin: 0 auto; /* Mobilde üst ve alt boşlukları kaldırdık */
    }
    
    h1 {
        font-size: 1.5em;
    }
}
