:root {
	--color-bg-darker: rgb(0, 0, 0);
	--color-bg-dark: rgb(5, 5, 5);
	--color-bg-primary: rgb(10, 10, 10);
	--color-bg-secondary: rgb(25, 25, 25);
	--color-text-muted: rgb(80, 80, 80);
	--color-text-subtle: rgb(155, 155, 155);
	--color-text-default: rgb(230, 230, 230);

	--color-accent-primary: rgb(255, 130, 0);
	--color-accent-muted: rgb(255, 160, 74);
	--color-accent-onInteraction: rgb(188, 96, 0);
}

/* Main style (common between all types of media */

* {
	font-family: sans-serif;
	font-style: normal;
	font-weight: 400;
	line-height: normal;

	color: aliceblue;
	outline-color: var(--color-accent-primary);
	margin: 0;
}

b {
	font-weight: bold;
}

i {
	font-style: italic;
}

html {
	background-color: var(--color-bg-primary);
	scroll-behavior: smooth;
	min-height: calc(100vh - 60px); /* Screen size minus top and bottom padding. */
	font-size: clamp(12px, 1.2vw, 24px);
	
	padding: 30px 100px;
}

body {
    padding: 0;
	
	overflow-x: hidden;
	overflow-y: auto;
	
	min-width: 100%;
	max-width: 1080px;
	min-height: calc(100vh - 60px); /* Html minimum size actually. */
	height: auto;

	display: flex;
	flex-direction: column;
}

.horizontal {
	display: flex;
	align-items: center;
	flex-direction: row;
}

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

.align-start {
	align-items: flex-start;
}

.align-end {
	align-items: flex-end;
}

.gap-50 {
	gap: 50px;
}

.flex-1 {
	flex: 1;
}

.vertical-separator {
	align-self: stretch;
	width: 1px;
	border-radius: 0.5px;
	background-color: var(--color-text-subtle);
}

.horizontal-separator {
	align-self: stretch;
	height: 1px;
	border-radius: 0.5px;
	background-color: var(--color-text-subtle);
}

.fill-space {
	flex-grow: 1;
}

.subtle-text {
	color: var(--color-text-subtle);
}

header {
	color: var(--color-text-default);
	font-size: 1rem;

	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	display: flex;
	width: 100%;
	padding: 0;
	margin-bottom: 60px;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 20px;
}

header a {
	padding: 0;
	color: var(--color-text-default);
	text-decoration: none;
}

header h1 {
	color: var(--color-text-default);
	font-size: 1rem;
}

header p {
	color: var(--color-text-subtle);
	font-size: 1rem;
}

header .horizontal {
	gap: 40px;
}

header .h-spaced {
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: center;
}

#intro-title {
	color: var(--color-text-default);
	font-size: 4rem;
}

#intro-subtitle {
	color: var(--color-accent-primary);
	font-size: 2rem;
}

#intro-caption {
	color: var(--color-text-subtle);
	font-size: 1.1rem;
}

.button {
	text-decoration: none;
	color: var(--color-bg-primary);
	background-color: var(--color-accent-primary);
	border: none;
	border-radius: 100px;
	padding: 20px 40px;

	font-size: 1.1rem;
}

#preview-image {
	min-width: 512px;
	width: 75%;
}

#flag-wrapper {
	position: relative;
	display: inline-block;
}

#flag-button {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

#flag-button img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#flag-list {
	position: absolute;
	top: 100%;
	left: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 10px;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
	z-index: 10;
}

#flag-wrapper:hover #flag-list {
	opacity: 1;
	pointer-events: auto;
}

#flag-list img:hover {
	transform: scale(1.1);
	cursor: pointer;
}

.icon {
  width: clamp(20px, 2vw, 40px);
  height: clamp(20px, 2vw, 40px);
  fill: var(--color-text-default);
  display: block;
}
