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

body {
  background-color: #0099CC;
  color: #fafaf9;
  font-family: 'Georgia', serif;
  padding: 48px 64px;
}

img {
	max-width: 100%;
	height: auto;
}

/* MAIN LAYOUT */
.container {
  max-width: 1000px;
  margin: 0 auto; /* centering */ 
}

.header {
  margin-bottom: 40px;
  display: flex;
  align-items: center; /* vert */
  justify-content: space-between; /* horiz */
}

.main {
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: 48px;
}

@media (max-width: 900px) {
  .main {
    grid-template-columns: 1fr;
  }
  .container {
  	max-width: 100%;
  }
  .header {
  	max-width: 100%;  	
  }

}

/* ELEMENTS */
.logo {
  display: flex;
  align-items: center; /* vert */
  gap: 16px; /* breathing room */
}

.logo img {
  /* images inside elements with class of 'logo' */
  weight: 68px;
  height: 68px;
}

h1 {
  font-size: 42px;
  text-transform: uppercase;
  font-family: "Georgia", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  color: yellow;
  line-height: 1
}

h2 {
	 border: 2px dotted white;
	 padding: 5px;
}

.category {
  margin-bottom: 16px;
}

.fact {
  font-size: 20px;
  line-height: 1.4;
  background-color: navy;
  margin-bottom: 16px;
  padding: 16px 24px;
  letter-spacing: -1px;

  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 1200px) {
  .fact {
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
  }
}

.tag {
  text-transform: uppercase;
  font-size: 14px;
  font-family: 'Arial', sans-serif;
  padding-top: 3px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 100px;
}

.vote-buttons {
  margin-left: auto; /* push right */
  flex-shrink: 0;
  
  display: flex;
  gap: 8px;
}

.vote-buttons button {
  border: none;
  background-color: #78716c;
  font-size: 18px;
  padding: 6px 12px;
  border-radius: 100px;
  color: inherit;
  font-family: inherit;
  font-weight: 600;
  /* margin-left: 600; */
  cursor: pointer;
  transition: 0.3s;
}

.vote-buttons button:hover {
	background-color: #eab308; /*#292524; NOT WORKING */
}

ul {
  list-style: none;
}

.source:link,
.source:visited {
  color: #a8a29e;
  text-decoration: none;
  margin-left: 12px;
  transition: 0.3s;
}

.source:hover,
.source:active {
  color: #FF00FF; /* or yellow */
}

.btn {
  border: none;
  font-family: 'Coiny', sans-serif;
  line-height: 1;
  text-transform: uppercase;
  font-size: 17px;
  padding: 16px 0 13px;
  background-color: navy;
  color: inherit;
  border-radius: 100px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(120%); /* rotate(-2deg); */
  background-color: green;
  color: white;
}

.btn-large {
  font-size: 20px;
  padding: 20px 32px 17px;
}

.btn-all-categories {
  margin-bottom: 16px;
  width: 100%; /* relation to parent */
}

.btn-category {
  width: 100%;
  margin-bottom: 4px;
  background-image: none;
}

/* FORM */
.fact-form {
  background-color: navy;
  margin-bottom: 40px;
  padding: 16px 32px;
  /* text-align: center;  removed in S3-27 */
  display: flex;
  align-items: center;
  gap: 16px;
  display: none;
}

.fact-form input,
.fact-form select {
	width: 220px;
	background-color: #292524; /* NOT WORKING? */
	border: none;
	border-radius: 100px;
	padding: 16px;
	color: inherit;
  	font-family: inherit;
	
}

.fact-form input::placeholder {
	color: #a8a29e;
}

.fact-form input:first-child {
	flex-grow: 1;
}

.fact-form span {
	font-weight: 600;
	font-size: 18px;
	margin-right: 18px;
}

@media (max-width: 1000px) {
  body {
    padding: 32px 48px;
  }
  .fact-form {
    flex-direction: column;
    align-items: stretch;
  }
  .fact-form input,
  .fact-form select {
    width: auto;
  }
}

.landing {
	padding: 10px;
	border: 1px solid white;
	display: none;
}
.cards {
	padding: 10px;
	border: 1px solid white;
	/* display: none; */
}

