@import "../../styles/variables";

.event-form {
	width: 100%;
	height: 100%;
	margin: auto;
	background: -webkit-linear-gradient(top, #fff, $color-blue);
	background: -moz-linear-gradient(top, #fff, $color-blue);
	background: -o-linear-gradient(top,  #fff, $color-blue); 
	background: linear-gradient(to bottom,  #fff, $color-blue);

	&__content {
		max-width: 1000px;
		position: relative;
		margin: auto;
		padding: 2rem;
		border-left: 1px solid $color-mint;
		border-right: 1px solid $color-mint;
		background-color: #eee;
		padding-bottom: 3%;
	}

	&__event-form__main{
		position: relative;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
	}

	&__text {
		font-size: 1.6rem;
    }
    
    &__form-title{
		color: $color-blue;
		font-size: 3rem;
		letter-spacing: 0.2;
		font-weight: 600;
		margin-bottom: 3%;
    }

	&__toggle-span {
		font-size: 1.6rem;
		font-weight: bold;
		color: rgb(102, 104, 223);
	}

	&__event-box {
		margin-bottom: 2rem;
	}

	&__control-box {
		margin-top: 2rem;
		width: 100%;
	}

	&__error-event-text {
		margin-top: 1rem;
		text-align: center;
		width: 100%;
		color: #c90707;
		font-size: 2rem;
	}

	&__picture {
		width: 100%;
		height: 400px;
		overflow: hidden;
		border: 1px solid $color-mint;
		margin-bottom: 2rem;
	}

	&__submit-btn {
		width: 100%;
		border-radius: 3px;
		display: block;
		border: none;
		color: $color-white;
		background-color: $color-mint;
		cursor: pointer;
		font-weight: 600;
		font-size: 1.2rem;
		transition: 0.2s;
		padding: 1.3rem 1rem;

		&:focus {
			outline: none;
		}

		&:hover {
			background-color: $color-blue;
			color: $color-white;
			outline: none;
			transform: translateY(-1px);
			box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);

			&:after {
				transform: scaleX(1.4) scaleY(1.6);
				opacity: 0;
			}
		}

		&:disabled {
			color: $color-mint;
			border: 1px solid $color-mint;
			background-color: #eee;
		}
	}
}

@media (max-width: $small){
	.event-form {
		
		&__form-title{
			font-size: 2rem;
			letter-spacing: 0;
		}
		
		&__picture {
			height: 180px;
		}
	}
}