@charset "UTF-8";

@import "./todolist.css";

/* definições gerais */
*,
*::before,
*::after {
	box-sizing: border-box; /* acho essa configuração bem útil */
}

body {
	/* tamanho e box model */
	height: 100vh;
	height: 100dvh; /* ignora caso não tenha suporte */
	margin: 0;
	padding: 3%;
	/* flexbox (melhor que usar posição absoluta) */
	display: flex;
	flex-direction: column;
	align-items: center;
	/* outros */
	font-family: var(--ff); /* fonte da página */
	scroll-behavior: smooth; /* nem precisa disso, mas ok */
	user-select: none; /* eu gosto de fazer isso */
}

/* cabeçalho */
header {
	/* cores, bordas e outros estilos */
	background-color: #e7e7e7;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	text-align: center;
	/* tamanho, posição e box model */
	width: var(--ui-width);
	z-index: -1;
	padding: 10px 0 20px 0;
}

/* títulos e substítulos */
h1,
h2 {
	margin: 0;
	text-transform: capitalize;
}

h1 {
	color: #323232;
}

h2 {
	color: #494949;
	margin-bottom: 10px;
}

/* conteúdo principal */
div#main-content {
	background-color: #cfcfcf;
	border-radius: 10px;
	color: #1a1a1a;
	/* tamanho, posição e box model */
	height: auto;
	width: var(--ui-width);
	position: relative;
	top: -10px;
	margin: 0;
	padding: 0;
	/* flexbox */
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}

/* estilo dos elementos dentro dos artigos (e dos artigos em si) */
div#main-content > div.page {
	flex-shrink: 0; /* evita mudanças na largura */
	margin: 0;
	padding: 15px;
	width: 20rem;
}

div#main-content > div.page > div {
	margin: 0;
	width: 100%;
}

input {
	/* cores e bordas */
	background-color: #f8f8f8;
	border: 2px solid var(--border-color);
	border-radius: 5px;
	/* texto */
	color: #141414;
	font-family: var(--ff);
	font-weight: 500;
	/* outros */
	outline: none;
	padding: 5px;
}

/* estilo do input: botões, entradas de texto e outros */
input[type="button"] {
	margin: 8px 0;
	transition: background-color 0.15s linear;
}

/* botões habilitados */
input[type="button"]:enabled {
	cursor: pointer;
}

input[type="button"]:enabled:hover {
	background-color: #f2f2f2;
}

input[type="button"]:enabled:active {
	background-color: #ededed;
}

/* botões desabilitados */
input[type="button"]:disabled {
	background-color: #dadada;
	border: 2px solid #ababab;
	color: #000;
}

/* estilo das entradas de texto */
input[type="text"] {
	cursor: text;
	user-select: text;
}

input[type="text"]::placeholder {
	color: #a1a1a1;
	font-weight: 500;
}

input[type="text"]::selection {
	background-color: #d4d4ff;
}

/* mínimos detalhes */
input[type="file"]:active {
	cursor: progress;
}

a:active {
	cursor: progress;
}
