/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/** end reset css**/
body {
	max-width: 1140px;
	margin: auto;
	font-family: 'Work Sans' ;
	font-size: 14px;
	display: flex;
	flex-direction: column;
	height: 100vh;
	justify-content: space-between;
}
header {
	display: flex;
	flex-direction: column-reverse;
	justify-content: space-between;
	
}
section {
	margin: 50px 40px;
}

h1{
	display: flex;
	flex-direction: column;
	font-family: 'Syne';
	font-size: 22px;
	font-weight: 800;
	color: #B1663C;
	padding: 2em;
}

h1 > span {
	font-family: 'Work Sans';
	font-size:10px;
	letter-spacing: 0.1em;
}

h2{
	font-family: 'Syne';
	font-weight: 700;
	font-size: 30px;
	color: #1D6154
}
nav ul {
	display: flex;
	align-items: center;
	list-style-type: none;

}
nav li {
	padding-left: 2.7em;
	font-size: 1.2em;
}

nav ul li img{
	width: 23px;
	height: 23px;
}

li:hover {
	color: #B1663C;
}

a {
	text-decoration: none;
	color: #000000;
}

a:visited {
	color: #000000; 
}

header nav ul {
	padding: 4em 0 4em 4em;
}

.nav-menu {
	display: flex;
	justify-content: space-between;
}

#introduction {
	display: flex;
	align-items: center;
	margin-bottom: 150px;
}
#introduction figure {
	flex: 1
}
#introduction img {
	display: block;
	margin: auto;
	width: 80%;
}

#introduction article {
	flex: 1
}
#introduction h2 {
	margin-bottom: 1em;
}

#introduction p {
	margin-bottom: 0.5em;
}
#portfolio h2 {
	display: flex;
	justify-content: center;
	padding-bottom: 1em;
	gap: 1em;
}


.buttons {
	display: flex;
	justify-content: center;
	gap: 1em;
	padding: 2em 0 3em 0;
}

.filter-button {
	font-family: 'Syne';
	font-weight: 700;
	font-size: 16px;
	color: #1D6154;
	border: 1px solid #1D6154;
	border-radius: 60px;
	padding: 0.5em 1em;
	background-color: unset;
}

.filter-button:hover{
	background-color: #1D6154;
	color: white;
    transition: 0.15s;
}

.filter-button.selected {
	background-color: #1D6154;
	color: white;
}

.gallery {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-column-gap: 20px;
	grid-row-gap: 20px;
}

.gallery img {
	width: 100%;
}

#contact {
	width: 50%;
	margin: auto;
}
#contact > * {
	text-align: center;

}
#contact h2{
	margin-bottom: 20px;
}
#contact form {
	text-align: left;
	margin-top:30px;
	display: flex;
	flex-direction: column;
}

#contact input {
	height: 50px;
	font-size: 1.2em;
	border: none;
	box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
}
#contact label {
	margin: 2em 0 1em 0;
}
#contact textarea {
	border: none;
	box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
}

input[type="submit"]{
	font-family: 'Syne';
	font-weight: 700;
	color: white;
	background-color: #1D6154;
	margin : 2em auto ;
	width: 180px;
	text-align: center;
	border-radius: 60px ;
}

footer nav ul {
	display: flex;
	justify-content: flex-end;
	margin: 2em 0;
}

/* Login page*/
.body-login {
	display: flex;
	flex-direction: column;
	height: 100vh;
	justify-content: space-between;
}

#login-link {
	font-weight: 600;
} 

#login {
	width: 50%;
	margin: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#login > * {
	text-align: center;
}

#login h2 {
	justify-content: center;
}

#login form {
	text-align: left;
	padding-top:30px;
	display: flex;
	flex-direction: column;
}

#login input {
	width: 379px;
	height: 50px;
	font-size: 1.2em;
	border: none;
	box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
	align-self: center;
}
#login label {
	padding: 2em 0 1em 7em;
}

#login a {
	color: black;
	text-align: center;	
}

#login input[type="submit"]{
	font-family: 'Syne';
	font-weight: 700;
	color: white;
	background-color: #1D6154;
	margin : 2em auto ;
	width: 180px;
	text-align: center;
	border-radius: 60px ;
	cursor: pointer;
}

#error-message {
	display: none;
	color: red;
	align-self: center;
	font-weight: 500;
	padding-top: 1.5em;
}

#forget-pw {
	align-self: center;
}

/*admin page*/

.admin-mode {
	display: flex;
	width: 100vw;
	height: 59px;
	position: fixed;
	top: 0;
	z-index: 3;
	background-color: #000000;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	justify-content: center;
	align-items: center;
	gap: 21px;
}

.admin-mode i {
	padding-top: 1em;
	padding-right: 1em;
	color: white;
}
.admin-title {
	padding-top: 1em;
	color: white;
}

