@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Nanum+Pen+Script&display=swap");

main {
  padding: 2vh 4vw;
  display: grid;
  grid-template-columns: 1fr 25rem;
  gap: 1vw;
  height: 90%;
  box-sizing: border-box;
  @media screen and (max-width: 690px) {
    grid-template-columns: 1fr;
    grid-template-rows: 400px 1fr;
  }
}

.content-box {
  display: grid;
  grid-template-rows: 60px 1fr;
  .title-box {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 500;
    border: 1px solid #a9a9a9;
    border-radius: 5px 5px 0 0;
    &:focus {
      outline: none;
    }
  }
  .code-box {
    position: relative;
    textarea {
      height: 100%;
      width: 100%;
      box-sizing: border-box;
      background-color: transparent;
      color: transparent;
      caret-color: white;
      z-index: 2;
      overflow: auto;
      position: absolute;
      padding: 16px;
      font-size: 1rem;
      border: none;
      resize: none;
      scrollbar-width: none;
      &:focus {
        outline: none;
      }
    }
    pre {
      height: 100%;
      margin: 0;
      position: relative;
      code {
        height: 100%;
        width: 100%;
        overflow: auto;
        box-sizing: border-box;
        position: absolute;
        top: 0;
        border-radius: 0 0 5px 5px;
        font-size: 1rem;
      }
    }
  }
}

.upload-box {
  display: flex;
  flex-direction: column;
  padding: 10px 0 0 10px;
  overflow: hidden;
  @media screen and (max-width: 600px) {
    padding: 10px 0;
  }
  .assignment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: auto;
    max-height: 80%;
    .assignment {
      display: flex;
      justify-content: space-between;
      .assignment-info {
        cursor: default;
        display: flex;
        flex-direction: column;
        gap: 5px;
        h3 {
          margin: 0;
          font-size: 20px;
          font-weight: 500;
        }
        h4 {
          margin: 0;
          font-size: 14px;
          color: rgba(0, 0, 0, 0.3);
        }
      }
      .assignment-select {
        border: 1px solid #d9d9d9;
        border-radius: 5px;
        padding: 5px 10px;
        font-weight: 600;
        font-size: 13px;
        cursor: pointer;
        background-color: rgba(0, 0, 0, 0.02);
        &.selected {
          background-color: #0095ff;
          color: white;
          border-color: transparent;
        }
      }
    }
  }
  .share {
    padding: 10px 20px;
    border: none;
    background-color: #0095ff;
    color: white;
    font-weight: 600;
    border-radius: 5px;
    margin-top: auto;
    cursor: pointer;
  }
}
