/* Google fonts = Lora */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@1,500&family=Open+Sans:wght@400;700&family=Playfair+Display:wght@500&display=swap');

/* Set Global Scope Variables for some properties that i'm gonna use it continuously */
:root {
    --main-background-color: #333333;
    --border-radius-main-value: 20px;
    --border-radius-for-buttons: 10px;
}

/* Start Global Rules To All To Do List Website */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

/* Give All Elements Font Family Lora and Sans-Serif as Alt Font To All Website Pages */
body {
    font-family: Lora, sans-serif;
    background-color: var(--main-background-color);
}

/* Start index.html page css rules */
/* Targets the main container inside index.html page and set below css rules to it */
.main-container {
    height: 100vh;
    position: relative;
    padding: 10px;
}

/* Targets the inside container itself and set below css rules to it */
.inside-container {
    width: 300px;
    padding: 20px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: #f0f0f0;
    border-radius: var(--border-radius-main-value);
    box-shadow: 0 0 20px #000000 inset;
}

/* Targets the img inside the inside container and set below css rules to it */
.main-container .inside-container img {
    border-radius: var(--border-radius-main-value);
    max-width: 100%;
}

/* Targets The h2 inside the inside container and set below css rules to it */
.main-container .inside-container h2 {
    padding-bottom: 10px;
}

/* Targets the P inside the inside container and set below css rules to it */
.main-container .inside-container p {
    padding: 10px 0;
}

/* Targets the Start button and set below css rules to it */
.start {
    width: 100px;
    height: 30px;
    position: relative;
    right: 15px;
    bottom: -10px;
    background-color: var(--main-background-color);
    color: #ffffff;
    border-radius: var(--border-radius-for-buttons);
    text-transform: uppercase;
    box-shadow: 0 0 20px #41ead4 inset;
    cursor: pointer;
    letter-spacing: 2.5px;
}

/* Targets the Exit button and set below css rules to it */
.close {
    width: 100px;
    height: 30px;
    position: relative;
    left: 15px;
    bottom: -10px;
    background-color: var(--main-background-color);
    color: #ffffff;
    border-radius: var(--border-radius-for-buttons);
    text-transform: uppercase;
    box-shadow: 0 0 20px #ff206e inset;
    cursor: pointer;
    margin-bottom: 10px;
    letter-spacing: 2.5px;
}

/* Start Media Rules to index.html page */
/* Set simple media rules till screens size: max-width = 530px */
@media screen and (max-width: 530px) {
    .inside-container {
        width: 200px;
    }

    .main-container .inside-container p {
        font-size: 11px;
    }

    .main-container .inside-container h2 {
        font-size: 15px;
    }

    .start,
    .close {
        width: 60px;
        font-size: 10px;
        margin-bottom: 5px;
    }
}

/*End Media Rules to index.html page */
/* End index.html page CSS rules */

/* Start seeyoulater.html page CSS rules / its Media Rules too */
.main-container h3 {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    letter-spacing: 2px;
}

/* Add Media query till width: 480px */
@media screen and (max-width: 480px) {
    .main-container h3 {
        font-size: 12px;
    }

    canvas {
        width: 150px;
        height: 150px;
    }
}

/* Targets Canvas Element inside the seeyoulater page */
canvas {
    position: absolute;
    left: 50%;
    top: 25%;
    transform: translate(-50%, -50%);
}

/* End seeyoulater.html page CSS rules / it's Media Rules too */

/* Start todolistpage.html page css rulse */
/* Targets the div with class .task-form-area and set below css rules */
.task-form-area {
    background-color: #cdcbcc;
    padding: 15px;
    border-radius: var(--border-radius-main-value);
}

/* Clock/date styled to match site 'soul' */
.datetime {
    font-family: inherit;
    text-align: center;
}
.datetime.circle {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background-color: #cdcbcc; /* same as form area */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.4) inset, 0 6px 18px rgba(0,0,0,0.4);
    border: 3px solid var(--main-background-color);
}

