@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');

body {
  margin: 0;
  padding: 0;
  background: #fefefe;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  position: relative;
  min-height: 80vh;
  padding-bottom: 5rem;
}

#page {
  margin: 0 auto;
  max-width: 890px;
}

.top-block {
  padding-top: 80px;
  display: grid;
  grid-template-columns: 5fr 2fr;
  grid-column-gap: 1rem;
}
@media only screen and (max-width:596px) {
  .top-block {
    grid-template-columns: 1fr;
    padding-top: 1rem;
  }
  .top-block > * {
    min-width: 0;
  }
  #page {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.youtube > iframe {
  z-index: 99999;
}



.ads {
  margin-left: 0;
}

.links-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-column-gap: 1.5em;
  grid-row-gap: 1em;
}

.button {
  transition: all 0.45s;
  display: flex;
  text-align: center;
  align-items: center;

  letter-spacing: 1px;
  font-weight: 700;
  height: 50px;
  font-size: 1rem;
  background-color: white;
  justify-content: center;
  border: 4px solid black;
}

.button .link {
  width: 100%;
  padding-left: 1rem;
  display: flex;
  align-items: center;
}


.button .link img {
  justify-content: left;
  width: 23px;
  margin-right: 0.5em;
}

.button:hover img {
  filter: invert(1);
  transition: 0.5s;
}

.button .link p {
  text-align: right;
}

.button:hover {
  background-color: black;
}

a.button {
  text-decoration: none;
  color: black;
}

a.button:hover {  
  transition: 0.45s;
  color: white;
}
.button:hover {
  cursor: pointer;
  transition: 0.45s;
  color: white;
}

footer {
  width: 100%;
  height: 5rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  
  position: absolute;
  bottom: 0;
}

.spacer {
  content: "";
  margin-top: 100px;
}

.footer-content {
  padding: 2rem;
  line-height: 0.5rem;
}

.author {
  color: rgba(0, 0, 0, 0.33);
}

@media only screen and (min-width: 597px) {
  a.back-button {
    padding: 1.5rem;
    line-height: 3rem;
    top: 0;
    left: 0;
    position: absolute;
    text-decoration: none;
    font-size: 5rem;
    color: #373737;
    z-index: 99999;
  }
} 

label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 0 6px;
}
label .counter {
  font-weight: 400;
  color: rgba(0, 0, 0, 0.45);
}
input {
  box-sizing: border-box;
  padding: 0 14px;
  width: 100%;
  height: 50px;
  font-size: 1rem;
  color: black;
  background: white;
  border: 4px solid black;
  border-radius: 0;
  outline: none;
  transition: box-shadow 0.25s;
}
input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}
input:focus {
  box-shadow: 4px 4px 0 black;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
label, input, textarea, button {
  font-family: "Montserrat", sans-serif;
  margin: 0;
}
textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
}
.donation-item {
  margin-bottom: 1.5rem;
}

.one-input {
  display: grid;
  grid-template-columns: 1fr;
}
.top-inputs {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-column-gap: 1rem;
}

.donation-form {
  text-align: left;
}
.donation-form .spacer {
  margin-top: 1rem;
}
.donation-form .button {
  box-sizing: border-box;
}
.callback {
  max-width: 480px;
  margin: 80px auto 0;
  padding: 2rem 1.5rem;
  border: 4px solid black;
}
.callback h2 {
  margin: 0.75rem 0 0.5rem;
}
.callback p {
  margin: 0 0 1.5rem;
}
.ads img {
  max-width: 100%;
  height: auto;
}
.ads a {
  display: block;
  margin-bottom: 0.75rem;
}

@media only screen and (max-width:596px) {
  body {
    padding-bottom: 6rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  .top-inputs {
    grid-template-columns: 1fr;
  }

  a.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 1rem 0 0;
    box-sizing: border-box;
    border: 4px solid black;
    font-size: 2rem;
    line-height: 1;
    padding-bottom: 4px;
    color: black;
    text-decoration: none;
  }
  a.back-button:active {
    background: black;
    color: white;
  }

  .youtube > iframe {
    height: auto;
    aspect-ratio: 16 / 9;
    box-sizing: border-box;
  }
  .socials > h2 {
    display: none;
  }
  .socials {
    margin-top: 1.5rem;
  }

  .spacer {
    margin-top: 2.5rem;
  }
  .ads img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    object-position: center;
  }
}

.admin-notice {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  max-width: 420px;
  margin: 0 auto 1.5rem;
  padding: 0.9rem 1rem;
  border: 4px solid black;
  font-weight: 700;
  font-size: 0.9rem;
}
.admin-notice img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.admin-login {
  max-width: 420px;
  margin: 1.5rem auto 0;
}
.admin-login .button-icon {
  width: 100%;
}
.button-icon {
  gap: 0.6em;
}
.button-icon img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
a.back-button img {
  display: block;
  width: 64px;
  height: 64px;
}
.callback-icon {
  width: 48px;
  height: 48px;
}
@media only screen and (max-width:596px) {
  .callback {
    margin-top: 1.5rem;
  }
  a.back-button {
    padding: 0;
  }
  a.back-button img {
    width: 26px;
    height: 26px;
  }
  a.back-button:active img {
    filter: invert(1);
  }
}

.admin {
  padding-top: 2rem;
  text-align: left;
}
.admin h2 {
  text-align: center;
}
.admin .button {
  box-sizing: border-box;
}
.admin-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
}
.admin-section {
  margin-bottom: 2.5rem;
}
.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.6rem;
  margin-bottom: 1.25rem;
  border-bottom: 4px solid black;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.75rem;
}
.admin-badge img {
  width: 18px;
  height: 18px;
}
.admin-warning {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  border: 4px solid black;
  font-weight: 700;
  font-size: 0.85rem;
  word-break: break-word;
}
.admin-warning img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.admin-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.admin-actions .button {
  width: 100%;
}
.admin-small {
  white-space: nowrap;
  height: 36px;
  font-size: 0.75rem;
  padding: 0 0.75rem;
  border-width: 3px;
}
.admin-small.button-icon img {
  width: 16px;
  height: 16px;
}
.admin-error {
  color: #AC0000;
  font-size: 0.8rem;
  word-break: break-word;
}
.admin-muted {
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.8rem;
}
.admin-table-wrap {
  overflow-x: auto;
  border: 4px solid black;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.admin-table th,
.admin-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  background: black;
  color: white;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}
.admin-table td {
  border-top: 2px solid black;
}
.admin-table td.admin-empty {
  text-align: center;
  padding: 1.5rem;
  color: rgba(0, 0, 0, 0.5);
}
.admin-table .admin-nowrap {
  white-space: nowrap;
}
.admin-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.admin-user img {
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  border: 3px solid black;
}
.admin-status {
  border: 4px solid black;
}
.admin-status-row {
  display: grid;
  grid-template-columns: 22px 110px 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
}
.admin-status-row + .admin-status-row {
  border-top: 2px solid black;
}
.admin-status-row img {
  width: 22px;
  height: 22px;
}
.admin-status-row strong {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
@media only screen and (max-width:596px) {
  .admin-status-row {
    grid-template-columns: 22px 1fr;
  }
  .admin-status-row span {
    grid-column: 2;
  }
}
