/* tiny-brutalism.css */

/* Importing a Monochrome Font */
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap");

:root {
	--bg-color: #e5e5e5;
	--text-color: #000;
	--border-color: #000;
	--shadow-color: #000;
	--accent-bg: #d0d0d0;
	--button-bg: #d0d0d0;
	--muted-color: #808080;
	--alert-info-bg: #d4e8f5;
	--alert-warning-bg: #f5ecd4;
	--alert-danger-bg: #f5d4d4;
}

[data-theme="dark"] {
	--bg-color: #1a1a2e;
	--text-color: #eee;
	--border-color: #eee;
	--shadow-color: #eee;
	--accent-bg: #16213e;
	--button-bg: #0f3460;
	--muted-color: #a0a0b0;
	--alert-info-bg: #1a3a4a;
	--alert-warning-bg: #3a3520;
	--alert-danger-bg: #3a1a20;
}

[data-theme="sepia"] {
	--bg-color: #f4e4bc;
	--text-color: #5c4a32;
	--border-color: #5c4a32;
	--shadow-color: #5c4a32;
	--accent-bg: #f0d9b5;
	--button-bg: #e6d2a0;
	--muted-color: #7a6548;
	--alert-info-bg: #e8dfc8;
	--alert-warning-bg: #e8dfc8;
	--alert-danger-bg: #e8dfc8;
}

[data-theme="monochrome"] {
	--bg-color: #fff;
	--text-color: #000;
	--border-color: #000;
	--shadow-color: #000;
	--accent-bg: #f0f0f0;
	--button-bg: #fff;
	--muted-color: #555;
	--alert-info-bg: #e0e0e0;
	--alert-warning-bg: #e0e0e0;
	--alert-danger-bg: #e0e0e0;
}

/* Basic Reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	font-family: "Roboto Mono", monospace;
	background-color: var(--bg-color);
	color: var(--text-color);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	margin-bottom: 1rem;
	font-weight: 700;
}

p {
	margin-bottom: 1rem;
}

/* Containers */
.container {
	width: 100%;
	margin: 0 auto;
	padding: 1rem;
	max-width: 1200px;
}

/* Grid System */
.row {
	display: flex;
	flex-wrap: wrap;
	margin: -0.5rem;
}

.col {
	flex: 1;
	padding: 0.5rem;
}

.col-1 {
	flex: 0 0 8.33%;
}
.col-2 {
	flex: 0 0 16.66%;
}
.col-3 {
	flex: 0 0 25%;
}
.col-4 {
	flex: 0 0 33.33%;
}
.col-5 {
	flex: 0 0 41.66%;
}
.col-6 {
	flex: 0 0 50%;
}
.col-7 {
	flex: 0 0 58.33%;
}
.col-8 {
	flex: 0 0 66.66%;
}
.col-9 {
	flex: 0 0 75%;
}
.col-10 {
	flex: 0 0 83.33%;
}
.col-11 {
	flex: 0 0 91.66%;
}
.col-12 {
	flex: 0 0 100%;
}

/* Buttons */
button,
.button {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	text-align: center;
	text-decoration: none;
	color: var(--text-color);
	background-color: var(--button-bg);
	border: 2px solid var(--border-color);
	box-shadow: 4px 4px 0 var(--shadow-color);
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: "Roboto Mono", monospace;
}

button:hover,
.button:hover {
	box-shadow: 6px 6px 0 var(--shadow-color);
}

/* Forms */
input,
textarea,
select {
	width: 100%;
	padding: 0.75rem;
	margin-bottom: 1rem;
	border: 2px solid var(--border-color);
	box-shadow: 4px 4px 0 var(--shadow-color);
	font-family: "Roboto Mono", monospace;
}

textarea {
	resize: vertical;
}

label {
	margin-bottom: 0.5rem;
	display: block;
}

/* Checkboxes and Radio Buttons */
input[type="radio"],
input[type="checkbox"] {
	display: inline-block;
	width: auto;
	margin-right: 0.5rem;
}

select[multiple] {
	height: auto;
}

/* Boxes */
.box {
	padding: 1rem;
	border: 2px solid var(--border-color);
	box-shadow: 4px 4px 0 var(--shadow-color);
	margin-bottom: 1rem;
}

/* Utility Classes */
.text-center {
	text-align: center;
}

.mt-1 {
	margin-top: 1rem;
}
.mb-1 {
	margin-bottom: 1rem;
}
.ml-1 {
	margin-left: 1rem;
}
.mr-1 {
	margin-right: 1rem;
}

.mt-2 {
	margin-top: 2rem;
}
.mb-2 {
	margin-bottom: 2rem;
}
.ml-2 {
	margin-left: 2rem;
}
.mr-2 {
	margin-right: 2rem;
}

/* Alerts */
.alert {
	padding: 1rem;
	border: 2px solid var(--border-color);
	box-shadow: 4px 4px 0 var(--shadow-color);
	margin-bottom: 1rem;
}

.alert-info {
	background-color: var(--alert-info-bg);
	color: var(--text-color);
}

.alert-warning {
	background-color: var(--alert-warning-bg);
	color: var(--text-color);
}

.alert-danger {
	background-color: var(--alert-danger-bg);
	color: var(--text-color);
}

/* Modals */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	justify-content: center;
	align-items: center;
}

.modal-content {
	background-color: var(--accent-bg);
	padding: 2rem;
	border: 2px solid var(--border-color);
	box-shadow: 4px 4px 0 var(--shadow-color);
}

/* Progress Bars */
.progress {
	width: 100%;
	background-color: var(--accent-bg);
	border: 2px solid var(--border-color);
	box-shadow: 4px 4px 0 var(--shadow-color);
	height: 1.5rem;
}

.progress-bar {
	height: 100%;
	background-color: var(--text-color);
	width: 0;
	transition: width 0.2s ease;
}

.progress-bar-25 {
	width: 25%;
}
.progress-bar-50 {
	width: 50%;
}
.progress-bar-75 {
	width: 75%;
}
.progress-bar-100 {
	width: 100%;
}

/* Code Container */
.code-container {
	background-color: var(--accent-bg);
	border: 2px solid var(--border-color);
	box-shadow: 4px 4px 0 var(--shadow-color);
	padding: 1rem;
	font-family: "Roboto Mono", monospace;
	margin-bottom: 1rem;
}

/* Text Links */
a {
	color: var(--text-color);
	text-decoration: underline;
}

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

/* Media Queries */
@media (max-width: 768px) {
	.col {
		flex: 0 0 100%;
	}
}

ul {
	list-style-type: square;
	margin: 1em 0 1em 2em;
	padding: 0;
}

li {
	font-family: inherit;
	margin-bottom: 0.5em;
}
