/*
	Written by Artem K.
	https://www.github.com/goodguyartem
*/

html {
	--rainbow-gradient: linear-gradient(90deg, #475deb 17%, #22a645 37%, #22a645 63%, #d81c24 81%);
	--rainbow-button-gradient: linear-gradient(170deg, #475deb 15%, #22a645 50%, #22a645 50%, #d81c24 85%);
	--blue0: #3F47CC;
	--blue1: #ACB1FF;
	--blue2: #DBDDFF;
	--blue3: #F7F7FF;
	--blue4: #3F47CC0A;
	--blue-visited: #4285F4;
	--blue-active: #1c2069;
	--green: #23B04D0F;
	--pink: #EC1B240D;

	--nav-height: 138.3607px;

	font-family: "Manrope", "Poppins", sans-serif;
	scroll-behavior: smooth;
}

main {
	background-color: var(--blue3);
	background-image: url("/images/owk-bg.svg");
	background-repeat: repeat-y;
	margin: 0 auto;
	width: 100%;
	overflow: hidden;
	max-width: 1280px;
	padding: 1rem 0;
}

section,
.main-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin: 0 auto;
	width: 90%;
	box-sizing: border-box;
	scroll-margin-top: var(--nav-height);
}

.hidden {
	display: none;
}

h1, 
h2 {
	font-weight: 700;
	font-style: normal;
	font-size: 2.5rem;
	text-align: center;
	text-transform: uppercase;
	margin: 1.35em 0;
}

h3 {
	text-transform: uppercase;
	font-size: 1.5em;
}

p,
li {
	font-size: 1.25rem;
	font-weight: 300;
	line-height: 150%;
}

p {
	width: 100%;
}

.large,
.terms > li {
	font-size: 1.5625rem;
	line-height: 150%;
}

:is(h1, h2, h3, h4, h5, h6).extra-large {
	font-size: 8rem;
	margin: 0;
}

:is(h1, h2, h3, h4, h5, h6).large {
	font-size: 3rem;
	margin: 0.65em 0;
	line-height: 1;
}

.extra-large {
	font-size: 2.5rem;
}

.small,
.terms ul * {
	font-size: 1.1rem;
}

p.small {
	margin: 0.5rem 0;
}

.bold {
	font-weight: 500;
}

.compact {
	line-height: normal; /* More readable than 100%? */
}

p.centred-text {
	text-align: center;
}

.upper {
	text-transform: uppercase;
}

.gradient-text {
	background-image: var(--rainbow-gradient);
    color: transparent;
    background-clip: text;
	width: fit-content;
}

.gradient-text:not(h1, h2, h3) {
	font-weight: 500;
}

.box {
	display: block; 
	background: white;
	border: 1px solid var(--blue2);
}

section > ul,
section > ol,
.main-container > ul,
.main-container > ol {
	width: 100%;
}

.small-bullets,
.terms {
	box-sizing: border-box;
}

.small-bullets {
	padding-left: 1ch;
}

.small-bullets li {
	list-style: "•  ";
}

.partners-grid,
.sponsors-grid {
	max-width: 90%;
}

.partners-grid .box,
.sponsors-grid .box {
	width: 354px;
	max-width: 100%;
	height: 280px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 24px 0;
	color: black;
}

.sponsors-grid .box p,
.sponsors-grid .box a,
.sponsors-grid .box address,
.sponsors-grid .box figure {
	font-weight: 300;
	text-align: center;
	color: black;
	margin: 0;	
	line-height: 1.42;
	font-style: normal;
}

.sponsors-grid .box address > * {
	display: block;
}

.sponsors-grid .box :not(.small, .large, .extra-large) {
	font-size: 1rem;
}

.partners-grid .box img,
.sponsors-grid .box img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

#victor img {
	width: 114px;
	height: 114px;
	object-fit: cover;
	margin-bottom: 4px;
}

#alyssa {
	background: #6b6044;
}

