html, body {
	margin: 0;
	height: 100%;
	font-family: "Raleway";
	font-weight: 400;
}

header, footer {
	font-size: 10pt;
	color: #ccc;
	padding: 15px 0;
}

.content-container {
	min-height: 100vh;
	display: flex;
	justify-content: center;
  align-items: center;
}

.content {
	padding: 40px;
}

@media (max-width: 1000px) {
	.content {
		padding: 20px;
	}
}

p {
	font-family: "Raleway";
	font-weight: 400;
	font-size: 40px;
	line-height: 53px;
}

@media (max-width: 1000px) {
	p {
		font-size: 30px;
		line-height: 40px;
	}
}

.just-paragraphs p {
	margin-top: 10px;
	margin-bottom: 10px;
}

/* https://getcssscan.com/css-buttons-examples */
.next-button {
	appearance: button;
	backface-visibility: hidden;
	background-color: #405cf5;
	border-radius: 6px;
	border-width: 0;
	box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset,rgba(50, 50, 93, .1) 0 2px 5px 0,rgba(0, 0, 0, .07) 0 1px 1px 0;
	box-sizing: border-box;
	color: #fff;
	cursor: pointer;
	font-size: 100%;
	height: 44px;
	line-height: 1.15;
	margin: 25px 0 0;
	outline: none;
	overflow: hidden;
	padding: 0 25px;
	position: relative;
	text-align: center;
	text-transform: none;
	transform: translateZ(0);
	transition: all .2s,box-shadow .08s ease-in;
	user-select: none;
	-webkit-user-select: none;
	touch-action: manipulation;
	width: 100%;
}

.next-button.hidden {
	display: none;
}

.next-button:disabled {
  cursor: default;
}

.next-button:focus {
  box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset, rgba(50, 50, 93, .2) 0 6px 15px 0, rgba(0, 0, 0, .1) 0 2px 2px 0, rgba(50, 151, 211, .3) 0 0 0 4px;
}

/* Welcome task */ 

a.invisible-link,
a.invisible-link:hover,
a.invisible-link:active,
a.invisible-link:focus {
	text-decoration: none;
	color: inherit;
	cursor: inherit;
}

/* "Find a link" task */

.find-link-task {
	height: 100vh;
}

.find-link-task .click-area {
	position: absolute;
	left: 0px;
	top: 0px;
	width: 100px;
	height: 100px;
}

.find-link-task .right-up-corner {
	position: absolute;
	right: 10px;
	top: 5px;
	color: white;
	font-size: 10pt;
}

.find-link-task .arrow {
	position: absolute;
	left: 30%;
	top: 40%;
}

.find-link-task .arrow > img {
	transform: scale(0.5);
}

.find-link-task .bottom-text {
	position: absolute;
	left: calc(30% - 100px);
	top: 120%;
	padding-bottom: 20px;
	margin-left: 20px;
	margin-right: 20px;
}

@media (max-width: 1000px) {
	.find-link-task .arrow {
		left: calc(50% - 30px);
	}

	.find-link-task .bottom-text {
		left: calc(50% - 140px);
	}
}

/* Crossword task */

.crossword {
	display: block;
	padding-right: 30px;
}

.crossword .row {
	display: flex;
}

.crossword .square { 
	display: inline-block;
	font-size: 24px;
	width: 50px;
	height: 50px;
	line-height: 1.25em;
	vertical-align: middle;
	user-select: none;
	border: 0.5px solid white;
	border-right-width: 0;
	border-bottom-width: 0;
}

.crossword .square.letter.last-letter {
	border-right-width: 0.5px;
}

.crossword .square.letter.no-bottom-letter {
	border-bottom-width: 0.5px;
}

.crossword .square.letter {
	background-color: white;
 	user-select: text;
 	border-color: rgb(32,32,32);
}

.crossword .square.letter.answer  {
	background-color: #FFF1F1;
}

.crossword .char:focus {
	box-shadow: inset 0 0 0 2px rgba(255,32,32,1);  
}

.crossword .char {
	font-size: 24px;
	text-transform: uppercase;
	outline: 0;
	border: 0;
	padding: 0;
	margin: -1px 0 0 -1px;
	width: 52px;
	height: 52px;
	text-align: center;
	background: none; 
}


.crossword .square.row-number {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: #666;
    font-size: 18px;
    padding-right: 15px;
}

@media (max-width: 600px) {
	.crossword {
		padding-right: 0;
	}

	.crossword .square {
		width: 30px;
		height: 30px;
		font-size: 16px;
	}

	.crossword .char {
		font-size: 16px;
		width: 32px;
		height: 32px;
	}

	.crossword .square.row-number {
		font-size: 10px;
		padding-right: 7px;
	}
}

