
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

/*
Page will be responsive using media queries. We will be checking for responsiveness at: 
Phone Size (portrait) - width: 390px, height: 844px
Phone Size (landscape) - width: 844px, height: 390px
Tablet - width: 820px, height: 1180px
Desktop - width:1024px, height:1024px (desktop minimum width)
*/

/* Classes to Display Overlay and Form When User Hits Edit Button */

#overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
}

/* Desktop */

/* Header and Form */
body {
    box-sizing: border-box;
    background-color: rgb(200, 191, 191);
    height: 100vh;
}

@media screen and (min-width: 1024px) {
    #header-list {
        display: flex;
        justify-content: space-between;
        padding-left: 2%;
        padding-right: 2%;
        align-items: center;
        font-weight: bold;
        font-size: 25px;
        color: #333;
        background-color:cornflowerblue;
        border-bottom: 2px solid black;
        height:10vh;
    }
    
    #header-list li:hover {
        color: white;
    }
    
    #app-quote-header {
        display: flex;
        justify-content: center;
        font-weight: bold;
        margin-top: 1%;
    }
    
    #form {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-weight: bold;
        font-size: 30px;
        text-align: center;
        margin-top: 1%;
    }
    
    #todo-form {
        display: flex;
        flex-direction: column;
        padding: 1%;
        width: 30%;
        background-color: whitesmoke;
        border-radius: 12px;
    }
    
    #todo-form input, select {
        padding: 6%;
        margin-top: 8%;
        background-color: white;
        background-image: linear-gradient(rgb(245, 245, 245), rgb(224, 224, 224));
        background-size: auto;
        border: none;
    }
    
    select {
        background-color: white;
        background-image: linear-gradient(rgb(245, 245, 245), rgb(224, 224, 224));
        background-size: auto;
    }
    
    button {
        background-color: rgba(0, 0, 0, 0);
        background-image: linear-gradient(rgb(41, 128, 185), rgb(135, 189, 216));
        border: none;
        color: #fff;
        border-radius: 5px;
        padding: 3%;
        margin-top: 8%;
        transition: font-size 0.3s;
        transition-property: font-size;
        transition-duration: 0.3s;
        transition-timing-function: ease;
        transition-delay: 0s;
    }
    
    button:hover {
        font-size: 18px;
        cursor: pointer;
    }
    
    hr {
        width: 100%;
        margin-top: 2%;
    }
    
    #app-quote-header h1 {
        font-size: 25px;
        margin-top: 1%;
        font-family: "Pacifico", cursive;
    }
    
    #form {
        padding: 1%;
    }
    
    ul {
        list-style-type: none;
    }
    
    /* Instructions DIV */
    
    #instructions {
        display: flex;
        justify-content: center;
        color: red;
        margin-top: 4%;
    }
    
    #inside-instructions {
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        background-color: whitesmoke;
        font-size: 14px;
        border-radius: 12px;
        width: 30%;
        height: 8vh;
    }
    
    
    /* Todos Section */
    
    #todos {
        display: flex;
        justify-content: center;
        align-content: center;
        margin-top: 4%;
        margin-left: 35%;
        margin-right: 35%;
        margin-bottom: 2%;
        height: 80vh;
        border-radius: 12px;
        background-color: rgba(0, 0, 0, 0);
        background-image: linear-gradient(rgb(41, 128, 185), rgb(135, 189, 216));
        overflow-y: scroll;
        scrollbar-width: thin;
        scrollbar-color: #ccc #f0f0f0;
    }
    
    .todo {
         display: flex;
         flex-direction: column;
         justify-content: center;
         flex-wrap: nowrap;
         align-items: center; 
         padding-left: 10%;
         padding-right: 10%;
         padding-top: 5%;
         padding-bottom: 5%;
         max-width: 100%;
         margin-bottom: 7%;
         margin-top: 7%;
         border-radius: 5px;
         background-color: whitesmoke;
     } 
    
    .button-container {
        display: flex;
        justify-content: space-between;
        padding: 5%;
        gap: 10px;
        font-size: 18px;
    }
    
    .button-container button {
        font-size: 18px;
    }
    
    h1.item-title, p.item-detail, p.item-price, img.item-image {
        padding: 5%;
    }
    
    p.item-detail, h1.item-title, p.item-price {
        text-align: center;
    }
    img.item-image {
        min-width: 120px;
        min-height: 120px;
        max-width: 150px;
        max-height: 150px;
    }
    
    .completed-checkbox {
        margin-top: 4%;
    }

    .todo-identifier {
        text-align: center;
        font-size: 11px;
    }
    
    /* Footer */
    
    #footer {
        display: flex;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0);
        background-image: linear-gradient(rgb(41, 128, 185), rgb(135, 189, 216));
        border: 1px solid black;
        width: 100%;
        height: 9vh;
    }
    
    footer {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 30%;
    }
    
    footer img {
        height: 35px;
        width: 35px;
    }
}


