/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
* {
  background: #e5e5e5;
}

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;
}
header {
  display: flex;
  justify-content: space-between;
  margin: 50px 0;
}
section {
  margin: 50px 0;
}
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
button {
  cursor: pointer;
}
h1 {
  display: flex;
  flex-direction: column;
  font-family: "Syne";
  font-size: 22px;
  font-weight: 800;
  color: #b1663c;
}

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: 0 10px;
  font-size: 1.2em;
}

li:hover {
  color: #b1663c;
}
#introduction {
  display: flex;
  align-items: center;
}
#introduction figure {
  flex: 1;
}
#introduction figure div {
  width: 80%;
  margin: auto;
}
#introduction img {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
}

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

#introduction p {
  margin-bottom: 0.5em;
}
#portfolio figure {
  display: none;
}
.show {
  display: block !important;
}
#portfolio h2 {
  text-align: center;
  margin-bottom: 1em;
}
.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;
  background-color: white;
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
}

input {
  background-color: white;
}

.green_btn {
  display: block;
  font-family: "Syne";
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: white;
  background-color: #1d6154 !important;
  margin: 3rem auto;
  padding: 10px 50px;
  text-align: center;
  border: none;
  border-radius: 60px;
  transition: background-color 500ms ease;
}
.green_btn:hover,
.green_btn:focus {
  background-color: #0e2f28 !important;
  transition: background-color 1000ms ease;
}

footer {
  width: 100%;
  position: absolute;
  left: 0;
  padding: 5px 0;
}
footer,
footer * {
  background-color: white;
}

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

/* filters btn */
.filters {
  display: flex;
  justify-content: center;
  margin: 2em auto;
}
.filters button {
  font-family: "Syne";
  font-weight: 700;
  color: #1d6154;
  padding: 10px 30px;
  text-align: center;
  margin-left: 1rem;
  border: 1px solid #1d6154;
  border-radius: 60px;
}
.filters button:first-child {
  margin-left: 0;
}
.filters button:hover,
.active {
  background-color: #1d6154;
  color: white !important;
}

/* Login page */
.login_body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login_section {
  margin: auto;
  width: 50%;
}
.login_section form {
  text-align: left;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
}
.login_section input {
  height: 50px;
  font-size: 1.2em;
  border: none;
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
}
.login_section label {
  margin: 2em 0 1em 0;
}
.login_section button {
  font-family: "Syne";
  font-weight: 700;
  color: #1d6154;
  text-decoration: underline;
  background: inherit;
  border: none;
}
.login_section button[type="submit"] {
  font-family: "Syne";
  font-weight: 700;
  text-decoration: none;
  color: white;
  background-color: #1d6154;
  margin: 2em auto;
  width: 180px;
  height: 50px;
  text-align: center;
  border: none;
  border-radius: 60px;
}
#error {
  text-align: center;
  color: red;
  font-weight: bold;
  text-transform: uppercase;
}
.login_footer {
  bottom: 0;
}

/* index loggeed */
.edit_mode {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: white;
  background-color: black;
  width: 100%;
  padding: 0.3rem 0;
  position: absolute;
  top: 0;
  left: 0;
}
.edit_mode > * {
  color: white;
  background-color: black;
}
.edit_mode_btn {
  background-color: white;
  color: black;
  padding: 0.7rem;
  border-radius: 60px;
}
.edit_btn {
  border: none;
  padding: 0 0 1.5rem;
  color: black;
  cursor: pointer;
}
#portfolio_title {
  display: flex;
  justify-content: center;
  gap: 30px;
}

/* Modal */
.modal {
  display: none;
  position: absolute;
  width: 50%;
  left: 20%;
  top: 100px;
  border-radius: 10px;
  z-index: 3;
}
.modal_wrapper {
  position: relative;
  width: 90%;
  height: 100%;
  padding: 5rem 5.5rem;
  border-radius: 10px;
}
.modal .modal_icon_option {
  position: absolute;
  cursor: pointer;
  top: 30px;
  z-index: 4;
  padding: 5px;
  background-color: transparent;
  border: none;
}
#previous_modal {
  left: 30px;
}
#close_modal {
  right: 30px;
}
.modal_wrapper,
.modal_wrapper > *,
.modal_wrapper > * > *,
.modal_wrapper > * > * > * {
  background-color: white;
}
.grey-bg {
  display: none;
  position: absolute;
  background-color: black;
  z-index: 2;
  opacity: 0.5;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}
html,
#portfolio,
#introduction {
  position: relative;
}
#modal_title {
  font-size: 26px;
  text-align: center;
}
#modal_body {
  display: flex;
  flex-wrap: wrap;
  margin: 50px auto;
  gap: 5px;
  justify-content: left;
}
#modal_body .modal_picture {
  position: relative;
  width: calc(100% / 5 - 5px);
  flex: none;
}
#modal_body .modal_icon_wrapper {
  position: absolute;
  background-color: transparent;
  padding: 3px;
  right: 0;
}
#modal_body .modal_picture .modal_icon {
  cursor: pointer;
  color: white;
  padding: 4px;
  border-radius: 3px;
  margin-left: 3px;
}
#modal_body .modal_picture .modal_icon,
#modal_body .modal_picture .modal_icon i {
  cursor: pointer;
  background-color: black;
}
#modal_body .modal_picture img {
  margin-bottom: 0;
  width: 100%;
}
#modal_body .modal_picture button {
  padding: 10px 0;
  border: none;
}
#modal_actions {
  border-top: 1px solid #b3b3b3;
}
#modal_actions > * {
  cursor: pointer;
}
#modal_actions .delete_btn {
  display: block;
  font-family: "Syne";
  font-size: 14px;
  text-decoration: none;
  color: #d65353;
  margin: auto;
  text-align: center;
  border: none;
  border-radius: 60px;
}
.show {
  display: block !important;
}
.modal_profile_picture,
.modal_picture_input,
.modal_introduction {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.modal_profile_picture,
.modal_picture_input {
  position: relative;
  justify-content: space-around;
  align-items: center;
}
.modal_profile_picture,
.modal_picture_input {
  border: none;
  background: #e8f1f7;
  border-radius: 3px;
  width: 100%;
  text-align: center;
  height: 250px;
  margin-top: 30px;
}
.modal_introduction {
  gap: 30px;
}
.modal_introduction > * {
  border: 1px solid grey;
  padding: 0.3rem;
  border-radius: 10px;
}
#drop_label {
  color: #306685;
  background: #cbd6dc;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
}
#drop_zone input {
  display: none;
}
form .fas {
  width: 100%;
  color: #306685;
  font-size: 70px;
  background-color: #e8f1f7;
}
.picture_condition {
  color: #444444;
  background-color: inherit;
}
.edit_picture_form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.edit_picture_form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.edit_picture_form input,
.edit_picture_form select {
  border: none;
  background: #ffffff;
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
  font-size: 20px;
  height: 50px;
  padding-left: 1rem;
}
.logoff_Title {
  color: red;
  line-height: 1.5;
  text-align: center;
  margin: auto;
}
.preview_image {
  position: absolute;
  height: 100%;
  object-fit: contain;
  background-color: inherit;
  margin: 0 !important;
  top: 0;
}
.disable {
  background-color: #a7a7a7 !important;
}
.disable:hover,
.disable:focus {
  background-color: #a7a7a7 !important;
}