.edit-button {
	display: flex;
	flex-direction: row-reverse;
	gap: 0.75em;
	background-color: unset;
	border: none;
	padding-top: 0.75em;
	font-size: 14px;
	margin-bottom: 5em;
	cursor: pointer;
}

/* Modal window*/
.modal {
	position: fixed;
	display: flex;
	justify-content: center;
	align-items: center;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: none;
}

.modal-container {
	flex-direction: column;
	justify-content: space-between;
	width: 460px;
	max-width: calc(100vw - 20px);
	max-height: calc(100vh - 20px);
	background-color: white;
	border-radius: 10px;
	padding: 20px 45px 30px 45px;
  }

.modal-container h2{
	font-size: 20px;
  	font-family: "Work Sans";
  	color: black;
  	font-weight: 500;
  	display: flex;
  	justify-content: center;
	padding-bottom: 1em;
	padding-top: 0.75em;
} 

.modal-buttons{
	display: flex;
	justify-content: space-between;
}

.modal-back-button {
	background-color: unset;
	border: none;
	margin: 0;
	padding: 0;
	cursor: pointer;
}

.modal-back-button i {
	font-weight: bolder;
	color: white;
	font-size: 20px;
}

.modal-close-button {
	background-color: unset;
	border: none;
	margin: 0;
	padding: 0;
	cursor: pointer;
}

.modal-close-button i {
	font-weight: bolder;
	color: black;
	font-size: 20px;
}

.display-photo {
	display: flex;
  	flex-flow: row wrap;
	flex: 1 1 auto;
	justify-content: flex-start;
	align-items: center;
	gap: 0.6em;
	margin: 1.5em 1.2em; 
	padding-bottom: 3em;
	border-bottom: 1.5px solid gainsboro;
}

.img-wrapper {
	position: relative;
}
  
.delete-icon {
	position: absolute;
	top: 6px;
	right: 8px;
	font-size: 8px;
	background-color: #000000;
	color: white;
	padding: 4px;
	border-radius: 3px;
	cursor: pointer;
}

.add-work {
	display: flex;
	justify-content: center;
	padding-top: 1em;
	padding-bottom: 0.5em;
}

.add-button {
	font-family: 'Syne';
	font-weight: 700;
	font-size: 12px;
	color: white;
	background-color: #1D6154;
	margin : 0 ;
	padding: 0.5em 1em;
	width: 180px;
	text-align: center;
	border: unset;
	border-radius: 60px ;
	cursor: pointer;
}

.add-content {
	justify-content: center;
	padding-bottom: 3em;
	margin: 1em 1.2em;
	border-bottom: 1.5px solid gainsboro;
}

.upload-form{
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.up-file-container {
	width:420px;
	height:169px;
	background-color: #E8F1F7;
	border-radius: 3px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
}

.fa-image{
	font-size: 60px;
	color: #b9c5cc;
	
}

.input-add-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 10px;
	border: none;
	background: #e8f1f6;
	color: #306685;
	z-index: 0;
	border-radius: 3px;
	cursor: pointer;
	position: relative;
}

.upload-text {
	z-index: 0;
	background: #cbd6dc;
	padding: 9px 35px;
	border-radius: 40px;
	font-family: "Work Sans";
	font-size: 12px;
	font-weight: 500;
}

.add-file-btn {
	position: absolute;
  	top: 0;
  	left: 0;
  	width: 100%;
  	height: 100%;
  	opacity: 0;
  	cursor: pointer;
  	z-index: 1;
}

.upload-description {
	margin-left: 2.5em;
	font-size: 13px;
}

.title-label, .category-label {
	font-family: "Work Sans";
	font-size: 14px;
	padding: 2em 0 0.5em 0;
}

.name-input, .category-select {
	border: none;
	outline: none;
  	box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
 	font-family: "Work Sans";
  	padding: 0 6px;
	height: 40px;
	-webkit-appearance: none; /* Safari et Chrome */
    -moz-appearance: none; /* Firefox */
    appearance: none; /* Standard */
}

.category-select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/></svg>');
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px 16px;
	padding-right: 30px;
  }
  
.submit-button {
	font-family: 'Syne';
	font-weight: 700;
	font-size: 12px;
	color: white;
	margin : 0 ;
	padding: 0.5em 1em;
	width: 180px;
	text-align: center;
	border: unset;
	border-radius: 60px ;
	cursor: pointer;
}

.invalid-file {
	text-align: center;
  	font-size: 10px;
  	color: red;
  	font-weight: bold;
}

.photoPreviewImg {
	max-width: 30%;
	height: 169px;
	
}

.icomplete-form {
	text-align: center;
  	font-size: 10px;
  	color: red;
  	font-weight: bold;
}