#or {
	background: #B686C0;
}

#vfct {
	background: #F4BC80;
}

#glazgo {
	background: linear-gradient(45deg, rgb(34, 34, 34) 5%, rgb(59, 58, 58) 20%, rgb(34, 34, 34) 35%, rgb(34, 34, 34) 75%, rgb(85, 84, 84) 90%, rgb(134, 134, 134) 100%);
	background-position: 30%;
	background-repeat: no-repeat;
	animation-timing-function: ease-in-out;
	animation-duration: 7s;
	animation-iteration-count: infinite;
	animation-name: background;
}

@keyframes background {
    0% {
		background-size: 100%;
	}
	
    50% {
		background-size: 125%;
	}

	100% {
		background-size: 100%;
	}
}

#glazgo,
#glazgo p {
	color: rgb(230, 230, 230);
	padding: 0 12px;
	box-sizing: border-box;
}

#glazgo img {
	width: 148px;
	margin-bottom: 8px;
}

.review-panel {
	display: flex;
	margin-bottom: 64px;
}

.review-panel .review {
	width: 234px;
}

.review-panel a {
	text-decoration: none;
	z-index: 1;
	margin: auto -9px;
	box-shadow: rgb(0, 0, 0, 25%) 0px 4px 20px 0px;
}

.review-panel > a:nth-child(3):nth-last-child(3) {
	z-index: 2;
}

.review-panel > a:first-child,
.review-panel > a:last-child {
	z-index: 0;
}

.review {
	height: fit-content;
	margin: 20px 0;
	padding: 10px;
}

.review:hover {
	text-decoration: none;
}

.review:hover,
.sponsors-grid > a:hover,
.partners-grid > a:hover {
	filter: brightness(93%);
	transition: filter 90ms ease;
}

.review p {
	text-align: center;
	margin: 1em 0 0 0;
	color: black;
}

.review p:first-of-type {
	margin: 1em 0;
	font-weight: 400;
	font-size: 1.25rem;
	text-align: center;
}

.review img {
	display: block;
	margin: 0 auto;
	width: 75px;
	height: 75px;
	clip-path: circle();
	object-fit: cover;
}

a {
	color: var(--blue0);
	font-weight: 300;
	text-decoration: none;
}

a:hover,
a:active {
	text-decoration: underline;
}

a:visited {
	color: var(--blue-visited);
}

a:active {
	color: var(--blue-active);
}

#contact {
	width: 80%;
	margin: 0 auto;
}

.contact-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.contact-details p {
	margin: 0;
	max-width: 90%;
}

.contact-details address {
	font-style: normal;
	font-weight: 300;
	margin-bottom: 1em;
}

.contact-form h3 {
	margin-top: 0;
	margin-bottom: 24px;
	font-weight: 300;
	text-align: center;
}

.contact-form {
	margin-top: 2em;
	max-width: 100%;
}

.logo-full-text {
	height: 1.7em;
	max-height: 1.7em;
	max-width: 100%;
	margin-bottom: 24px;
	object-fit: contain;
}

.inline-logo {
	width: 2em;
}

.rainbow-button,
.rainbow-button:any-link {
	display: block;
	text-decoration: none;
	background: var(--rainbow-button-gradient) no-repeat;
	color: white;
	font-weight: 400;
	padding: 0.4em 1.4em;
	min-width: fit-content;
	max-width: 90%;
	text-align: center;
	margin: 1em 0;
	border: 1px solid rgb(255, 255, 255, 5%);
	border-radius: 5px;
	box-shadow: rgb(0, 0, 0, 25%) 0px 4.05px 4.05px 4.05px;
	font-size: 2.5rem;
	opacity: 85%;
	transition: all 0.25s ease-in-out;	
}

.rainbow-button:hover {
	opacity: 100%;
}

