body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100vw;
    margin: 0;
}

main {
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    flex: 1;
}

.title-subhead{
    padding-bottom: 10px;
}

.app-main {
    box-sizing: border-box;
    padding: 50px 60px 50px 180px;
    width: 100%;
}

.buttons {
  display: grid;
  justify-content: center;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  row-gap: 30px;
  column-gap: 30px;
}
.buttons > :nth-child(5) {
  grid-column: 1 / 3;
}
.buttons :nth-child(6) {
  grid-column: 1 / 3;
  width: 50%;
  justify-self: center;
}

@media (min-width: 769px) {
  .team-create-page .buttons > :nth-child(6) {
    grid-column: 1 / 3;
    width: 100%;
    justify-self: center;
    text-align: center;
  }

  .team-create-page .buttons > :nth-child(7) {
    grid-column: 1 / 3;
    width: 50%;
    justify-self: center;
  }
}

form {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}
form input {
  width: 100%;
}
.big-input {
  width: 80vh;
}

.auth-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 18px;
    box-sizing: border-box;
}

.auth-button {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.error-info {
  font-family: "Open Sans", sans-serif;
  color: var(--error);
  font-size: var(--font-size-lg);
}

.application-block {
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.application-block header {
  width: 100%;
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.app-main footer {
    gap: 20px;
}
.application-block footer {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.app-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    color: var(--green);
}
.app-row {
  align-items: flex-start;
  display: flex;
  flex-direction: row;
}
.app-row,
.app-row {
  flex-direction: row;
    width: 100%;
    align-items: center;
  gap: 0;
    border-top: 3px solid var(--green);
}
.app-row h2 {
  font-family: "Open Sans", sans-serif;
  font-size: var(--font-size-2xl);
  padding: 15px;
    width: 100%;
}
.app-row h2:first-child {
    min-width: 35%;
}
.app-row:last-child {
  border-bottom: 3px solid var(--green);
}

.no-wrap {
  white-space: nowrap;
  height: fit-content;
}

.app-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.app-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.app-card > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.app-card h4 {
  font-weight: normal;
  font-size: var(--font-size-h4);
}
.app-card-info {
  font-family: "Open Sans", sans-serif;
  font-size: var(--font-size-lg);
  color: var(--green);
}

.alarm {
  position: absolute;
  right: 10px;
  top: 10px;
}
.name_input_container {
  position: relative;
}

@media (max-width: 768px) {
    main {
        width: 100%;
        gap: 20px;
    }
    .app-main header .button {
        width: 100%;
    }
    form {
        gap: 20px;
    }
    form input {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    .big-input {
        width: 100%;
    }
    .alarm {
        right: 5px;
        top: 5px;
        transform: scale(75%);
    }
    .title {
        text-align: center;
        font-size: var(--font-size-3xl);
    }

    .app-card-info {
        font-size: var(--font-size-base)
    }

    * {

    }
    .app-main {
        padding: 10px;
    }
    .app-main header {
        flex-direction: column;
        gap: 10px;
    }
    .app-main footer {
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 10px;
    }
    .application-block {
        gap: 20px;
    }
    .app-row {
        background-color: white;
    }
    .app-row h2 {
        font-size: var(--font-size-base);
    }
    .app-row h2:first-child {
        min-width: 30%;
    }

    .app-table {
        margin: 0 10px;
    }

    .buttons {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 15px;
        column-gap: 15px;
        width: 80%;
    }
    .buttons button:nth-child(2),
    
    .buttons > :nth-child(5) {
        grid-column: 1 / 2;
    }
    .buttons :nth-child(6) {
        grid-column: 1 / 2;
        justify-self: center;
    }
    .buttons :nth-child(7) {
        grid-column: 1 / 2;
        width: 100%;
        max-width: none;
        justify-self: center;
    }
    .team-create-page .error-info {
        display: block;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        padding: 0 20px;
        word-break: break-word;
    }

    .application-block footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        justify-content: center;
    }
    :root {
        background-image: none;
    }

    .auth-input {
        font-size: 18px;
        padding: 12px 16px;
        width: 100%;
    }
    .auth-button {
        width: 100%;
        max-width: none;
    }
}