/* Phone - Landscape Orientation */

@media screen and (min-width: 844px) and (max-width: 1023px) and (orientation: landscape) {
    #header-list {
        display: flex;
        justify-content: space-between;
        padding-left: 2%;
        padding-right: 2%;
        align-items: center;
        font-weight: bold;
        font-size: 25px;
        color: #333;
        background-color:cornflowerblue;
        border-bottom: 2px solid black;
        height:10vh;
    }
    
    #header-list li:hover {
        color: white;
    }
    
    #app-quote-header {
        display: flex;
        justify-content: center;
        font-weight: bold;
        margin-top: 1%;
    }
    
    #form {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-weight: bold;
        font-size: 30px;
        text-align: center;
        margin-top: 1%;
    }
    
    #todo-form {
        display: flex;
        flex-direction: column;
        padding: 1%;
        width: 30%;
        background-color: whitesmoke;
        border-radius: 12px;
    }
    
    #todo-form input, select {
        padding: 6%;
        margin-top: 8%;
        background-color: white;
        background-image: linear-gradient(rgb(245, 245, 245), rgb(224, 224, 224));
        background-size: auto;
        border: none;
    }
    
    select {
        background-color: white;
        background-image: linear-gradient(rgb(245, 245, 245), rgb(224, 224, 224));
        background-size: auto;
    }
    
    button {
        background-color: rgba(0, 0, 0, 0);
        background-image: linear-gradient(rgb(41, 128, 185), rgb(135, 189, 216));
        border: none;
        color: #fff;
        border-radius: 5px;
        padding: 3%;
        margin-top: 8%;
        transition: font-size 0.3s;
        transition-property: font-size;
        transition-duration: 0.3s;
        transition-timing-function: ease;
        transition-delay: 0s;
    }
    
    button:hover {
        font-size: 18px;
        cursor: pointer;
    }
    
    hr {
        width: 100%;
        margin-top: 2%;
    }
    
    #app-quote-header h1 {
        font-size: 25px;
        margin-top: 1%;
        font-family: "Pacifico", cursive;
    }
    
    #form {
        padding: 1%;
    }
    
    ul {
        list-style-type: none;
    }
    
    /* Instructions DIV */
    
    #instructions {
        display: flex;
        justify-content: center;
        color: red;
        margin-top: 4%;
    }
    
    #inside-instructions {
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        background-color: whitesmoke;
        font-size: 14px;
        border-radius: 12px;
        width: 30%;
        height: 8vh;
    }
    
    
    /* Todos Section */
    
    #todos {
        display: flex;
        justify-content: center;
        margin-top: 4%;
        margin-left: 35%;
        margin-right: 35%;
        margin-bottom: 2%;
        height: 65vh;
        border-radius: 12px;
        background-color: rgba(0, 0, 0, 0);
        background-image: linear-gradient(rgb(41, 128, 185), rgb(135, 189, 216));
        overflow-y: scroll;
        scrollbar-width: thin;
        scrollbar-color: #ccc #f0f0f0;
    }
    
    .todo {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-left: 3%;
        padding-right: 3%;
        max-width: 80%;
        margin-bottom: 7%;
        margin-top: 7%;
        border-radius: 5px;
        background-color: whitesmoke;
    }
    
    .button-container {
        display: flex;
        justify-content: space-between;
        padding: 5%;
        gap: 10px;
    }
    
    .button-container button {
        font-size: 18px;
    }
    
    h1.item-title, p.item-detail, p.item-price, img.item-image {
        padding: 3%;
    }

    h1.item-title, p.item-detail, p.item-price {
        text-align: center;
    }
    
    img.item-image {
        min-width: 120px;
        min-height: 80px;
        max-width: 150px;
        max-height: 100px;
    }
    
    .completed-checkbox {
        margin-top: 4%;
    }
    
    /* Footer */
    
    #footer {
        display: flex;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0);
        background-image: linear-gradient(rgb(41, 128, 185), rgb(135, 189, 216));
        border: 1px solid black;
        width: 100%;
        height: 9vh;
    }
    
    footer {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 30%;
    }
    
    footer img {
        height: 35px;
        width: 35px;
    }
}

