/* */
@font-face {
  font-family: 'Federo';
  src: url('./assets/Federo-Regular.ttf');
}

/*
@font-face {
  font-family: 'Inter';
  src: url('./assets/Inter-VariableFont_opsz\,wght.ttf');
}
*/

/* Reset */
.trim {
  border: 2px solid brown;
}

/* https://piccalil.li/blog/a-modern-css-reset/ */
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
  font-family: 'Inter', sans-serif;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Main */
body {
  font-family: sans-serif;
  background-color: #faf0e6;
  color: #333;
  line-height: 1.6;
}

h1 {
  background-image: url(assets/images/frontpillars.jpg);
  background-size: cover;
  background-position: top center;
  padding: 0.8em 0em 0.8em 0em;
  font-family: 'Federo', sans-serif;
  font-size: 3.2em;
  color: #432616;
  color: white;
  text-shadow: 4px 4px 7px rgba(0, 0, 0, 0.8);
  text-align: center;
}

p {
  margin: 0px 0em 1em 0px;
}

h3 {
  margin: 0px 0em 0.5em 0px;
}

ul {
  padding: 0px;
  margin: 0px;
}

ol li {
  margin-bottom: 0.5em;
}

ul li {
  list-style: none;
  margin: 15px 0px 15px 0px;
  background-color: white;
  border-radius: 6px;
}

li [type='radio'] {
  display: none;
}

li input:not(:checked)+label {
  display: block;
  padding: 0.5em 0em 0.5em 0em;
  border: #432616 dashed 2px;
  cursor: pointer;
  padding: 6px;
  background-color: white;
  border-radius: 6px;
}

li input:not(:checked)+label:hover {
  background-color: #f7f1eb;
}

li input:checked+label {
  display: block;
  padding: 0.5em 0em 0.5em 0em;
  border: #432616 solid 2px;
  cursor: pointer;
  padding: 6px;
  background-color: #faf0e6;
  border-radius: 6px;
}

#vote-form p {
  margin-bottom: 0.2em;
}

#writeintitle {
  min-width: 300px;
}

#writeintextarea {
  width: 100%;
}

button {
  text-align: center;
  margin: auto;
  display: block;
  font-size: larger;
  border: 4px #432616 solid;
  padding: 0.5em 1em;
  border-radius: 0.5em;
  appearance: none;
  background-color: white;
}

button:hover {
  background-color: #f7f1eb;
}

.main {
  background-color: white;
}

.holder {
  padding: 14px 0px;
  max-width: 800px;
  margin: auto;
}

section {
  margin: 0px 0px 20px 0px;
  padding: 0.8rem;
  background-color: #fff;
}

h2 {
  color: #432616;
  border-bottom: 2px solid #432616;
  padding-bottom: 10px;
}

a {
  color: black;
}

footer {
  text-align: center;
  font-size: 0.8em;
  padding: 10px;
  background-color: #432616;
  color: #fff;
  position: relative;
  bottom: 0;
  width: 100%;
}

footer a {
  color: #fff;
}

footer p {
  margin: 0;
}

.links {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.links a {
  padding: 0.5rem;
  background-color: #e1cbb4; 
  text-decoration: none;
  flex-grow: 1;
  text-align: center;
  font-family: "Federo";
  font-weight: bold;
}

.links a:hover {
  background-color: #432616;
  color: white;
  transition-duration: 0.3s;
}

.links a:focus {
  border: #333;
  border-style: solid;
}