/* --- START --- */
:root {
	--bg: #1e1e1e;
	--fg: #eee;
	--accent1: #f0f;
	--accent2: #0ff;
	--accent3: #ff0;
	--accent4: #00f;
}

body {
	position: relative;
	margin: 0;
	padding: 0;
	color: var(--fg);
	font-family: 'Minecraft', sans-serif;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background-image: url('./desktop.png');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	background-repeat: no-repeat;
}

@media (min-width: 1280px) {
	body {
		margin: 0 5rem;
	}
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.4);
	pointer-events: none;
	z-index: -1;
}

body * {
	text-shadow: 2px 1px 1px #000;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}

header {
	padding: 2rem;
	text-align: center;
}

/* --- MAIN TITLE burixon.dev --- */
.logo-terminal {
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	font-size: 2.5rem;
	color: var(--accent3);
	white-space: nowrap;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 2rem;
}

.cursor {
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	display: inline-block;
	width: 1ch;
	animation: blink 0.8s step-end infinite;
}

@keyframes blink {
	0%, 49% { opacity: 1; }
	50%, 100% { opacity: 0; }
}

main {
	flex: 1;
	padding: 2rem;
}

/* --- CPRIGHT FOOTER --- */
footer {
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	text-align: center;
	font-size: 0.8rem;
	color: #888;
	margin-bottom: 5px;
}

/* --- LINKS FOR PAGE --- */
a {
	color: var(--accent2);
	text-decoration: none;
	transition: 0.2s;
}

a:hover {
	color: var(--accent1);
}

/* --- NAVIGATION BUTTONS --- */
.main-nav {
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	margin-top: 1rem;
}

.main-nav ul {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 2rem;
	padding: 0;
	margin: 0;
	flex-wrap: wrap;
}

.main-nav a {
	color: var(--accent2);
	text-decoration: none;
	font-weight: bold;
	padding: 0.5rem 1rem;
	border: 1px solid transparent;
	border-radius: 4px;
	transition: background 0.2s, color 0.2s, border 0.2s;
}

.main-nav a:hover {
	color: var(--accent1);
	border: 1px solid var(--accent1);
	background-color: #2a2a2a;
}

/* --- INLINED LINK --- */
a.text-link {
	color: #0f0;
	text-decoration: underline;
}

a.text-link:hover {
	color: #f0f;
	text-decoration: underline;
}

a.text-link:visited {
	color: #0ff;
	text-decoration: underline;
}

a.text-link:active {
	color: #f0f;
	text-decoration: underline;
}

/* --- SCROLLBARS --- */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
	cursor: auto;
}

::-webkit-scrollbar-track:vertical {
	background: transparent;
	position: relative;
	cursor: auto;
}

::-webkit-scrollbar-track:vertical::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	transform: translateX(-50%);
	width: 1px;
	height: 100%;
	background-color: #aaa;
	cursor: auto;
}

::-webkit-scrollbar-track:horizontal {
	background: transparent;
	position: relative;
	cursor: auto;
}

::-webkit-scrollbar-track:horizontal::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	width: 100%;
	height: 1px;
	background-color: #aaa;
	cursor: auto;
}

::-webkit-scrollbar-thumb {
	background-color: #404040;
	border-radius: 999px;
	cursor: auto;
}

::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
	background-color: #f00;
	cursor: auto;
}

::-webkit-scrollbar-corner {
	background: transparent;
	cursor: auto;
}

* {
	scrollbar-width: thin;
	scrollbar-color: #404040 transparent;
}

/* --- SELECTION --- */
::selection {
	background: #606060;
	color: #fff;
}

/* --- MEDIA --- */
/* Background */
@media (max-width: 768px) {
	body {
		background-image: url('./mobile.png');
	}
}
/* Phones */
@media (min-width: 100px) and (max-width: 300px) {
	.logo-terminal {
		font-size: 1.4rem;
		padding-bottom: 0.6rem;
	}
	.main-nav {
		font-size: 0.8rem;
	}
	.main-nav ul {
		gap: 0.4rem;
	}
	.main-nav a {
		padding: 0.2rem 0.5rem;
	}
	h1, h2 {
		font-size: 1rem;
	}
	p {
		font-size: 0.7rem;
	}
}
@media (min-width: 301px) and (max-width: 350px) {
	.logo-terminal {
		font-size: 1.7rem;
		padding-bottom: 0.6rem;
	}
	.main-nav {
		font-size: 0.9rem;
	}
	.main-nav ul {
		gap: 0.5rem;
	}
	.main-nav a {
		padding: 0.25rem 0.55rem;
	}
	h1, h2 {
		font-size: 1.1rem;
	}
	p {
		font-size: 0.75rem;
	}
}
@media (min-width: 351px) and (max-width: 400px) {
	.logo-terminal {
		font-size: 1.9rem;
		padding-bottom: 0.7rem;
	}
	.main-nav {
		font-size: 1rem;
	}
	.main-nav ul {
		gap: 0.6rem;
	}
	.main-nav a {
		padding: 0.3rem 0.65rem;
	}
	h1, h2 {
		font-size: 1.3rem;
	}
	p {
		font-size: 0.9rem;
	}
}
@media (min-width: 401px) and (max-width: 650px) {
	.logo-terminal {
		font-size: 2rem;
		padding-bottom: 0.9rem;
	}
	.main-nav {
		font-size: 1.3rem;
	}
	.main-nav ul {
		gap: 0.85rem;
	}
	.main-nav a {
		padding: 0.4rem 0.75rem;
	}
	h1, h2 {
		font-size: 1.75rem;
	}
	p {
		font-size: 1rem;
	}
}