/* Tablet */

@media screen and (min-width: 820px) and (max-width: 1023px) {
    #header-list {
        display: flex;
        justify-content: space-between;
        padding-left: 2%;
        padding-right: 2%;
        align-items: center;
        font-weight: bold;
        font-size: 25px;
        color: #333;
        background-color:cornflowerblue;
        border-bottom: 2px solid black;
        height:10vh;
    }
    
    #header-list li:hover {
        color: white;
    }
    
    #app-quote-header {
        display: flex;
        justify-content: center;
        font-weight: bold;
        margin-top: 1%;
    }
    
    #form {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-weight: bold;
        font-size: 30px;
        text-align: center;
        margin-top: 1%;
    }
    
    #todo-form {
        display: flex;
        flex-direction: column;
        padding: 1%;
        width: 30%;
        background-color: whitesmoke;
        border-radius: 12px;
    }
    
    #todo-form input, select {
        padding: 6%;
        margin-top: 8%;
        background-color: white;
        background-image: linear-gradient(rgb(245, 245, 245), rgb(224, 224, 224));
        background-size: auto;
        border: none;
    }
    
    select {
        background-color: white;
        background-image: linear-gradient(rgb(245, 245, 245), rgb(224, 224, 224));
        background-size: auto;
    }
    
    button {
        background-color: rgba(0, 0, 0, 0);
        background-image: linear-gradient(rgb(41, 128, 185), rgb(135, 189, 216));
        border: none;
        color: #fff;
        border-radius: 5px;
        padding: 3%;
        margin-top: 8%;
        transition: font-size 0.3s;
        transition-property: font-size;
        transition-duration: 0.3s;
        transition-timing-function: ease;
        transition-delay: 0s;
    }
    
    button:hover {
        font-size: 18px;
        cursor: pointer;
    }
    
    hr {
        width: 100%;
        margin-top: 2%;
    }
    
    #app-quote-header h1 {
        font-size: 25px;
        margin-top: 1%;
        font-family: "Pacifico", cursive;
    }
    
    #form {
        padding: 1%;
    }
    
    ul {
        list-style-type: none;
    }
    
    /* Instructions DIV */
    
    #instructions {
        display: flex;
        justify-content: center;
        color: red;
        margin-top: 4%;
    }
    
    #inside-instructions {
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        background-color: whitesmoke;
        font-size: 14px;
        border-radius: 12px;
        width: 30%;
        height: 8vh;
    }
    
    
    /* Todos Section */
    
    #todos {
        display: flex;
        justify-content: center;
        margin-top: 4%;
        margin-left: 35%;
        margin-right: 35%;
        margin-bottom: 2%;
        height: 65vh;
        border-radius: 12px;
        background-color: rgba(0, 0, 0, 0);
        background-image: linear-gradient(rgb(41, 128, 185), rgb(135, 189, 216));
        overflow-y: scroll;
        scrollbar-width: thin;
        scrollbar-color: #ccc #f0f0f0;
    }
    
    .todo {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-left: 15%;
        padding-right: 15%;
        max-width: 100%;
        margin-bottom: 7%;
        margin-top: 7%;
        border-radius: 5px;
        background-color: whitesmoke;
    }
    
    .button-container {
        display: flex;
        justify-content: space-between;
        padding: 5%;
        gap: 10px;
    }
    
    .button-container button {
        font-size: 18px;
    }
    
    h1.item-title, p.item-detail, p.item-price, img.item-image {
        padding: 3%;
    }

    h1.item-title, p.item-detail, p.item-price {
        text-align: center;
    }
    
    img.item-image {
        min-width: 120px;
        min-height: 80px;
        max-width: 150px;
        max-height: 100px;
    }
    
    .completed-checkbox {
        margin-top: 4%;
    }
    
    /* Footer */
    
    #footer {
        display: flex;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0);
        background-image: linear-gradient(rgb(41, 128, 185), rgb(135, 189, 216));
        border: 1px solid black;
        width: 100%;
        height: 9vh;
    }
    
    footer {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 30%;
    }
    
    footer img {
        height: 35px;
        width: 35px;
    }
}