/* larger circular variant for timer page */
.datetime.circle.large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: 0 0 26px rgba(0,0,0,0.45) inset, 0 8px 24px rgba(0,0,0,0.5);
}
.datetime.circle.large .clock-time { font-size: 36px; }
.datetime.circle.large .clock-date { font-size: 14px; color: #971700; }

/* Square variant matching site 'soul' */
.datetime.square {
    width: 140px;
    height: 100px;
    border-radius: var(--border-radius-for-buttons);
    background-color: #cdcbcc; /* same as form area */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
    box-shadow: 0 0 18px rgba(0,0,0,0.35) inset, 0 6px 18px rgba(0,0,0,0.4);
    border: 3px solid var(--main-background-color);
}
.datetime.square .clock-time {
    font-size: 26px;
    font-weight: 700;
    color: var(--main-background-color);
}
.datetime.square .clock-date {
    font-size: 12px;
    color: #f00b0b; /* site accent */
    margin-top: 6px;
}

@media screen and (max-width: 480px) {
    .datetime.square { width: 110px; height: 82px; }
    .datetime.square .clock-time { font-size: 20px; }
}
.datetime.circle .clock-time {
    font-size: 28px;
    font-weight: 700;
    color: var(--main-background-color);
    letter-spacing: 1px;
}
.datetime.circle .clock-date {
    font-size: 12px;
    color: #ce0902; /* site accent */
    margin-top: 6px;
}

@media screen and (max-width: 480px) {
    .datetime.circle { width: 100px; height: 100px; }
    .datetime.circle .clock-time { font-size: 22px; }
}

/* Targets the input field with class .my-text-input 
in this field i will write my new task. set below css rules */
.my-text-input {
    padding: 15px;
    width: 100%;
    margin: 15px auto;
    border: 1px solid #cdcbcc;
    border-radius: var(--border-radius-main-value);
}

/* Remove the outline when focusing in input task field */
.my-text-input:focus {
    outline: none;
}

/* Targets the add button with class .add-btn
and I will copy some rules from previous start button rules and make some changes */
.add-btn {
    width: 115px;
    height: 50px;
    display: block;
    margin: auto;
    background-color: var(--main-background-color);
    color: #ffffff;
    border-radius: var(--border-radius-for-buttons);
    box-shadow: 0 0 20px #41ead4 inset;
    cursor: pointer;
    letter-spacing: 0.5px;
}


/* Targets the Paragraph error below the Add new Task Button*/
.error-message {
    text-align: center;
    color: #b00340;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Targets the Exit button with class .exit-sulp and set below css rules */
.exit-sulp {
    width: 50px;
    height: 30px;
    display: block;
    margin-left: auto;
    background-color: var(--main-background-color);
    color: #ffffff;
    border-radius: var(--border-radius-for-buttons);
    box-shadow: 0 0 20px #ff206e inset;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Targets The div that will show and contain the added tasks and set below css rules */
.my-all-tasks {
    margin-top: 30px;
    background-color: #ffffff;
    border-radius: var(--border-radius-main-value);
    padding: 20px;
}

/* Targets The label inside .task-from-area (div), set css rules below */
.task-form-area label {
    display: block;
    margin-top: 10px;
    margin-left: 7px;
}

/* Targets Each div (new task added) inside the main div with class (.my-all-tasks) */
.my-all-tasks .the-new-task {
    background: #cdcbcc;
    display: flex;
    justify-content: space-between;
    padding: 15px;
    margin: 15px auto;
    border-radius: var(--border-radius-main-value);
    font-size: 18px;
    overflow: auto;
}

/* Task layout: delete left, text center, done right */
.the-new-task { align-items: center; }
.the-new-task .del-btn,
.the-new-task .done-btn,
.my-all-tasks .del-btn {
    width: 80px;
    height: 40px;
    border-radius: var(--border-radius-for-buttons);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0 8px;
}
.the-new-task .del-btn {
    background-color: #000000;
    color: #ffffff;
    box-shadow: 0 0 20px #ff206e inset;
}
.the-new-task .done-btn {
    background-color: var(--main-background-color);
    color: #ffffff;
    box-shadow: 0 0 20px #41ead4 inset;
}

/* Active styling when a task is done */
.the-new-task .done-btn.done-active {
    background-color: #b2b515; /* pink accent */
    box-shadow: 0 0 20px #521e09 inset;
    color: #0d0d0d;
}
.the-new-task .task-text {
    flex: 1 1 auto;
    text-align: center;
    padding: 0 12px;
}
.the-new-task .task-text.completed {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Add Media query for screens till width: 992px */
@media screen and (max-width: 992px) {
    .my-all-tasks .the-new-task {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* add vertical gap when buttons stack and give spacing */
    .my-all-tasks .the-new-task { gap: 12px; }

    .my-all-tasks .del-btn {
        margin-top: 8px;
    }

    .my-all-tasks .done-btn {
        margin-top: 6px;
    }

    .the-new-task .task-text { font-size: 16px; }
}

/* Add Media query for screens till width: 633px */
@media screen and (max-width: 633px) {
    .my-all-tasks .the-new-task {
        word-break: break-word;
        max-width: 450px;
    }
}

/* Additional responsive tweaks: smaller screens and large displays */
@media screen and (max-width: 633px) {
    .the-new-task .task-text { font-size: 14px; }
    /* keep buttons fixed size on small screens to match desktop */
    .the-new-task .del-btn,
    .the-new-task .done-btn { width: 80px; height: 40px; }
}

@media screen and (min-width: 1200px) {
    .the-new-task .task-text { font-size: 20px; }
    .the-new-task .del-btn,
    .the-new-task .done-btn { width: 80px; height: 40px; }
}

/* Targets Each button inside each new task added inside the main div with class (.my-all-tasks) */
.my-all-tasks .del-btn {
    width: 80px;
    height: 40px;
    border-radius: var(--border-radius-for-buttons);
    color: #ffffff;
    cursor: pointer;
    letter-spacing: 1px;
    background-color: #000000;
    box-shadow: 0 0 30px #ff206e inset;
}

/* Target the Clear All button(input) with class (.clear-all-btn) */
.clear-all-btn {
    width: 115px;
    height: 50px;
    display: block;
    margin: auto;
    background-color: #333333;
    color: #ff206e;
    border-radius: var(--border-radius-for-buttons);
    cursor: pointer;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border-color: #ff206e;
}

/* End todolistpage.html Page css rulse */

/* Start 404.html page CSS rules / its Media Rules too */
/* Targets the h1 inside div with class (.main-container) */
.main-container h1 {
    position: absolute;
    left: 50%;
    top: 10%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    letter-spacing: 2px;
}

/* Targets the h4 inside div with class (.main-container) */
.main-container h4 {
    position: absolute;
    left: 50%;
    top: 20%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    letter-spacing: 2px;
}

/* Targets the h5 inside div with class (.main-container) */
.main-container h5 {
    position: absolute;
    left: 50%;
    top: 30%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    letter-spacing: 2px;
}

/* Targets the a link element inside h5 and both are inside div with class (.main-container) */
.main-container h5 a {
    color: #41ead4;
    text-decoration: none;
    border-bottom: 0.5px solid #41ead4;
    padding-bottom: 1px;
}

/* Add Media query till width: 522px */
@media screen and (max-width: 522px) {

    .main-container h1,
    .main-container h4 {
        font-size: 15px;
    }

    .main-container h5 {
        font-size: 10px;
    }
}

/* End 404.html page CSS rules / its Media Rules too */

/*Start Style Privacy Policy Page*/

.main-header-pp {
    text-align: center;
    color: wheat;
    margin: 15px;
}

@media screen and (max-width: 992px) {
    .header-five-pp h5 {
        top: 50% !important;
    }

    .main-header-pp {
        font-size: 18px;
    }
}

/*End Style Privacy Policy Page*/

/* Start Style Timer Page */

.inside-container-timer {
    width: 900px;
    padding: 20px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: #f0f0f0;
    border-radius: var(--border-radius-main-value);
    box-shadow: 0 0 20px #000000 inset;
}
#time {
    font-size: 42px;
    letter-spacing: 3px;
    margin: 15px 0;
    color: #000000;
}

/* Optional wrapper if you group buttons */
.timer-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Small enhancement on hover (keeps your soul) */
.start:hover,
.close:hover {
    opacity: 0.9;
    transform: scale(1.03);
    transition: 0.2s ease;
}

/* Responsive adjustment ONLY for timer text */
@media screen and (max-width: 530px) {
    #time {
        font-size: 30px;
        letter-spacing: 2px;
    }
}

/* End Style Timer Page */