:root {
    --solved-grey: #5c5d5d;
    --solved-grey-dark: #474747;
    --solved-blue: #89C4D9;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    color:var(--solved-grey);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

form{
    display: flex;
    flex-direction: column;
    width:80%;
    max-width:1200px;
    box-sizing:border-box;
    margin-left: auto;
    margin-right: auto;
    padding:50px;
    padding-left:5%;
    padding-right:5%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    background-color:white;
    border-radius: 10px;
    margin-top:50px;
}

div.form-header{
    display: flex;
    flex-direction: column;
    width:46%;
    min-width:400px;
    justify-self: center;
    padding:20px;
    padding-left:2%;
    padding-right:2%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    background-color: white;
    border-radius: 10px;;
    margin-top:100px;
}

form h2{
    font-size:34px;
    font-weight: 600;
    margin-bottom:5px;
}

form h3, form li{
    color: var(--solved-grey);
    font-style: italic;
    margin-top:0;
    font-weight:300;
    font-size:20px;
}
.sub-heading{
    margin-bottom:50px;
}

label{
    font-size: 18px;
    font-weight: 350;
    margin-bottom:10px;

}

input, select{
    padding:5px;
    font-size:16px;
    color: var(--solved-grey);
    font-weight: 100;
    width:40%;
    border-radius:5px;
    border-width: 1px;
    margin-bottom:40px;
    border:1px solid var(--solved-grey);

}

input::placeholder{
    color:#9d9d9d;
    font-weight:lighter;
    font-style: italic;
}

input[type="text"]:focus, input[type="email"]:focus{
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
    background-color: #f8fcff;
}

hr.underline{
    width:100%;
    border:1px solid var(--solved-grey);
    align-self: flex-start;
    margin-left: 0;
    margin-top:0;
}

div.sub-form{
    display: flex;
    flex-direction: column;
    border:2px var(--solved-blue) solid;
    border-radius:10px;
    padding:20px;
    margin-bottom:50px;
}

div.sub-form h2{
    font-size:24px;
}

div.sub-form h3{
    margin-top:0px;
}
div.sub-form hr{
    margin-bottom:30px;
    width:45%;
    border-color: var(--solved-blue);
}

div.add-row{
    width:100%;
    display: flex;
    flex-direction: column;
    padding:10px;
    border-radius: 10px;
    border: 2px solid var(--solved-blue);
    margin:10px;
}

div.add-row label{
    font-weight:400;
}

div.add-row input, div.add-row select{
    width:98%;
}

div.add-row button{
    background-color:var(--solved-grey);
    color:white;
    border:none;
    padding:10px;
    border-radius:10px;
    width:35%;
    cursor:pointer;
    font-size:16px;
}

div.add-row button:hover{
    background-color: var(--solved-blue);
    background-color: var(--solved-grey-dark);
}

.form-buttons{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.form-buttons button{
    background-color: var(--solved-blue);
    color:white;
    width:20%;
    padding:10px;
    border-radius:10px;
    font-size:16px;
    border:none;
}

.form-buttons button:hover{
    background-color: var(--solved-grey);
    cursor:pointer;
}

section{
    display:none;
}

section.active{
    display: block;
}

div.row{
    display: flex;
}

div.img-column{
    display: flex;
    flex-direction:column;
    justify-items:center;
    padding:20px;
    justify-content: space-evenly;
}

div.img-column img{
    width:70%;
    align-self: center;
}

table{
    margin:20px;
    border: 1px var(--solved-grey) solid;
    border-collapse: collapse;
    align-self: center;
    width:98%;
    table-layout: fixed;
}

th, td{
    border: 1px var(--solved-grey) solid;
    padding:8px;
}

th{
    background-color: var(--solved-blue);
    color:white;
}

select{
    background-color: var(--solved-blue);
    color:white;
}

select:hover{
    cursor:pointer;
}

option{
    background-color:white;
    color:var(--solved-grey);
}


#contacts-table th:nth-child(3),
#contacts-table td:nth-child(3) {
    min-width: 140px;
    white-space: nowrap;
}

#contacts-table th:nth-child(5),
#contacts-table td:nth-child(5) {
    min-width: 200px;
}

#contacts-table th:nth-child(4),
#contacts-table td:nth-child(4) {
    min-width: 180px;
}

button.delete {
    display: block;
    margin: 0 auto;
    background-color: red;
    color: white;
    text-align: center;
    font-weight: bold;
    border:none;
    padding:5px;
    padding-left:10px;
    padding-right:10px;
}

button.delete:hover{
    cursor: pointer;
    background-color:crimson;
}


img.header-logo{
    width:35%;
    margin-bottom:15px;
}

img.footer-logo{
    width:40%;
    margin-bottom: 40px;;
}

button.save-close{
    background-color:#f44336;
}

#life-instructions-text{
    color:var(--solved-grey);
    padding:10px;
    width:98%;
    max-width:98%;
    min-width:98%;
    height:200px;
    font-family: Arial, Helvetica, sans-serif;    
    font-size:18px;
    border-radius:10px;
}

#life-instructions-text::placeholder{
    color:var(--solved-grey);
    font-weight:lighter;
    font-style: italic;
}

/* Editable table cells */
table td select{
    width:100%;
    margin-bottom:0;
    box-sizing:border-box;
    font-size:14px;
}

/* The tables use a fixed layout so every column lines up and the table always
   fits inside its sub-form. Columns share the available width equally unless
   one is given an explicit width below (the last column holds the delete button). */
#personal-devices-table th:first-child,
#home-tech-table th:first-child{
    width:150px;
}

table td.editable-cell{
    cursor:text;
    overflow-wrap:anywhere;
}

table td.editable-cell:hover{
    background-color:#f8fcff;
}

table td.editable-cell:focus{
    outline:none;
    background-color:#f8fcff;
    box-shadow: inset 0 0 0 2px var(--solved-blue);
}

table th:last-child,
table td:last-child{
    width:46px;
    white-space:nowrap;
    text-align:center;
}
