/* ================================= 
  Base Element Styles
==================================== */

* {
  box-sizing: border-box;
}

body,
input,
button {
  font-family: 'Roboto', sans-serif;
}

body {
  font: 1em/1.5;
  color: #184f68;
  background: #accbd9;
}

header {
  text-align: center;
}

h1 {
  font-size: 2.5em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  margin: 0;
}

a {
  text-decoration: none;
}

/* ================================= 
  Form Element Styles
==================================== */

form {
  padding: 0.875em 1.875em 1.875em;
  background: #85b5ca;
}

fieldset,
legend,
button {
  padding: 0;
  border: none;
}

fieldset {
  margin-top: 1.5em;
}

legend,
button {
  font-size: 1.25em;
}

legend {
  font-weight: 500;
  padding-top: 0.5em;
  border-top: 2px solid #679cb3;
  margin-bottom: 1.125em;
}

input[type='text'],
input[type='email'],
legend {
  width: 100%;
}

label {
  color: #000;
  display: block;
  margin-bottom: 0.5em;
}

input,
select {
  margin-bottom: 1.125em;
}

input {
  font-size: 1em;
  font-weight: 500;
  padding: 0.8em;
  background: #c1deeb;
  border: 2px solid #c1deeb;
  outline: none;
}

input:focus {
  background: #fff;
  border-color: #5e97b0;
  transition: border-color 0.4s, background-color 0.4s;
}

input[type='checkbox'],
input[type='radio'] {
  display: inline-block;
}

button {
  color: #fff;
  padding: 0.55em 1.25em;
  background: #22627e;
  margin: 1.25em 0 0.5em;
  cursor: pointer;
}

button:hover {
  background: #184c62;
}

select {
  font-size: 0.9rem;
  background: #fff;
}

/* ================================= 
  Page Styles
==================================== */

.container {
  margin: auto;
  max-width: 680px;
}

.shirt div {
  float: left;
  margin-right: 0.85em;
}

.interests input {
  margin-bottom: 0;
}

.credit-card {
  margin-top: 1.25em;
}

/* ================================= 
  Helper Classes
==================================== */

.is-hidden {
  display: none;
}

.clearfix::after {
  content: ' ';
  display: table;
  clear: both;
}

#error {
  color: #fff;
  background: #ae0436;
  text-transform: capitalize;
  padding: 10px;
}

#modal {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  background: rgba(0, 0, 0, 0.75);
}
#modal .modal-flex {
  max-width: 600px;
  background: #fff;
  color: #000;
  padding: 20px;
}

.modal-flex h1 {
  text-align: center;
}
.modal-flex h4 {
  margin: 1rem 0;
}
.modal-flex span {
  font-weight: 400;
}

/* ================================= 
  Media Queries
==================================== */

@media (min-width: 0) and (max-width: 679px) {
  header {
    padding: 2em 0;
  }
  button {
    width: 100%;
  }
}

@media (min-width: 680px) {
  header {
    padding: 4.65em 0 2.5em;
  }
  .col {
    float: left;
  }
  .col + .col {
    margin-left: 2.5%;
  }
  .col-3 {
    width: 23%;
  }
  .col-6 {
    width: 49%;
  }
}
/* 
  Tool tip Styling from W3Schools.com 
*/

.tooltip {
  position: relative;
  /* display: inline-block; */
  /* width: 100%; */
}

.tooltip .tooltiptext {
  display: none;
  width: 120px;
  background-color: #ae0436;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  top: 85%;
  left: 85%;
  margin-left: -60px;
  font-size: 0.9rem;
}

.tooltip .tooltiptext::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #ae0436 transparent;
}
.tooltip .sidetooltiptext {
  display: none;
  width: 120px;
  background-color: #ae0436;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  top: 40%;
  left: 40%;
  margin-left: -60px;
  font-size: 0.9rem;
}
.tooltip .sidetooltiptext::after {
  content: '';
  position: absolute;
  bottom: 50%;
  right: 100%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent #ae0436 transparent transparent;
}
