/* H5P theme variable overrides */
html.h5p-iframe:root {
    --h5p-theme-main-cta-base: #313D45 !important;
    --h5p-theme-main-cta-light: #a88e42 !important;
    --h5p-theme-main-cta-dark: #161616 !important;
    --h5p-theme-contrast-cta: #ECECEC !important;
    --h5p-theme-contrast-cta-white: #A88E42 !important;
	--h5p-theme-alternative-light: #ECECEC !important;
	--h5p-theme-alternative-dark: #ecdfbc !important;
	--h5p-theme-alternative-base: #ecdfbc !important;
	--h5p-theme-border-radius-large: none;
    --h5p-theme-border-radius-medium: none;
    --h5p-theme-border-radius-small: none;
}

/* Check button: normal state */
button.h5p-theme-button.h5p-theme-primary-cta {
    background-color: #313D45 !important;
}

/* Check button: mouse hover */
button.h5p-theme-button.h5p-theme-primary-cta:hover {
    background-color: #a88e42 !important;
}

/* Check button: pressed */
button.h5p-theme-button.h5p-theme-primary-cta:active {
    background-color: #161616 !important;
}

/* Question background */
.h5p-blanks .h5p-question-content {
  background-color: #ECECEC;
}

/* Question text input fields */
.h5p-blanks .h5p-text-input {
  border: 2px solid #ECDFBC;
}

/* Feedback background */
.h5p-theme .h5p-question-evaluation-container.evaluation-mode {
  background-color: #ECECEC;
}

/* Crossword buttons */
.h5p-joubelui-button:hover, .h5p-joubelui-button:focus {
  background: #a88e42;
  border-radius: 0;
}

.h5p-joubelui-button, .h5p-joubelui-button {
  background:  #313D45;
  border-radius: 0;
}

.h5p-crossword .h5p-crossword-input-fields-group-wrapper-clue .h5p-crossword-input-fields-group-clue-content .h5p-crossword-input-fields-group-extra-clue {
  display: none !important;
}

/* Memmory cards */
@media (max-width: 639px) {
	.h5p-memory-game .h5p-memory-card {
		min-width: 8em;
		min-height: 8em;
		}
}

@media (min-width: 640px) {
	.h5p-memory-game .h5p-memory-card {
		min-width: 8em;
		min-height: 8em;
		}
}

@media (min-width: 960px) {
	.h5p-memory-game .h5p-memory-card {
		min-width: 10em;
		min-height: 10em;
		}
}

@media (min-width: 1200px) {
	.h5p-memory-game .h5p-memory-card {
		min-width: 14.5em;
		min-height: 14.5em;
		}
}

.h5p-memory-game .h5p-status {
	background-color: #ECECEC;
}

.h5p-memory-game .h5p-memory-card .h5p-front::after {
	height: 38%;	
}

/* Essay */
.h5p-essay.h5p-theme .h5p-essay-input-field-textfield {
	border: 2px solid #ECDFBC;
}

.h5p-no-frame > .h5p-theme > .h5p-question-main-content > .h5p-question-content, .h5p-no-frame > .h5p-theme > .h5p-question-evaluation-container {
	margin-left: 4px;
    margin-right: 4px;
}

.h5p-theme .h5p-question-introduction {
  font-size: var(--h5p-theme-font-size-m);
  font-weight: 200;
}

/* Drag and Drop */
.h5p-no-frame > .h5p-theme > .h5p-question-main-content > .h5p-question-introduction {
		display:none;
	}