/* Table of Contents
--------------------------------------------------------------------------------------------
- 1) Color Variables
- 2) Elements
- 3) Typography
- 4) Page Layout
- 5) Navigation
- 6) Forms
- 7) Classes
- 8) Messages
- 9) Media Queries
----------------------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

/* 1) Color Variables
----------------------------------------------------------------------------------------- */
:root {
  --default-background: #f5f5f5;
  --default-color: #333;
  --default-background: #354343;
  --body-background: #fff;
  --form-background: #f5f5f5;
  --polymer-green: #3bb761;
  --polymer-lightgreen: #81d79c;
  --polymer-darkgreen: #226a38;
}

/* 2) Elements
----------------------------------------------------------------------------------------- */

html {
  background-color: var(--default-background);
  font-size: 18px;
}

/* <weight>: Use a value from 100 to 900 */
body {
  background-color: var(--body-background);
  box-sizing: border-box;
  color: var(--default-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 960px;
  padding: 1rem 2rem;
}

div.left {
  float: left;
}

div.right {
  float: right;
}

a,
a:active,
a:visited {
  color: var(--polymer-darkgreen);
  font-weight: bold;
}

/* 3) Typography
----------------------------------------------------------------------------------------- */

h1,
h2,
h3 {
  line-height: 1.3;
  margin: 0 0 1rem 0;
  padding: 0;
  text-align: center;
}

h2 {
  color: var(--polymer-green);
}

/* 4) Page Layout
----------------------------------------------------------------------------------------- */
header {
  margin: 2rem 0 0 0;
  /* outline: solid 2px darkorange; */
}

header img {
  max-width: 400px;
  width: 100%;
}

section {
  margin: 1rem 0;
}

footer {
  /*background-color: #fff;*/
  color: #808080;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  margin: 2rem 0;
}

/* 5) Navigation
----------------------------------------------------------------------------------------- */

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 0 .5rem 0;
	padding: 0;
  /* outline: solid 3px magenta; */
}

nav ul {
	display: flex;
	justify-content: space-around;
	padding-inline-start: 0;
	box-sizing: border-box;
}

nav ul li {
	list-style: none;
	text-align: center;
}

nav ul li a {
	border-bottom: solid 3px #fff;
	font-weight: bold;
	letter-spacing: 0.5px;
	padding: 1rem;
	text-decoration: none;
	transition: border 0.25s ease;
}

nav ul li a:hover {
	border-bottom: solid 3px var(--polymer-green);
}

/* 6) Forms
----------------------------------------------------------------------------------------- */

form {
  background: var(--form-background);
  border: solid 3px var(--polymer-green);
  display: grid;
  gap: 0.25rem;
  margin: 0 auto 2rem;
  max-width: 640px;
  padding: 1.5rem 1rem;
}

input[type="text"] {
  margin: 0;
  padding: 0.25rem;
  width: 100%;
}

input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
  border: solid 2px var(--polymer-green);
  box-shadow: none;
  box-sizing: border-box;
  padding: 0.5rem;
}

input[type="submit"],
button {
  background-color: darkgreen;
  border: none;
  border-radius: 2rem;
  display: block;
  color: #f5f5f5;
  cursor: pointer;
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin: 1rem auto 0;
  padding: 0.75rem 2rem;
}
button:focus,
button:hover {
  background: var(--polymer-green);
}

/* 7) Classes
----------------------------------------------------------------------------------------- */

.contact {
  background-color: var(--polymer-lightgreen);
  margin: 2rem 0;
  padding: 1rem;
  text-align: center;
}

.overview {
  border: solid 2px var(--polymer-green);
  margin-bottom: 2rem;
  padding: .5rem;
}
.overview img {
  display: block;
  width: 100%;
}

.setup-list {
  display: grid;
  gap: 1rem;
}

.setup-card {
  background-color: var(--polymer-lightgreen);
  padding: 1rem;
}

.setup-card a {
  color: var(--polymer-darkgreen);
  cursor: pointer;
  float: right;
}

.setup-card .title {
  font-weight: bold;
}

.setup-card .type,
.setup-card .email {
  font-size: 0.85rem;
}

.setup-card .email {
  color: var(--polymer-darkgreen);
}

/* 8) Messages.
----------------------------------------------------------------------------------------- */

.info-msg,
.success-msg,
.warning-msg,
.error-msg {
  margin: 1rem 0;
  padding: 1rem 2rem;
  border-radius: 3px 3px 3px 3px;
  text-align: left;
}

.info-msg i,
.success-msg i,
.warning-msg i,
.error-msg i {
  margin-right: 0.25rem;
}

.info-msg {
  color: #059;
  background-color: #bef;
}

.success-msg {
  color: #270;
  background-color: #dff2bf;
}

.warning-msg {
  color: #9f6000;
  background-color: #feefb3;
}

.error-msg {
  color: #d8000c;
  background-color: #ffbaba;
}

.processing-message {
  text-align: center;
}

.processing-message img {
  margin: 0 auto;
}

/* 9) Media Queries
----------------------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .setup-info {
    padding: 0 4rem;
  }

  .setup-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .setup-card {
    min-width: 30%;;
  }
}
