/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
  font-family: "roboto", sans-serif;
  background-image: url("./img/background_grain.svg");
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/* site styles */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 768px;
}

.col-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1fr;
}

.savedBetList {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.form {
  display: grid;
  grid-auto-flow: row;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  margin-bottom: 2rem;
}

.form .calculateButton {
  grid-column: span 2;
  padding: 8px;
  text-transform: uppercase;
}

.form .calculateButton:hover {
  cursor: pointer;
}

.input {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input input {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid black;
  font-size: 1.125rem;
}

.input label {
  font-size: 0.875rem;
  font-weight: 600;
}

.navigation {
  padding: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid black;

  h1 {
    font-size: 1rem;
  }
}

.calculation {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}

.calculationCard {
  border: 1px solid rgba(0, 0, 0, 40%);
  border-radius: 4px;
  padding: 8px;
  min-height: 102px;
  background-color: white;
  transition: transform 180ms ease-in-out;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 10%);

  .calculationHeader {
    font-weight: 600;
  }

  span {
    font-size: 2.5rem;
    font-weight: 300;
  }
}

.calculationCard:hover {
  transform: scale(103%);
}

.saveAndTrackButton {
  width: 100%;
  margin-top: 32px;
}