@media (max-width: 320px) {
	.crossword .square {
		width: 20px;
		height: 20px;
		font-size: 12px;
	}

	.crossword .char {
		font-size: 12px;
		width: 22px;
		height: 22px;
	}

	.crossword .square.row-number {
		font-size: 10px;
		padding-right: 7px;
	}
}

.hints {
	font-size: 18px;
}

.hints .hint {
	font-size: inherit;
	line-height: inherit;
	text-indent: -1em;
}

.hints .hint:first-child {
	margin-top: 0;
}

.crossword-container {
	display: flex;
}

@media (max-width: 1000px) {
	.crossword-container {
		flex-direction: column;
	}

	.hints {
		padding-left: 2em;
		padding-right: 0;
		font-size: 14px;
		width: 90vw;
	}

	.hints .hint {
		margin: 4px;
	}
}

/* "Share me" task */

.share-me .first-line {
	margin-bottom: 0;
	text-indent: -0.5em;
}

.share-me .second-line {
	margin-top: 0;
}

.share-me s {
	color: #666;
	text-decoration-thickness: 2px;
}

/* Quiz task */

.quiz .question p {
	font-size: 16pt;
	line-height: 20pt;
	max-width: 800px;
}

.quiz .options label {
	font-family: "Arial";
}



/* https://codepen.io/t_afif/pen/abaYxQj */
.quiz .options {
  --s: 1em;     /* control the size */
  --g: 10px;    /* the gap */
  --c: #405cf5; /* the active color */
  
  display: grid;
  grid-auto-rows: 1fr;
  gap: var(--g);
  position: relative;
}
.quiz .options:before {
  content:"";
  position: absolute;
  height: calc(var(--s)/2);
  left: calc(var(--s)/4 + var(--_x,0px));
  top: calc(var(--s)/4);
  background: var(--c);
  border-radius: 50%;
  aspect-ratio: 1;
  transition: .4s,left cubic-bezier(.1,-2000,.7,-2000) .4s;
}
.quiz .options label {
  display: inline-flex;
  line-height: var(--s);
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.quiz .options input {
  height: var(--s);
  aspect-ratio: 1;
  border: calc(var(--s)/8) solid var(--_c,#939393);
  border-radius: 50%;
  outline-offset: calc(var(--s)/10);
  padding: calc(var(--s)/8);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  font-size: inherit;
  margin: 0;
  transition: .3s;
}
.quiz .options input:checked {
  --_c: var(--c);
}
.quiz .options:not(:has(input:checked)):before {
  --_i: -1;
  opacity: 0;
  content: none;
}
.quiz .options:has(input:checked):before {
  opacity: 1;
  transform: translateY(calc(var(--_i)*(var(--s) + var(--g))))
}
.quiz .options:has(label:nth-child(1) input:checked):before {--_i:0;--_x:.02px}
.quiz .options:has(label:nth-child(2) input:checked):before {--_i:1;--_x:.04px}
.quiz .options:has(label:nth-child(3) input:checked):before {--_i:2;--_x:.06px}
.quiz .options:has(label:nth-child(4) input:checked):before {--_i:3;--_x:.08px}
.quiz .options:has(label:nth-child(5) input:checked):before {--_i:4;--_x:.1px}
/* and so on ..*/

.quiz .options input:disabled {
  background: 
     linear-gradient(#939393 0 0) 
     50%/100% 20% no-repeat content-box;
  opacity: .5;
  cursor: not-allowed;
}
@media print {
  .quiz .options input[type=radio] {
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
    background: none;
  }
}
@supports not selector(:has(*)) {
  .quiz .options:before {
    display: none;
  }
  .quiz .options input:checked {
    --_c: var(--c);
    background: var(--c) content-box;
  }
}

/* Find-ai task */

.find-ai {
	max-width: 600px;
}

.find-ai p {
	font-size: 18pt;
	line-height: 24pt;
}

.find-ai .images {
	display: flex;
	flex-wrap: wrap;
	user-select: none;
}

.find-ai .images img {
	flex: 0 2 22%;
	padding: 5px;
	margin: 2px;
	width: 100px;
	border: 2px solid white;
	cursor: pointer;
}

.find-ai .images img.selected {
	border: 2px solid #405cf5cc;	
}

/* Happy birthday task */

.happy-birthday {
	width: 600px;
}

@media (max-width: 600px) {
	.happy-birthday {
		width: 280px;
		margin-top: 50px;
	}
}

.happy-birthday .answer {
	width: 100%;
	margin-top: 50px;

/*	border-color: #405cf5;*/
	border-radius: 6px;
	border-width: 0.5px;
/*	box-shadow: #405cf511 0 0 0 1px inset, #405cf511 0 2px 5px 0, #405cf507 0 1px 1px 0;*/
	box-sizing: border-box;	
	font-size: 100%;
	height: 44px;
	line-height: 1.15;
	padding: 0 15px;
}

.happy-birthday .answer::placeholder {
	color: #ccc;
}