/* Cookie box */
#cookieModal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	padding: 1em;
	z-index: 9999;
	box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
	box-sizing: border-box;
}

.cookie-box {
	max-width: 1000px;
	width: 100%;
	margin: 0 auto;
	padding: 1em;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1em;
	box-sizing: border-box;
}

.cookie-box p {
	flex: 1 1 70%;
	margin: 0;
	font-size: 1em;
	line-height: 1.5em;
	word-wrap: break-word;
}

.cookie-box button {
	flex: 0 0 auto;
	background: #00ff00;
	border: none;
	color: #000;
	text-shadow: 0 0 #0f0;
	padding: 0.6em 1.2em;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
	white-space: nowrap;
	max-width: 100%;
	font-family: 'Minecraft', sans-serif;
}

.cookie-box button:hover {
	background: #ff00ff;
}

/* PARTICLE */
.xp {
	position: absolute;
	width: 20px;
	height: 20px;
	pointer-events: none;
	z-index: 9999;
	transition: transform 1s ease-out, opacity 0.5s ease;
}

/* SECTIONS */
.section {
	margin: 2rem 0;
}

.section-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0.75rem 0;
	font-size: 1.4rem;
}

.section-icon {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
}

.section-heading {
	font-size: 1.2rem;
	font-weight: bold;
	text-shadow: 1px 1px 0 #000;
}

/* PAPER FORMS */
.paper-form {
    width: 100%;
    max-width: 384px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.paper-field {
    position: relative;
    width: 100%;
    aspect-ratio: 768 / 289;
    background: url('./paper.png') no-repeat center;
    background-size: contain;
}

.paper-field input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 2rem 3rem;
    color: #000;
    text-shadow: 1px 1px 0 #fff;
    font-family: 'Minecraft', sans-serif;
    font-size: 1.2rem;
    box-sizing: border-box;
}
.paper-form button {
    width: 30%;
    max-width: 250px;
    height: 48px;
    background: url('./stone.png') repeat;
    background-size: cover;
    border: 4px outset #555;
    color: #fff;
    font-family: 'Minecraft', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    text-shadow: 1px 1px 0 #000;
    box-shadow: 0 4px #222;
    transition: all 0.1s ease-in-out;
}

.paper-form button:active {
    transform: translateY(2px);
    box-shadow: 0 2px #000;
    border: 4px inset #333;
}

.bigpaper-form {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.bigpaper-field {
    position: relative;
    width: 100%;
    aspect-ratio: 160 / 160;
    background: url('./bigpaper.png') no-repeat center;
    background-size: contain;
}

.bigpaper-field textarea {
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 15px;
    right: 15px;
    width: 90%;
    height: 80%;
    resize: none;
    background: transparent;
    border: none;
    outline: none;
    padding: 1rem;
    color: #656360 !important;
    text-shadow: 1px 1px 1px #808080;
    font-family: 'Minecraft', sans-serif;
    font-size: 0.65rem;
    line-height: 1.2;
    box-sizing: border-box;
    overflow-y: auto;
    margin: 5px 5px;
    user-select: text !important;

    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-mode: match-source;

    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-mode: match-source;
}

@media (min-width: 560px) and (max-width: 767px) {
    .bigpaper-field textarea {
        top: 40px;
        left: 35px;
        right: 35px;
        bottom: 40px;
        font-size: 0.85rem;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .bigpaper-field textarea {
        top: 50px;
        left: 60px;
        right: 60px;
        bottom: 50px;
        font-size: 1rem;
    }
}

@media (min-width: 1200px) and (max-width: 1920px) {
    .bigpaper-field textarea {
        top: 70px;
        left: 70px;
        right: 70px;
        bottom: 70px;
        font-size: 1rem;
    }
}

 /* Cursors */
 body {
 	cursor: url('./cursor_normal.png') 5 5, auto;
 }
 
 input, textarea {
 	cursor: url('./cursor_text.png') 5 5, text;
 }
 
 a, button#send-btn {
 	cursor: url('./cursor_click.png') 5 5, pointer;
 }
 
 a#donate-btn {
 	cursor: url('./cursor_donate.png') 5 5, pointer;
 }
