@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap");
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
   -ms-text-size-adjust: 100%;
       text-size-adjust: 100%;
}

::-webkit-scrollbar {
  width: 0;
}

.space {
  height: 80px;
}

* {
  padding: 0;
  margin: 0;
  list-style: none;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  background-color: #1F2127;
  color: #898997;
}

a {
  text-decoration: none;
  line-height: normal;
  margin-top: 10px;
  -webkit-transition: 0.2s;
  transition: 0.2s;
}

p {
  text-align: center;
}

input, textarea, select {
  margin-top: 10px;
  height: 50px;
  padding: 10px 20px;
  width: 100%;
  height: auto;
  background: #292C35;
  border-radius: 20px;
  font-size: 24px;
  font-family: "Montserrat", sans-serif;
  color: #6A6E7C;
  outline: none;
  outline-offset: 0;
  border: 0px;
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill, textarea:-webkit-autofill:hover, textarea:-webkit-autofill:focus, select:-webkit-autofill, select:-webkit-autofill:hover, select:-webkit-autofill:focus {
  -webkit-text-fill-color: #292C35;
  -webkit-box-shadow: 0 0 0px 40rem #6A6E7C inset;
}

::-webkit-input-placeholder {
  color: #6A6E7C;
}

::-moz-placeholder {
  color: #6A6E7C;
}

:-ms-input-placeholder {
  color: #6A6E7C;
}

::-ms-input-placeholder {
  color: #6A6E7C;
}

::placeholder {
  color: #6A6E7C;
}

.container {
  overflow-x: hidden;
  width: 78%;
}
.container.center {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  margin: auto;
}
.container p {
  font-size: clamp(28px, 6.7633vw, 32px);
}

.button {
  padding: 10px 20px;
  width: 100%;
  background: #292C35;
  border-radius: 20px;
  color: #898997;
  font-size: 24px;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
.button.big {
  height: 70px;
  width: 320px;
  font-size: 40px;
}
.button.submit {
  background-color: #C4AC6D;
  color: #1F2127;
}
.button.admin {
  width: 93%;
  height: 30px;
  font-size: 16px;
  color: #6A6E7C;
  padding: 5px 10px;
  border-radius: 10px;
  display: inline-block;
  text-align: center;
}
.button:hover {
  background: #898997;
  color: #292C35;
}
.button.submit:hover {
  background-color: #292C35;
  color: #C4AC6D;
}

.admin-panel {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.switch {
  height: 48px;
  margin: 0px;
}

.switcher {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  text-align: center;
  margin-top: 10px;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  color: #6A6E7C;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: fixed;
  bottom: 0;
  height: 60px;
  width: 100%;
  background-color: #292C35;
  padding: 10px 20px;
}
.switcher a {
  color: #6A6E7C;
  margin-top: 0px;
}
.switcher .admin-panel {
  position: fixed;
  bottom: 70px;
  right: 10px;
  background-color: #292C35;
  border-radius: 50px;
  padding: 10px 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.switcher .edit-admin {
  position: fixed;
  bottom: 130px;
  right: 10px;
  background-color: #292C35;
  border-radius: 50px;
  padding: 10px 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.schedule {
  overflow-x: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -ms-flex-line-pack: center;
      align-content: center;
  width: 100%;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  max-height: -webkit-fit-content;
  max-height: -moz-fit-content;
  max-height: fit-content;
}

.day {
  width: 100%;
}

.title {
  margin: 10px 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  font-size: clamp(18px, 3.8647vw, 24px);
  color: #494D59;
}

.box {
  margin: 0px 20px;
  padding: 0px 10px 10px 10px;
  background-color: #292C35;
  border-radius: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.time {
  width: 55px;
  background-color: #3A3D47;
  margin-right: 10px;
  margin-top: 10px;
  border-radius: 15px;
  font-size: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.time .number {
  width: 35px;
  height: 35px;
  background-color: #292C35;
  border-radius: 50px;
  padding: 3px 0px;
  font-size: 24px;
  margin-top: 5px;
}
.time .text {
  margin-top: 5px;
}

.content {
  background-color: #3A3D47;
  border-radius: 15px;
  width: 100%;
  margin-top: 10px;
  font-size: clamp(7px, 2.8986vw, 18px);
}
.content.none {
  padding: 5px 10px;
  font-size: clamp(12px, 3.8647vw, 24px);
}
.content.none p {
  text-align: start;
}
.content .type {
  background-color: #292C35;
  color: #6A6E7C;
  border-radius: clamp(5px, 2.4155vw, 10px);
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  padding: 5px 10px;
  margin: 7px 0px 2px 10px;
}
.content .edited {
  background-color: #C4AC6D;
  color: #292C35;
  border-radius: clamp(5px, 2.4155vw, 10px);
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  padding: 5px 10px;
  margin: 7px 0px 2px 10px;
}
.content .name {
  font-size: clamp(12px, 3.8647vw, 24px);
  margin-left: 10px;
  margin-bottom: 2px;
}
.content .name p {
  text-align: start;
}
.content .name a {
  color: #898997;
}
.content .classroom {
  color: #6A6E7C;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: 1px;
  margin-bottom: 5px;
}
.content .classroom p {
  text-align: start;
}
.content .teacher {
  color: #6A6E7C;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: 1px;
  margin-bottom: 5px;
}
.content .homework {
  text-align: start;
  color: #6A6E7C;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: 1px;
  background-color: #292C35;
  margin: 0px 10px 7px 10px;
  border-radius: 10px;
  padding: 6px 4px 6px 0px;
}
.content .homework a {
  margin-top: 0px;
  color: #6A6E7C;
}
.content .homework img {
  margin-left: 5px;
}

.announcement {
  background-color: #C4AC6D;
  border-radius: 15px;
  margin-top: 10px;
  padding: 4px 8px 4px 0px;
  color: #1F2127;
  font-size: clamp(10px, 3.3816vw, 20px);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.announcement p {
  margin-left: 5px;
  text-align: start;
}
.announcement pre {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(10px, 3.3816vw, 20px);
  color: #1F2127;
}
.announcement a {
  margin-top: 0px;
  color: #1F2127;
}
.announcement img {
  width: 40px;
}

.homework a {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.tags {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.table {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}

.image_row {
  margin: 0px 2px 0px 8px;
  width: clamp(14px, 4.8309vw, 24px);
}

.big_image_row {
  width: clamp(28px, 9.6618vw, 40px);
}

.lesson {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
}

pre {
  font-family: "Montserrat", sans-serif;
  white-space: pre-wrap;
  word-wrap: break-word;
}

@media (max-width: 520px) {
  .row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .content {
    border-radius: 12px;
  }
  .content .classroom {
    margin-bottom: 0px;
  }
  .content .teacher {
    margin-bottom: 5px;
  }
  .content .type {
    margin-left: 7px;
    padding: 4px 5px;
    border-radius: 7px;
  }
  .content .edited {
    margin-left: 7px;
    padding: 4px 5px;
    border-radius: 7px;
  }
  .content .name {
    margin-left: 7px;
  }
  .content .homework {
    margin: 0px 5px 5px 5px;
    padding: 4px 3px 4px 0px;
  }
  .image_row {
    margin: 0px 2px 0px 5px;
  }
  .time {
    width: 42px;
    border-radius: 12px;
    font-size: 10px;
  }
  .time .number {
    width: 25px;
    height: 25px;
    padding: 3px 0px;
    font-size: 16px;
  }
  .title {
    margin: 5px 10px;
  }
  .box {
    margin: 0px 10px;
  }
}
@media (max-width: 320px) {
  .switcher a {
    font-size: 24px;
  }
  .content {
    border-radius: 10px;
    margin-top: 7px;
  }
  .box {
    border-radius: 15px;
    padding: 0px 7px 7px 7px;
  }
  .time {
    border-radius: 10px;
    margin-right: 5px;
    margin-top: 7px;
  }
}

.rotating-object:hover {
    animation: spin 2s linear infinite; /* Вращение с анимацией */
}

@keyframes spin {
    from {
        transform: rotate(0deg); /* Начальное состояние */
    }
    to {
        transform: rotate(360deg); /* Конечное состояние */
    }
}
