﻿body {
    font-size: 20px;
    font-family: "Courier New", Courier, monospace;
}

/*===========================================================================*/

.login-container {
    width: 50%;
    margin: auto;
    margin-top: 20vh;
    display:flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    
}

.login-form {
    width: 100%;
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.login-form div {
    margin-bottom: 20px;
    width: 60%;
}

.login-form div input {
    border: none;
    border-bottom: 1px solid darkslategray;
    width: 100%;
}

.login-form div input:focus{
    outline: none;
    border-bottom: 3px solid darkslategray;
    transition: .5s;
}


.login-form button {
    background-color: #16a085;
    border: none;
    font-size: 20px;
    width: 60%;
    height: 40px;
    color: white;
    opacity: .8;
    margin-top: 50px;
}

.login-form button:hover{
    opacity:1;
}

.login-fail {
    width: 100%;
    text-align: center;
    font-size: 25px;
    background-color: #c0392b;
    color: #ecf0f1;
    padding: 10px;
}

/*============================================================================*/

nav {
    display:flex;
    flex-direction:row;
    width: 100%;
    height: 100px;
    border-bottom: 1px solid lightgray;
    justify-content:space-around;
    align-items: center;
}

nav div a {
    text-decoration: none;
    font-size: 40px;
    color: #2980b9;
}

nav div p,
nav div p a {
    font-size: 20px;
    color: black;
    text-align:center;
    margin: 8px;
}

nav div p a {
    text-decoration: underline;
}

nav div p a:hover{
    font-size: 24px;
    cursor: pointer;
    transition: .3s;
}

/*============================================================================*/

.index-container {
    width: 80%;
    margin: auto;
    margin-top: 150px;
    display: flex;
    flex-direction: row;
    height: 50vh;
    justify-content: space-around;
    align-items: center;
    font-size: 40px;
}

.index-list {
    width: 25%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background-color: #2980b9;
    border-radius: 5px;
    color: #ecf0f1;
    opacity:.8;
    text-align: center;
}

.index-create {
    width: 45%;
    height: 60%;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #16a085;
    text-decoration: none;
    color: #ecf0f1;
    opacity: .8;
    text-align: center;
}

.index-list:hover{
    opacity:1;
}

.index-create:hover {
    opacity:1;
}

/*============================================================================*/
.create-form-type {
    display: flex;
    align-self: center;
    width: 35%;
    justify-content: center;
}

.create-form-type select {
    width: 50%;
    height: 25px;
}


.create-form-type label {
    margin-right: 7px;
}

.create-container {
    width: 85%;
    margin: auto;
}

.create-heading {
    text-align: center;
    font-size: 50px;
    color: #2980b9;
}

.create-form {
    display:flex;
    flex-direction:column;
    height: 80vh;
}

.create-form-information {
    display:flex;
    flex-direction:row;
    justify-content: space-around;
  
}

.create-form-group {
    box-sizing: border-box;
    width: 40%;
}

.create-form-group div {
    margin: 5%;
}

/*.create-form-group label {
 
}*/

.create-form-group input {
    display: flex;
    align-self:flex-end;
    width:100%;
    border-radius: 2px;
    box-shadow: 0 0 1px 1px lightslategray;
    border:none;
    margin-top: 5px;
}

.create-form-group-notes {
    display:flex;
    flex-direction:column;
   
}

.create-form-group-notes textarea {
    height: 100px;
    width: 100%;
}

.create-form-group-state {
    display: flex;
    flex-direction: column;
}

.create-form-group-state select {
    width: 100%;
}

.create-button-container {
    display: flex;
    align-self: flex-end;
    margin-right:10%;
    width: 30%;
}

.create-button {
    width: 100%;
    height: 75px;
    
    font-size: 40px;
    background-color: #16a085;
    border: none;
    opacity: .8;
}

.create-button:hover{
    opacity:1;
}

/*========================================================================*/
.edit-button-container {
    display: flex;
    align-self: flex-end;
    margin-right: 10%;
    width: 30%;
}

.edit-button-container a {
    border: 1px solid black;
    background-color: #34495e;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 20px;
    color: white;
}

.edit-button {
    width: 40%;
    height: 40px;
    margin: 100px 5px 0 5px;
    font-size: 20px;
    background-color: #f1c40f;
    opacity: .8;
}

.edit-button:hover{
    opacity:1;
}

/*========================================================================*/
.address-heading {
    text-align: center;
    font-size: 40px;
    color: #2980b9;
}

.address-container {
    padding: 20px;
    font-size: 25px;
}

.bold {
    font-weight: bold;
    
}


table{
    position: relative;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    border-collapse: collapse;
}

td, tr {
    padding: 12px;
}

tr {
    border-bottom: 1px solid black;
}

tr:hover {
    background-color:rgba(20,20,20,.1);
    transition: .25s;
}

.address-head{
    display: table-row;
    border: none;
}

.address-head td{
    text-align: center;
    border-bottom: 5px double black;
    font-size: 30px;
}

.center {
    text-align: center;
}

.sort-box {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.sort-box p {
    margin-right: 8px;
}


/*===========================================================================*/

.delete-container {
    width: 80%;
    margin: auto;
    text-align: center;
    margin-top: 50px;
    color: #2980b9;
}

.delete-action-button {
    width: 100px;
    height: 40px;
    padding: 7px 20px 7px 20px;
    box-sizing: border-box;
    text-decoration: none;
    color: darkslategray;
    font-size: 20px;
    opacity:.8;
}

.delete-action-button:hover{
    opacity:1;
}

.delete-button {
    padding: 0;
    background-color: #c0392b;
    border: none;
    color: white;
  
}

.delete-cancel {
    border: 1px solid black;
    background-color: #34495e;
    color: white;
}

/*==========================================================================*/

.entry-confirmation {
    width: 40%;
    padding: 12px;
    padding-bottom: 24px;
    margin: auto;
    margin-top: 8vh;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
    background-color: #1abc9c;
}


/*========================================================================*/

.logout-container {
    width: 50%;
    display:flex;
    margin: auto;
    margin-top: 20vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logout-container a {
    width: 50%;
    height: 5vh;
    padding: 10px 30px 10px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration:none;
    background-color: #16a085;
    font-size: 20px;
    color: white;
    margin-top: 50px;

}


/*=========================================================*/
.details-container{
    width: 50%;
    margin: auto;

}

.details-heading {
    text-align: center;
    color: #2980b9;
    font-size: 40px;
}

.details-actions{
    text-align: center;
}

.details-actions a{
    padding: 12px;
}

.details-actions a:hover{
    text-decoration: none;
    color: white;
    background-color:#2980b9;
    box-shadow: 0 2px 4px rgba(0,0,0,.3);
    border-radius: 4px;
    transition: .5s;
}

.details-info-container{
    display: flex;
    flex-direction: row;
    margin-top: 40px;
}

.details-info-section {
    width: 50%;
}

.details-info-item {
    padding: 10px;
    margin: 8px;
    word-wrap: normal;
}

i{
    margin-right: 8px;
}

.details-info-item:hover{
    box-shadow: 0 4px 9px rgba(0,0,0,.2);
}

.notes {
    border-top: 4px double black;
    width: 100%;
    padding: 20px;
}

.top-widget {
    left: 90%;
    top: 92%;
    position: fixed;
    z-index: 2;
    padding: 10px;
    background-color: #ffa801;
    border: none;
}

.top-widget:hover {
    animation: bounce 1s ;
}

@keyframes bounce {
    20%{
        transform: scale(1.2);
    }

    30% {
        transform: scale(1);
    }

    70%{
        transform: scale(1.2);
    }

    80%{
        transform: scale(1);
    }
}

.top-widget:focus{
    outline: none;
}

.footer {
    height: 200px;
}


/*===================================================*/

@media only screen and (max-width: 1300px) {
    .index-list{
        width: 30%;
    }

    .index-create{
        width: 30%;
        text-align: center;
    }

    .index-container {
        width: 90%;
    }

    .create-button {
        font-size: 30px;
    }
}

@media only screen and (max-width: 950px) {
    .index-list{
        width: 50%;
        margin: 20px;
        padding: 20px;
    }

    .index-create{
        width: 50%;
        text-align: center;
        margin: 20px;
        padding: 20px;
    }

    .index-container {
        flex-direction: column;
        width: 100%;
    }

    nav {
        height: 80px;
    }

    nav div a {
        font-size: 30px;
    }

    .create-button-container {
        width: 40%;
    }

    .create-form-group {
        width: 50%;
    }

    .entry-confirmation {
        width: 60%;
    }

    .city{
        display: none;
    }

    .address-container{
        font-size: 18px;
    }

    .details-container {
        width: 65%;
    }
}

@media only screen and (max-width: 800px) {
    .index-list{
        width: 50%;
        margin: 20px;
        padding: 20px;
    }

    .index-create{
        width: 50%;
        text-align: center;
        margin: 20px;
        padding: 20px;
    }

    .index-container {
        flex-direction: column;
        width: 100%;
    }

    .create-form-information{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .create-form-group {
        width: 80%;
    }

    .create-button-container {
        width: 80%;
    }

    .create-form-type {
        width: 80%;
    }

    .entry-confirmation {
        width: 80%;
    }

    .address-container{
        font-size: 16px;
    }

    .address-heading {
        font-size: 30px;
    }

    .sort-box {
        font-size: 14px;
    }

    .details-container {
        width: 85%;
    }

    .details-heading {
        font-size: 30px;
    }

    .details-info-container,
    .notes {
        font-size: 14px;
    }
}


@media only screen and (max-width: 600px) {
    .index-list{
        width: 80%;
        margin: 20px;
        padding: 20px;
    }

    .index-create{
        width: 80%;
        text-align: center;
        margin: 20px;
        padding: 20px;
    }

    .index-container {
        flex-direction: column;
        width: 100%;
    }

    .create-heading {
        font-size: 30px;
    }

    nav{
        flex-wrap: wrap;
    }

    nav div a {
        padding: 10px;
        font-size: 20px;
    }

     .create-form-group {
        width: 95%;
    }

    .create-button-container {
        width: 95%;
    }

    .create-form-type {
        width: 95%;
    }

    .create-container {
        width: 100%;
    }

    .create-button-container,
    .create-button {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .entry-confirmation {
        width: 95%;
        font-size: 16px;
    }

    .address-container{
        font-size: 14px;
    }

    .top-widget {
        left: 80%;
    }

    .details-info-container {
        display: flex;
        flex-direction: column;
    }

    .details-info-section {
        width: 80%;
    }
}