/* Phone - Portrait Orientation */

@media screen and (min-width: 390px) and (orientation: portrait) {
    #header-list {
        display: flex;
        justify-content: space-between;
        padding-left: 2%;
        padding-right: 2%;
        align-items: center;
        font-weight: bold;
        font-size: 25px;
        color: #333;
        background-color:cornflowerblue;
        border-bottom: 2px solid black;
        height:5vh;
    }
    
    #header-list li:hover {
        color: white;
    }
    
    #app-quote-header {
        display: flex;
        justify-content: center;
        font-weight: bold;
        margin-top: 1%;
    }
    
    #form {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-weight: bold;
        font-size: 30px;
        text-align: center;
        margin-top: 1%;
    }
    
    #todo-form {
        display: flex;
        flex-direction: column;
        padding: 1%;
        width: 30%;
        background-color: whitesmoke;
        border-radius: 12px;
    }
    
    #todo-form input, select {
        padding: 6%;
        margin-top: 8%;
        background-color: white;
        background-image: linear-gradient(rgb(245, 245, 245), rgb(224, 224, 224));
        background-size: auto;
        border: none;
    }
    
    select {
        background-color: white;
        background-image: linear-gradient(rgb(245, 245, 245), rgb(224, 224, 224));
        background-size: auto;
    }
    
    button {
        background-color: rgba(0, 0, 0, 0);
        background-image: linear-gradient(rgb(41, 128, 185), rgb(135, 189, 216));
        border: none;
        color: #fff;
        border-radius: 5px;
        padding: 3%;
        margin-top: 8%;
        transition: font-size 0.3s;
        transition-property: font-size;
        transition-duration: 0.3s;
        transition-timing-function: ease;
        transition-delay: 0s;
    }
    
    button:hover {
        font-size: 18px;
        cursor: pointer;
    }
    
    hr {
        width: 100%;
        margin-top: 2%;
    }
    
    #app-quote-header h1 {
        font-size: 25px;
        margin-top: 1%;
        font-family: "Pacifico", cursive;
    }
    
    #form {
        padding: 1%;
    }
    
    ul {
        list-style-type: none;
    }
    
    /* Instructions DIV */
    
    #instructions {
        display: flex;
        justify-content: center;
        color: red;
        margin-top: 4%;
    }
    
    #inside-instructions {
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        background-color: whitesmoke;
        font-size: 14px;
        border-radius: 12px;
        width: 30%;
        height: 3vh;
    }
    
    
    /* Todos Section */
    
    #todos {
        display: flex;
        justify-content: center;
        margin-top: 4%;
        margin-left: 35%;
        margin-right: 35%;
        margin-bottom: 2%;
        height: 43vh;
        border-radius: 12px;
        background-color: rgba(0, 0, 0, 0);
        background-image: linear-gradient(rgb(41, 128, 185), rgb(135, 189, 216));
        overflow-y: scroll;
        scrollbar-width: thin;
        scrollbar-color: #ccc #f0f0f0;
    }
    
    .todo {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        max-width: 80%;
        margin-bottom: 7%;
        margin-top: 7%;
        border-radius: 5px;
        background-color: whitesmoke;
    }
    
    .button-container {
        display: flex;
        justify-content: space-between;
        padding: 5%;
        gap: 10px;
    }
    
    .button-container button {
        font-size: 18px;
    }
    
    h1.item-title, p.item-detail, p.item-price, img.item-image {
        padding: 3%;
    }

    h1.item-title, p.item-detail, p.item-price {
        text-align: center;
    }
    
    img.item-image {
        min-width: 120px;
        min-height: 80px;
        max-width: 150px;
        max-height: 100px;
    }
    
    .completed-checkbox {
        margin-top: 4%;
    }
    
    /* Footer */
    
    #footer {
        display: flex;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0);
        background-image: linear-gradient(rgb(41, 128, 185), rgb(135, 189, 216));
        border: 1px solid black;
        width: 100%;
        height: 5vh;
    }
    
    footer {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 30%;
    }
    
    footer img {
        height: 35px;
        width: 35px;
    }
}