.contact-form input[type="submit"] {
	width: 214px;
	height: fit-content;
	border: 0.35px solid var(--blue2);
	border-radius: 1px;
	margin: 2em auto;
	font-size: 2em;
	font-weight: 500;
}

input,
textarea {
	display: block;
	height: 2.2em;
	min-height: 2.2em;
	padding: 0.5em 0.25em;
}

textarea {
	resize: vertical;
}

input:not([type="submit"]),
textarea {
	border: 1px solid var(--blue2);
	box-sizing: border-box;
}

.contact-form input:not([type="submit"]),
.contact-form textarea {
	width: 400px;
	max-width: 100%;
	max-height: 512px;
}

.blue-button {
	background: var(--blue1);
	font-size: 1rem;
	font-weight: 300;
	width: fit-content;
	margin: 8px;
	padding: 0.2em 4.35em;
	box-sizing: content-box;
	border: none;
	transition: all 100ms ease-in-out;
	border-radius: 16px;
}

.blue-button:hover {
	border-radius: 4px;
	padding: 0.2em 5em;
}

.blue-button:active {
	border-radius: 24px;
	padding: 0.2em 3.25em;
}

label {
	font-weight: 300;
	font-size: 1rem;
	display: block;
	margin: 16px 0;
}

.footnote {
	font-weight: 300;
	font-size: 0.85em;
}

.required {
	color: #EC1B24;
}

@media (min-width: 1080px) {
	main {
		padding-top: 3.5rem;
	}

	section,
	.main-container {
		margin: 2em auto;
	}

	section:last-of-type,
	.main-container {
		padding-bottom: 10%;
	}

	.contact-container {
		flex-direction: row;
		justify-content: space-between;
		align-items: normal;
	}

	.contact-form input[type="submit"] {
		width: 157px;
		margin: 0;
		font-size: 1.2rem;
	}

	.review-grid {
		display: grid;
		grid: auto-flow / 1fr 1fr 1fr 1fr;
		margin-top: 2.6625rem;
		gap: 48px 20px;
	}

	.review {
		padding: 10px;
		width: 234px;
	}

	.sponsors-grid {
		display: grid;
		grid: auto-flow / 1fr 1fr 1fr;
		gap: 32px;
	}

	.partners-grid .box,
	.sponsors-grid .box {
		width: 254px;
		height: 254px;
		margin: 0;
	}

	.contact-form h3 {
		text-align: start;
	}

	.padded-box {
		padding: 0 7%;
		box-sizing: border-box;
		width: 100%;
	}

	.partners-grid {
		display: grid;
		justify-content: center;
		grid-template-columns: repeat(3, 253px);
		gap: 80px;
	}
}

/* Nav bar */

.nav-bar {
	position: sticky;
	top: 0;
	display: flex;
	height: var(--nav-height);
	flex-direction: row;
	justify-content: space-between;
	background: var(--blue2);
	padding: 0 32px;
	z-index: 10;
}

.nav-logo {
	width: 118px;
	padding: 20px 0;
}

.nav-logo-container {
	margin: auto 0;
}

.nav-index {
	display: none;
	position: absolute;
	top: var(--nav-height);
	left: 0;
	right: 0;
	margin: 0 auto;
	width: 100%;
	background: var(--blue2);
	border-bottom: 2px solid var(--blue1);
}

