@import "form.css";


/* sign in */
.signin_wrapper {
    max-width: 500px;
    margin: 0 auto;
}
.signin_wrapper fieldset {
    border-radius: 5px;
}
.signin_wrapper h1 {
    border: 0;
}

/* slimmer header */
header {
    height: 75px;
}

header #login_button {
    top: 5px;
}

header #logo {
    top: 5px;
}
.container {
    padding-top: 55px;
}

/* common */

textarea {
	border: 1px solid gray;
	width: calc(100% - 20px);
}

table {
    background: #fff;
    margin-bottom: 1.25rem;
    border: none;
    table-layout: fixed;
    width: 100%;
}

table tr {
    border-bottom: 1px solid #ebebec;
}

table tr th {
    padding: 0.5625rem 0.625rem;
    font-size: 0.875rem;
    color: #1798A5;
    text-align: left;
    border-bottom: 2px solid #1798A5;
}

.container.app {
	padding-left: 10px;
	padding-right: 10px;
}

h1 {
	text-align: center;
	border-bottom: 1px solid gray;
	width: 90%;
	margin: 0px auto;
}

@media only screen and (max-width: 430px) {
	h1 { font-size: 150%; }
}


h1 a {
	text-decoration: none;
}




.pointer {
    cursor: pointer;
}



/* shopping list */

.shopping_list_summary {
	padding: 10px;
	box-shadow: 5px 5px 4px #c6c6c6;
	width: 300px;
	margin: 10px;
	border: 1px solid #c6c6c6;
}


.shopping_list_summary h3 {
	margin: 0;
	padding: 0;
}

.shopping_list_summary p.ownership {
	margin: 0;
	padding: 0;
	font-size: 60%;
}

.shopping_list_summary ul {
	list-style-type: none;
	padding: 0;
}

.shopping_list_summary ul li {
	font-weight: 300;
}


.shopping_list_summary a {
	text-decoration: none;
}


.shopping_list {
	margin: 10px auto 0 auto;
}

.shopping_list th {
	padding: 0;
}

.shopping_list td {
	font-weight: 300;
}

.shopping_list td.item_name {
    border-top: 2px solid #1798A5;
	font-weight: 500;
	font-size: 16pt;
}

.shopping_list tr.clear {
    border-top: 2px solid #1798A5;
    border-bottom: 2px solid #1798A5;
	text-align: center;
	font-size: 10pt;
}

.shopping_list a.remove {
	text-decoration: none;
}


.shopping_list_spots {
	text-align: center;
}

.shopping_list_spot {
	width: 220px;
	height: 300px;
	text-align: center;
	margin: 20px;
	border: 1px solid gray;
	display: inline-block;
}

.shopping_list_spot .qrcode {
	height: 105px;
}

.shopping_list_spot a {
	text-decoration: none;
}

.shopping_list_spot .logo {
	width: 140px;
}

.shopping_list_spot .qr {
	width: 100px;
}

.shopping_list_spot .edit_name_label {
	width: 70%;
	border-bottom: 2px solid gray;
	margin: 0 auto;
	margin-bottom: 20px;
}

.shopping_list_spot .manage {
	list-style-type: none;
	padding: 0;
}

.create_new_spot {
	vertical-align: top;
}

.create_new_spot p.plus {
	font-size: 300%;
	display: inline-block;
	line-height: 150px;
}

#hidden_form {
	position: absolute;
	background: white;
	padding: 10px;
	display: none;
	border: 1px solid gray;
	box-shadow: 5px 5px 4px grey;
	text-align: center;
}
#hidden_form button {
	margin: 0px auto;
}

#hidden_list {
	position: relative;
	position: fixed;
	top: 120px;
	margin-left: auto;
	margin-right: auto;
	left: 0;
	right: 0;
	background: white;
	padding: 10px;
	display: none;
	border: 1px solid gray;
	box-shadow: 5px 5px 4px grey;
	text-align: center;
	min-width: 300px;
	width: 50%;
	min-height: 300px;
}

#hidden_list table tr td {
	text-align: left;
	padding: 4px 8px;
}

.close_window {
	position: absolute;
	top: 5px;
	right: 5px;
	text-decoration: none;
}

#add_new_form {
	padding: 5px;
	display: none;
}

#invite_member_form {
	display: none;
}


/* footer */

footer {
	left: 0;
	right: 0;
	bottom: 0;
}

footer h5 {
	text-align: center;
	margin: 0;
	padding:0;
}
footer ul.menu {
	text-align: center;
	list-style-type: none;
	padding: 0;
}

footer ul.menu li {
	display: inline-block;
	margin: 0;
	padding: 0;
}


.edit_popup_form {
    padding: 30px;
    width: 400px;
    background: white;
    position: fixed;
    max-height: 300px;
    top: calc((100% - 300px) / 2);
    left: 50%;
    margin-left: -200px;
    border: 1px solid gray;
    overflow: auto;
    border-radius: 5px;
}

.edit_popup_form h3 {
    text-align: center;
    margin: 0;
}

.edit_popup_form input {
    margin: 0;
}

.edit_popup_form button {
    margin: 5px auto;
    display: block;
}

.edit_popup_form .button.delete {
    font-size: 7pt;
    background-color: grey;
    border-color: grey;
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 5px;
}

.toggleNext {
    height: 0.8em;
}

@media only screen and (max-width: 500px) {
    .container {
        padding-top: 85px;
    }

    #login_button #signout {
        padding: 0.3rem 0.6rem 0.3rem 0.6rem;
    }
    .username { display: none; }
}
