html {
  font-size: 12px;
  font-family: 'Rubik', sans-serif;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Rubik Mono One',sans-serif;
}

header {
    text-align: center;
}
header h1 {
    margin: 0;
}

#countries-judged {
  margin-bottom: 2rem;
  min-height: 2rem;
}
#countries-judged.empty {
    border: 1px dashed;
}
#countries-unjudged .country {
    background: hsl(341, 38%, 53%);
}
#spacer {
  width: 100%;
  height: 2rem;
}
.country {
    display: grid;
    background: #b82352;
    color: white;
    grid-template-columns: 3rem 2rem 1fr 4rem 2fr;
    grid-template-areas: "score flag name picture artist"                           "score flag name picture title";
    grid-gap: 0rem 0.5rem;
    padding: 0.2rem;
}
#judging .country {
    cursor: ns-resize;
}
.country a {
  color: white;
  text-decoration: none;
}
.country a:hover {
  text-decoration: underline;
}
.country .play {
  color: lightgreen;
}

.country > * {align-self: center;}
.country ~ .country {
  margin-top: 0.5rem;
}

.country .picture img {
  height: 4rem;
  width: 4rem;
  object-fit: cover;
  object-position: center;
  display: block;
}
.country .points {
  font-size: 2rem;
  text-align: right;
}
.country .flag-icon {
    height: 2rem;
    line-height: 2rem;
    width: 2rem;
}


body {
    margin: 0;
    min-height: 101vh;
}

div#app {
    width: 100%;
}

.country .points {
    grid-area: score;
    justify-self: end;
    align-self: center;
}

.country .flag {
    grid-area: flag;
    align-self: center;
}

.country .name {
    grid-area: name;
    align-self: center;
}

.country .picture {
    grid-area: picture;
}

.country .artist {
    grid-area: artist;
}

.country .title {
    grid-area: title;
}
input#name {
    font-size: 1rem;
    padding: 1em;
}

#leaderboard ol {
    padding: 0;
    list-style: none;
}

nav {
  display:flex;
}

nav button {
  flex: 1;
}

button {
    background: #2b282b;
    border: none;
    font-size: 2rem;
    padding: 0.5em;
    color: white;
    border-top: 5px solid #2b282b;
}
button.active {
  background: hsl(300, 4%, 100%);
  color: #2b282b;
}

section {
    background: #fafafa;
    padding-top: 1rem;
    padding-left: 1rem;
}

section#judging div {
    padding-left: 1rem;
}

footer {
    text-align: right;
    padding: 0 1rem;
    margin-top: 5rem;
}

@media screen and (min-width:795px) {
  .country {
    grid-template-columns: 3rem 2rem 1fr 8rem 2fr 2fr;
    grid-template-areas: "score flag name picture artist title";
  }

  .country .picture img {
    width: 8rem;
    height: 3rem;
  }
}
@media screen and (min-width: 960px) {
  html {
    font-size: 15px;
  }
}
@media screen and (min-width: 1240px) {
  html {
    font-size: 15px;
  }
}
@media screen and (min-width: 1490px) {
  html {
    font-size: 24px;
  }
}