.nav-index.expanded {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.nav-index,
.lang-select {
	padding: 0;
	list-style: none;
}

.lang-select button.current {
	display: inline-block;
	font-weight: 600;
}

.nav-index a,
.footer-index *,
.lang-select button {
	text-transform: uppercase;
	font-weight: 400;
	font-size: 1rem;
	text-decoration: none;
	color: black;
	background: none;
	border: none;
}

button,
input[type="submit"] {
	cursor: pointer;
}

.lang-select button:hover,
.footer-index a:hover {
	color: var(--blue1);
}

.nav-index a:active,
.nav-index a.current,
.lang-select button:active,
.footer-index a:active {
	color: var(--blue0);
}

.nav-index a:hover {
	color: var(--blue1);
}

.nav-index a,
.footer-index > li > * {
	display: block;
	width: 100%;
	text-align: center;
}
.nav-index a,
.footer-index > li > :not(.social-icon-container) {
	padding: 1em 0;
}

.lang-select button {
	display: none;
	width: 4em;
	margin: 8px 0 0 0;
	padding: 1em 0;
}

.expand-nav {
	background: none;
	border: none;
	transition: all 250ms ease-in-out;
}

.nav-controls {
	display: flex;
	align-items: center;
	flex-direction: column;
}

@media (min-width: 640px) {
	.nav-index {
		width: 60%;
		border: 2px solid var(--blue1);
		border-top: 0;
	}

	.nav-index li {
		width: 100%;
	}
}

@media (min-width: 1360px) {
	.nav-bar {
		padding: 0 64px;		
		align-items: center;
	}

	.nav-logo {
		width: 234px;
	}

	.nav-index,
	.nav-index.expanded {
		display: flex;
		justify-content: space-evenly;
		align-items: center;
		flex-direction: row;
		position: static;
		border: none;
		background: none;
		width: 100%;
		margin: 0 16px;
	}

	.nav-index li {
		width: fit-content;
	}

	.nav-index a {
		padding: 0 1em;
		width: fit-content;
		box-sizing: border-box;
	}

	.lang-select {
		display: block;
		width: max-content;
	}

	.lang-select button {
		display: inline-block;
		width: fit-content;
		margin: 0 0.5em;
		padding: 0;
	}

	.expand-nav {
		display: none;
	}
}

/* Footer */

footer {
	width: 100%;
	background: var(--blue2);
	box-sizing: border-box;
	padding: 48px 32px 8px 32px;
}

footer p {
	line-height: 150%;
}

.footer-main {
	display: flex;
	justify-content: space-evenly;
	padding: 0 16px;
	align-items: center;
	flex-direction: column;
}

.footer-nav {
	width: 100%;
}

.footer-index {
	padding: 0;
	list-style: none;
}

.footer-index > li {
	text-align: center;
	width: 100%;
}

.footer-index > li > * {
	display: block;
	width: 100%;
	text-align: center;
	height: inherit;
	margin: auto;
	color: black;
	text-decoration: none;
}

.footer-index > li > div {
	padding-bottom: 0;
}

.copyright-notice {
	font-size: 0.9rem;
	margin: 0;
}

.copyright-notice:first-of-type {
	margin-top: 1.5em;
}

.newsletter-form {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min-content;
}

.newsletter-form p {
	margin-top: 0;
}

.newsletter-form input:not([type="submit"]) {
	width: calc(1rem + 284px);
	height: 3em;
	border: 1px solid var(--blue1);
}

.social-icon {
	width: 32px;
	height: 32px;
	clip-path: circle();
	display: inline-block;
}

.attrib-link {
	color: black;
}

.attrib-link:hover {
	color: var(--blue1);
}

.attrib-link:active {
	color: var(--blue0);
}

@media (min-width: 440px) {
	.footer-nav {
		width: 360px;	
	}
}

@media (min-width: 1360px) {
	.footer-main {
		flex-direction: row;
	}

	.footer-nav {
		min-width: fit-content;
	}

	.footer-index {
		display: grid;
  		grid-auto-flow: column;
  		grid-template-rows: repeat(3, auto);
	}

	/* Non-clickable regions. */
	.footer-index > li {
		padding: 0 3em;
	}

	/* Links, etc. */
	.footer-index > li > :not(.social-icon-container) {
		padding: 0.2em 0;
	}

	.footer-index > li :not(.social-icon) {
		width: fit-content;
	}

	.copyright-notice {
		font-size: 0.85rem;
	}
}

@media (min-width: 1500px) {
	.footer-index > li {
		padding: 0 5em;
	}
}