@import url("https://fonts.googleapis.com/css?family=Nunito:400,700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: rgb(51, 51, 51);
    color: rgb(202, 202, 202);
    font-family: "Nunito", sans-serif;
    font-size: 1rem;
  }
  .card {
    background: rgb(63, 63, 63);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  }
  .card--title {
    color: rgb(238, 237, 237);
  }
  input {
    background-color: #575757;
    color: rgb(238, 237, 237);
  }
  
}

@media (prefers-color-scheme: light) {
  body {
    background: #fdfdfd;
    font-family: "Nunito", sans-serif;
    font-size: 1rem;
  }
  .card {
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  }
  .card--title {
    color: rgb(34, 34, 34);
  }
  input {
    background-color: #ebebeb;
    color: rgb(24, 24, 24);
  }
  
}


main {
  max-width: 900px;
  margin: auto;
  padding: 0.5rem;
  text-align: center;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

ul {
  list-style: none;
  display: flex;
}

li {
  margin-right: 1rem;
}

td {
  font-size: 1.5rem;
  padding-bottom: 10px;
  padding-right: 20px;
}

input {
  font-size: 1.2rem;
  padding-left: 12px;
  margin-bottom: 5px;
  margin-right: 2px;
  border-radius: 4px;
  border-style: solid;
  border-color: #7faff7;
}

p {
  font-size: 1.2rem;
  padding-bottom: 10px;
  padding-right: 20px;
  margin-left: 5px;
}


pre {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.7rem;
  font-weight: 700;
  text-align: left;
}
h1 {
  font-size: 2.3rem;
  color: #e7973c;
  margin-bottom: 0.5rem;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  grid-gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: auto;
  padding: 1rem 0;
}
.card {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 15rem auto;

  border-radius: 10px;
  margin: auto;
  overflow: hidden;
}

.card--input {
  font-size: 1.2rem;
  height: 32px;
}

.card--title {
  font-weight: 700;
  text-transform: capitalize;
  font-size: 1.3rem;
  margin-top: 0.5rem;
}

.card--link {
  text-decoration: none;
  background: #db4938;
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 20px;
}

.button{
  background-color: #6ba3d1; /* Blue */
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 18px;
  border-radius: 3px;
}
.red {
  background-color: #ec2848; /* Red */
}


/* The radiocontainer */
.radiocontainer {
  display: block;
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 18px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default radio button */
.radiocontainer input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Create a custom radio button */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: #eee;
  border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the radio button is checked, add a blue background */
.radiocontainer input:checked ~ .checkmark {
  background-color: #2196F3;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the indicator (dot/circle) when checked */
.radiocontainer input:checked ~ .checkmark:after {
  display: block;
}

/* Style the indicator (dot/circle) */
.radiocontainer .checkmark:after {
 	top: 5px;
	left: 5px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: white;
}
