*{
  box-sizing: border-box;
}
body{
  background-color: #edf1f5;
  font-family: 'Poppins', sans-serif;
  color: #222;
}
h1, h2, h3{
  font-weight: 400;
}
#app{
  max-width: 1200px;
  margin: auto;
  padding: 0 2rem 2rem;
}

.hidden{
  display: none;;
}
button{
  display: inline-block;
  margin: .25rem .25rem .25rem 0;
  padding: .5rem 1rem;
  border-radius: 6px;
  border: 0;
  background-color: #edf1f5;
  color: #222;
  font-size: .875rem;
  text-transform: uppercase;
}
button:focus{
  background-color: aquamarine;
}
button:hover{
  opacity: .7;
  cursor: pointer;
}

/* header */
header{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
header h1{
  margin-bottom: 0;
  font-size: 1.5rem;
}
header p{
  margin-top: .5rem;
  font-size: 0.875rem;
}

.selected-site{
  background-color: aquamarine;
  padding: 1rem;
  border-radius: 1rem;
  font-size: .875rem;
  transform: translateY(-120%);
  transition: transform .5s ease-in-out;
}

.selected-site > div{
  display: flex;
  justify-content: space-between;
}

.selected-site .countdown{
  font-weight: bold;
}


.selected-site a{
  color: #222;
}
.selected-site-visible{
  transform: translateY(0);
}

/* filter form */
form{
  padding: 1rem 0;
}
label{
  display: block;
  margin-bottom: .5rem;
  font-size: .75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
input[type=text]{
  width: 100%;
  padding: 1rem;
  border-radius: 1rem;
  border: 0;
  box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
  font-family: monospace;
}

/* site list */
.sites{
  list-style: none;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-gap: 1rem;
  margin: 1rem 0;
  padding: 0;
}

@media screen and (min-width: 34rem){
  .sites{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 52rem){
  .sites{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 70rem){
  .sites{
    grid-template-columns: repeat(4, 1fr);
  }
}

.site a{
  display: block;
  padding: 2rem 1rem;
  background-color: #fff;
  text-decoration: none;
  color: inherit;
  font-size: .875em;
  transition: all .2s ease-in-out;

}
.site a:hover{
  transform: scale(1.05);
  cursor: pointer;
  background-color: aquamarine;
  opacity: .7;
}

/* selected site dialog */
.selected-site-dialog, .selected-site-dialog-overlay{
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}
.selected-site-dialog{
  display: flex;
}
.selected-site-dialog[aria-hidden='true']{
  display: none;
}
.selected-site-dialog-overlay{
  background: rgba(206,206,206,.9);
  animation: fade-in 200ms both;
}
.selected-site-dialog-inner{
  position: relative;
  min-width: 80%;
  max-width: 90%;
  margin: 0 0 0 auto;
  padding: 4rem 2rem 4rem 4rem;
  background-color: #fff;
  box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
  animation: fade-in 400ms 200ms both, slide-in 400ms 200ms both;
  z-index: 2;
}

@media screen and (min-width: 52rem){
  .selected-site-dialog-inner{
    min-width: 50%;
    max-width: 70%;
  }
}

@media screen and (min-width: 82rem){
  .selected-site-dialog-inner{
    min-width: 30%;
    max-width: 50%;
  }
}
.selected-site-dialog-inner span{
  font-size: .8125rem;
}
.selected-site-dialog-inner h2{
  margin-top: .5rem;
  margin-bottom: .5rem;
  font-size: 1.25rem;
}
.selected-site-dialog-inner pre{
  padding: 1rem;
  font-size: .9375rem;
  background-color: #edf1f5; 
}

.selected-site-dialog-inner .link-button{
  position: absolute;
  top: 4.75rem;
  right: 2rem;
}

.show-selected-site{
  display: block;
}

.selected-site-active > *{
  opacity: .3;
}

.uploads-only-switch{
  display: flex;
  gap: .5rem;
  margin: 1rem 0 2rem;
  font-size: .875rem;
  text-transform: uppercase;
}

.unlocker-link{
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #ccc;
  font-size: .875rem;
}
.unlocker-link pre{
  padding: 2rem;
  overflow: scroll;
}
.link-icon{
  display: inline-block;
  height: 24px;
  width: 24px;
  background: url('link-icon.png') no-repeat center center;
  vertical-align: middle;
}
.close-button{
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes slide-in {
  from {
    transform: translateX(10%);
  }
}