/* Styling for the foodfetchers website */

/* General */
:root {
	/* Vars */
	--scrollbar-width: calc(100vw - 100%);
	
	/* Colors */
	--lightgreen: #cfffbf;
	--green: #50b82e;
	--darkgreen: #31701c;
	--teal: #38817a;
	--lightteal: #47a69d;
    --color1-white: rgb(244,244,244);
    --color2-darkGreyT: rgba(0,0,0,.35);
}

@font-face {
	font-family: ubuntu;
	src: url(Ubuntu.ttf);
}

body {
	margin: 0;
	font-family: Arial;
}

#background {
	background-image: url(Images/background3.jpg);
	background-size: cover;
	position: fixed;
	width: 100%;
	height: 100%;
	display: block;
	z-index: -10;
}

h1, h2, h3 {
	text-align: center;
	font-family: ubuntu, Arial;
}

h3, p {
	margin-block-start: 0;
	margin-block-end: 0.5em;
}

a {
	color: var(--teal);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Forms */
input[type=text], input[type=email], input[type=password], input[type=number] {
	padding: 5px;
	border: 1px solid #ccc;
	border-radius: 4px;
	transition: border 200ms;
	margin-bottom: 2px;
}

input[type=text]:hover, input[type=email]:hover, input[type=password]:hover, input[type=number]:hover {
	border-color: #888;
	transition: 0ms;
}

input[type=text]:active, input[type=email]:active, input[type=password]:active, input[type=number]:active {
	border-color: #444;
	transition: 0ms;
}

button, input[type=submit], input[type=reset] {
	padding: 5px 16px;
	background-color: #eee;
	font-size: 16px;
	cursor: pointer;
	border: 1px solid #ccc;
	border-radius: 4px;
}

button:hover, input[type=submit]:hover, input[type=reset]:hover {
	background-color: #fff;
	border: 1px solid var(--green);
	border-bottom: 2px solid var(--green);
	padding-bottom: 4px;
}

button:active, input[type=submit]:active, input[type=reset]:active {
	background-color: var(--green);
}

input[type=checkbox] {
	height: 16px;
	width: 16px;
}

input[type=checkbox]:checked {
	accent-color: var(--teal);
}

/* Header */
#header {
	font-size: 20px;
	color: black;
	background-color: rgba(255,255,255,0.9);
	height: 80px;
	box-shadow: 0 0 8px rgba(0,0,0,0.6);
	position: fixed;
	width: calc(100vw - var(--scrollbar-width) - 20px); /* -20px for padding */
	display: flex;
	padding: 0 10px;
}

#logo {
	height: 80px;
	width: 62px;
    padding: 0 1vw;
}

#nav {
	display: flex;
	align-items: center;
	height: 100%;
	text-align: center;
	margin-left: auto;
	overflow: hidden;
}

#nav a {
	color: #333;
	text-decoration: none;
	transition: 200ms;
	padding: 36px 1.5vw;
}

#nav a:hover {
	color: #fff;
	background-color: var(--teal);
	transition: 0ms;
}

#nav a:active {
	background-color: var(--lightteal);
}

#signup, #logout {
	margin-right: 1vw;
}

#signup {
	background-color: var(--green);
}

#logout {
	text-align: center;
	padding: 0 10px;
	cursor: default;
	color: #333;
	line-height: 1.2;
}

#logout a {
	padding: 2px;
	cursor: pointer;
	border-radius: 4px;
}

#headpad {
	height: 80px;
}

#sidepad {
	width: 10vw;
}

/* Content */
#Content {
	border-radius: 15px;
	background-color: rgba(255,255,255,0.95);
	text-align: center;
	width: 1000px;
	margin: 40px auto;
	padding: 10px;
	box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Homepage Intro */
#landing {
	height: 98.5vh;
	display: flex;
}

#intro {
	display: flex;
	flex-direction: column;
	text-align: left;
	color: #fff;
	justify-content: center;
	padding: 0 2vw;
	background-color: rgba(0,0,0,0.3);
}

#intro a:hover {
	text-decoration: none;
}

#title{
	font-size: 10vh; 
	text-shadow: 2px 2px 9px #000; 
	margin: 0;
	max-width: 96vw;
	overflow: hidden;
}

#sub-title{
	font-size: 3vh; 
	text-shadow: 2px 2px 3px #000;
	color: var(--lightgreen);
}

/* Interested Banner (Call to Action) */
#interested {
	background-color: #fff;
	box-shadow: 0 0 6px rgba(0,0,0,0.7);
	bottom: 0;
	color: #333;
	padding: 4px 10px;
	text-align: center;
	cursor: pointer;
	transition: background-color 200ms;
	border: 1px solid transparent;
}

#interested:hover {
	background-color: var(--lightgreen);
	transition: 0ms;
	border: 1px solid var(--green);
	color: #000;
}

#interested:active {
	background-color: var(--green);
}

#interested p {
	font-size: 2.5vh;
	margin: 0;
	padding: .45vh 0vw .1vh 0vw;
}

/* Info Section */
#info {
	height: 50vh;
	position: relative;
	display: flex;
	flex-direction: row;
	background-color: white;
	overflow-x: scroll;
	overflow-y: hidden;
	padding: 0;
	margin: 0;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

#info::-webkit-scrollbar {
	display: none;
}

#info-cover {
	position: absolute;
	height: 100%;
	width: 100vw;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	right: 100vw;
	background-color: white;
}

#info-title {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#info-title p {
	margin: 0vh 2vw;
	text-align: left;
	color: #333;
}

/* Plate Animation*/
#plate1 {
	position: relative;
	right: 10vw;
	margin: 0 -10vw 0 0;
	transform: rotate(0deg);
	left: -10vw;
	transition: transform 3s, left 3s;
}

#info:hover #plate1{
	transform: rotate(180deg);
	left: 80vw;
	transition: transform 3s 0.25s, left 3s 0.25s;
}

#info-cover {
	left: -100vw;
	transition: left 3s;
}

#info:hover #info-cover{
	left: 0vw;
	transition: left 3s 0.25s;
}


#profile {
	text-align: center;
	background-color: rgba(255,255,255,0.95);
}

/* Profile */
.profile {
	border-radius: 15px;
	background-color: rgba(255,255,255,0.95);
	text-align: center;
	max-width: 1000px;
	margin: 40px auto;
	padding: 10px;
	box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Result Image */
#resultImage {
    width: 225px;
    height: 225px;
    object-fit: cover;
	transition: box-shadow 200ms;
}

#resultImage:hover {
	box-shadow: 0 0 3px gray;
	transition: 0ms;
}


/* Ingredient Table */

#ingredients-column{
    display:flex;
    flex-direction:column;
}
.ingredients-row{
	display: flex;
	flex-direction: row;
}
.ingredients-row:hover .ingredientsX{
	display: block;
}
.ingredients-row-num{
    margin: 0;
}
.ingredients-row-select{
    height: 27px;
    padding: 0;
}
.ingredients-row-ing{
    width: 100%;
	margin-left: 4px;
    flex:1;
}

.ingredientsX{
    display: none;
    font-size: 20px;
    font-weight: bold;
    padding-left: 5px;
}
.ingredientsX:hover {
    cursor: pointer;
    color: #f44336;
}
#deleteModal,
#resultsModal{
    display:none;
    position:fixed;
    z-index: 1;
    width:100%;
    height: 100%;
    background-color: rgba(0,0,0,.85);
    top: 0;
    left: 0;
}
#private-row{
    padding: 5px 5px;
    border-top: 1px solid gray;
    margin: 5px 18px;
}