#logo > a {
  line-height: 1;
  font-size: x-large;
  font-weight: 700;
  text-decoration: none;
  color: #444;
}

#tooldiv > ul > li > a:hover,
#footer a:hover {
  color: white;
  background-color: #444;
  cursor: pointer;
}

#tooldiv > ul > li > a,
#footer a {
  padding: 10px 15px;
  text-decoration: none;
}

#tooldiv > ul > li > a {
  color: #444;
}

a:visited {
  color: inherit;
  background-color: transparent;
}

a {
  text-decoration: none;
}

#tooldiv {
  margin-left: auto;
  justify-self: space-between;
}

li {
  display: inline;
  margin-left: 20px;
}

#wrapper {
  max-width: 1200px;
  margin: 0 auto;
  border-width: 0;
  padding: 30px 10px;
}

#footer {
  padding: 20px;
  text-align: center;
  line-height: 200%;
  border-top: 1px solid #ddd;
  background: #eee;
  font-size: large;
}

#footer a {
  text-decoration: none;
  color: #333;
}

#constructors {
  padding: 20px;
  max-width: 540px;
  width: 100%;
  margin-right: 2rem;
  background: #eee8d5;
}

#preview-c,
#preview-c-d {
  aspect-ratio: 1 / 1;
  display: none;
  width: 540px;
  height: 675px;
}

#constructors-canvas > h1 {
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

#download-c,
#download-c-d {
  background-color: #6c757d;
  border: 1px solid #6c757d;
  border-radius: 0.25rem;
  color: white;
  margin-top: 0.5rem;
  padding: 10px 15px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
}

#download-c:hover,
#download-c-d:hover {
  cursor: pointer;
  background-color: #5a6268;
}

.btn-success {
  color: #fff;
  background-color: #28a745;
  border-color: #28a745;
}

.btn-success:hover {
  color: #fff;
  background-color: #218838;
  border-color: #1e7e34;
}

.btn-reset {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-reset:hover {
  color: #fff;
  background-color: #5a6268;
  border-color: #545b62;
}

.team,
.points,
.year,
.season,
.logo,
.track {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team,
.year,
.season,
.logo {
  padding: 10px 0;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 700;
  height: 2.2rem;
  color: #495057;
  text-align: center;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

.form-control {
  width: 5rem;
}

#tracks,
.tracks {
  width: 10.4rem;
}

.track {
  padding: 10px 0;
}

.form-control,
#tracks,
.tracks {
  height: 2.2rem;
  padding: 0.375rem 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: inherit;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

.year > div > input {
  width: 6rem;
}

.season > div > input {
  width: 4.5rem;
}

.logo > div > input {
  width: 10.2rem;
}

.container-c,
.container-c-d {
  display: flex;
  flex-wrap: wrap;
  max-height: fit-content;
  height: fit-content;
  margin-bottom: 2rem;
}

@keyframes scrollTop {
  from {
    transform: translateY(2px);
  }
  to {
    transform: translateY(-1px);
  }
}

@media screen and (max-width: 1132px) {
  #preview-img-c,
  #preview-img-c-d {
    justify-content: space-between;
    margin-top: 2rem;
  }
  #preview-c,
  #preview-c-d {
    margin-bottom: 4.7rem;
  }
}

@media screen and (max-width: 570px) {
  #constructors {
    margin-right: 0;
  }
}

@media screen and (max-width: 371px) {
  #footer {
    font-size: medium;
  }
  #constructors-canvas > h1 {
    font-size: 1.3rem;
    font-weight: 400;
  }
}

@media screen and (max-width: 340px) {
  #footer {
    font-size: small;
  }
  #logo > a {
    font-size: large;
  }
}
