
/* source: https://codepen.io/doel_javid/pen/OPVXKaX */

@keyframes gummy-btn-hover {
	40% {
		transform: scale(1.05);
		border-radius: 10px;
	}
	70% {
		transform: scale(1.05);
		border-radius: 16px;
	}
	100% {
		transform: scale(1.05);
		border-radius: 10px;
	}
}

@keyframes gummy-btn-press {
	75% {
		transform: scale(0.85);
		border-radius: 32px;
	}
	100% {
		transform: scale(0.9);
		border-radius: 20px;
	}
}

#weekly-poll-form {
	display: flex;
	flex-direction: column;
	align-items: center;
}

#weekly-poll-form[hidden] {
	display: none !important;
}

#poll-submit-button {
	position: relative;
	padding: 8px;
	background-color: #4f5;
	color: #000;
	border: 3px solid #0a0;
	border-radius: 16px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	transition: all linear 0.2s;
	text-align: center;
	display: block;
	margin-top: 8px;
}
#poll-submit-button:hover {
	transform: scale(1.05);
	border-radius: 10px;
	animation: 0.5s linear gummy-btn-hover;
	cursor: pointer;
}
#poll-submit-button:active {
	transform: scale(0.9);
	border-radius: 20px;
	animation: 0.2s linear gummy-btn-press;
}

#poll-submit-button:before {
    content: "";
    position: absolute;
    top: 6px;
    left: 15%;
    width: 70%;
    height: 2px;
    background-color: #fff;
    border-radius: 8px;
    pointer-events: none;
}


.gummy-strawberry {
	background-color: #fad;
	border-color: #d7b;
}

#poll-submit-button.gummy-strawberry {
	background-color: #fad;
	border-color: #d7b;
}

.poll-feedback {
	margin-top: 14px;
	font-weight: 700;
}

#poll-options {
	display: block;
	text-align: left;
	margin-bottom: 12px;
}

.poll-option {
	display: block;
	margin: 4px 0;
}

.poll-results {
	margin: 16px auto 0;
	padding: 10px 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 2px dashed #fff;
	border-radius: 10px;
	max-width: 520px;
	text-align: center;
}

.poll-results h3 {
	margin-top: 0;
}

.poll-results ul {
	margin: 0;
	padding-left: 0;
	list-style: none;
}

.poll-results li {
	margin: 4px 0;
}

/* Fix for Smaller Screens */

@media (max-height: 300px) {
	body {
		justify-content: flex-start;
	}
}

/* Adjust for Reduced Motion */

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation-duration: 0.001s !important;
	}
}
