* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f7fb;
  color: #20242a;
}

.container {
  width: min(760px, 92%);
  margin: 0 auto;
  padding: 36px 0 50px;
}

header {
  text-align: center;
  margin-bottom: 26px;
}

h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

header p {
  margin: 0;
  color: #68707b;
}

.search-wrap {
  margin-bottom: 18px;
}

#search {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d8dde5;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  outline: none;
}

#search:focus {
  border-color: #8b96a7;
}

.resource-list {
  display: grid;
  gap: 10px;
}

.resource {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 16px;
  background: #fff;
  border: 1px solid #e2e6ec;
  border-radius: 10px;
}

.resource-name {
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.download {
  flex: 0 0 auto;
  display: inline-block;
  padding: 9px 14px;
  border-radius: 8px;
  background: #20242a;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.download:hover {
  opacity: .88;
}

.no-results {
  text-align: center;
  color: #68707b;
  padding: 25px 0;
}

@media (max-width: 520px) {
  .container {
    padding-top: 25px;
  }

  h1 {
    font-size: 25px;
  }

  .resource {
    align-items: flex-start;
    flex-direction: column;
  }

  .download {
    width: 100%;
    text-align: center;
  }
}
