@import './_postUpdate_responsive.css';

section.update__post {
	align-items: center;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	margin: 0 auto;
	min-height: 100vh;
	width: 100%;
	max-width: 3440px;
}

section.update__post .top {
	height: 4rem;
	width: 100%;
	max-width: 3440px;
	margin: 0;
	background-color: var(--text-color-dark-gray);
}

section.update__post h1 {
	color: var(--primary-color_contrast);
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0;
	padding: 1rem 0;
	text-align: start;
	width: 75%;
	border-bottom: solid 0.5px var(--text-color-light-gray);
}

section.update__post .update__post__form {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	width: 75%;
	max-width: 1440px;
}

section.update__post form {
	align-items: center;
	display: flex;
	flex-direction: column;
	height: calc(100% - 218px);
	justify-content: space-between;
	margin: 0;
	padding: 2rem 0;
	width: 100%;
	gap: 1rem;
}

section.update__post form .form__group {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
	gap: 1rem;
}

section.update__post form .form__group .input__container {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	width: 50%;
}

section.update__post form .form__group .input__container label {
	color: var(--primary-color_contrast);
	font-size: 1rem;
	font-weight: 500;
	margin: 1rem 0;
	padding: 0;
	text-align: start;
}

section.update__post form .form__group .input__container input {
	align-items: center;
	background-color: transparent;
	border-radius: 5px;
	border: solid 0.5px var(--text-color-light-gray);
	display: flex;
	flex-direction: column;
	font-size: 1rem;
	height: 50px;
	justify-content: center;
	line-height: 1.5rem;
	margin: 0;
	padding-left: 1rem;
	width: 100%;
}

section.update__post form .form__group .input__container input:focus {
	border: solid 1px var(--secondary-color-dark);
	outline: none;
}

section.update__post form .form__group .input__container select {
	align-items: center;
	background-color: transparent;
	border-radius: 5px;
	border: solid 0.5px var(--text-color-light-gray);
	display: flex;
	flex-direction: column;
	font-size: 1rem;
	height: 50px;
	justify-content: center;
	line-height: 1.5rem;
	margin: 0;
	padding-left: 1rem;
	width: 100%;
}

section.update__post form .form__group .input__container select:focus {
	border: solid 1px var(--secondary-color-dark);
	outline: none;
}

section.update__post form .form__group .input__container.img {
	position: relative;
}

section.update__post form .form__group .input__container .update__picture__input {
	border: none;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	position: absolute;
	justify-content: center;
	align-items: center;
	width: 400px;
	height: 200px;
	top: 0;
	left: 0;
	opacity: 0;
}

section.update__post form .form__group .input__container .update__picture__input.description {
	width: auto;
}

section.update__post form .form__group .input__container img {
	align-items: center;
	background-color: transparent;
	border-radius: 11px;
	display: flex;
	flex-direction: column;
	font-size: 1rem;
	justify-content: center;
	line-height: 1.5rem;
	margin: 0;
	padding: 0;
	width: 400px;
	height: 200px;
}


section.update__post form .form__group .input__container textarea {
	align-items: center;
	background-color: transparent;
	border-radius: 5px;
	border: solid 0.5px var(--text-color-light-gray);
	display: flex;
	flex-direction: column;
	font-size: 1rem;
	height: auto;
	justify-content: center;
	line-height: 1.5rem;
	margin: 0;
	overflow-y: scroll;
	overflow: auto;
	-ms-overflow-style: none;
	scrollbar-width: none;
	padding: 1rem;
	width: 100%;
}


section.update__post form .update__validation__area {
	align-items: center;
	border-radius: 0 0 1rem 1rem;
	border-top: 0.5px solid var(--text-color-light-gray);
	display: flex;
	flex-direction: row;
	gap: 1rem;
	height: 63px;
	justify-content: flex-end;
	padding: 0 2rem;
	width: calc(100% - 4rem);
}

section.update__post form .update__validation__area .cancel__button {
	background: linear-gradient(#fff, #eee);
	border-radius: 0.5rem;
	border: none;
	color: var(--secondary-color-dark);
	cursor: pointer;
	font-size: 1rem;
	font-weight: 500;
	margin: 0 0.5rem;
	outline: solid 0.5px var(--text-color-light-gray);
	padding: 0.5rem 1rem;
	text-decoration: none;
	transition: var(--default-transition);
}

section.update__post form .update__validation__area .cancel__button:hover {
	background: linear-gradient(#eee, #fff);
	color: var(--secondary-color-dark);
}

section.update__post form .update__validation__area .main__button {
	background-color: var(--primary-color_contrast);
}


section.update__post section.update__post .bottom {
	height: 3rem;
	width: 100%;

}
