/* === Общие стили === */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(55, 50, 45);
    font-family: Arial, sans-serif;
    color: #333;
}

/* === Toolbar === */
#toolbar {
    background: #ad8762;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    height: auto;
    width: 70px;
    top: 25%;
    left: 10px;
    border-radius: 20px;
}
@media screen and (max-width: 770px) {
    #toolbar {
        top: 10px;
        left: 10px;
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
    }
}

/* === Вход === */
#vhod {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 200px;
    height: 50px;
    background-color: #8f7361;
    color: #13110d;
    border-radius: 5px;
}

/* === Canvas === */
.canvas-container {
    background-color: white;
}

/* === Кнопки и input === */
button, input {
    padding: 5px;
    font-size: 1em;
    font-family: 'Comic Sans MS', sans-serif;
    background-color: #8f7361;
    color: #fff2d6;
    border: none;
    border-radius: 5px;
    height: 50px;
}
button:hover, input:hover {
    background-color: #d6c1a0;
    color: black;
}

/* === Timeline === */
#timeline {
    border-radius: 20px;
    background: #f3eee8;
    padding: 20px;
    display: grid;
    justify-content: center;
    width: 200px;
    gap: 6px;
    position: fixed;
    right: 8px;
    top: 80px;
    grid-template-columns: 100px 100px;
}
#timeline button { padding: 5px; }
#timeline span { font-size: 1em; }

/* === Информационный блок === */
.info-container {
    background-color: #251d14;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(179, 107, 182, 0.1);
    font-family: 'Comic Sans MS', sans-serif;
    font-size: 1.2em;
    color: #e0c5b7;
    right: 60px;
    left: 60px;
    position: absolute;
}
.active {
    background-color: rgb(255, 216, 145);
    color: black;
    border-radius: 7px;
}

/* === Main === */
#main {
    display: flex;
    justify-content: center;
}

/* === Новости === */
#news {
    position: fixed;
    width: 16vw;
    right: 0%;
    background-color: #b37b47;
    color: #ffffff;
    margin: 2px;
    padding: 2px;
    font-size: 1em;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: 'Comic Sans MS', sans-serif;
    overflow: auto;
}

/* === Скрытый input для файлов === */
#fileInput {
    display: none;
}

/* === Навигация === */
nav {
    background-color: rgb(233, 167, 101);
    color: black;
    font-family: 'Comic Sans MS', sans-serif;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 60px;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}
nav ul li {
    display: inline;
    padding: 8px;
    background-color: rgb(43, 31, 20);
    font-family: 'Comic Sans MS', sans-serif;
    font-size: 1.2em;
    border-radius: 5px;
    transition: 0.3s;
}
nav ul li:hover { background-color: rgb(255, 236, 153); }
nav img {
    height: 50px;
    width: 50px;
}
nav a {
    text-decoration: none;
    color: white;
}
nav a:hover { color: black; }

/* === Профиль пользователя === */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;

}
.profile-header-avatarChange{
    display: grid;
    grid-template-columns: 200px, 200px;
    gap: 10px;
    width: 30%;
    justify-content: center;
    justify-items: stretch;
}
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    margin-bottom: 16px;
    background-color: #fff;
}
.auth-box{
    background-color: #251d14;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(179, 107, 182, 0.1);
    font-family: 'Comic Sans MS', sans-serif;
    color: #e0c5b7;
    max-width: 400px;
    /* контент по центру */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    margin-top: 20vh;
}
/* справа */
.nav-avatar-container{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 10px;
    right: 10px;
    overflow: hidden;
}
.nav-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    margin-bottom: 16px;
    background-color: #fff;
}
.profile-username {
    color: #fff;
    font-size: 2rem;
    margin: 0;
}
.profile-date {
    color: #777;
    margin-top: 8px;
}

/* === Сетка мультов === */
.grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card-img { width: 100%; display: block; }
.card-duration {
    position: absolute;
    bottom: 6px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 1px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}
.card-content {
    padding: 16px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.card-content { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.2rem; margin: 0 0 8px; }
.card-likes 
{ margin-top: auto; display: flex; align-items: center; gap: 8px; }
.heart-button 
{ color: #e74c3c; cursor: pointer;}
.card-trash { 
    margin-top: auto; 
    display: none; 
    flex-direction: column;
    align-items:end; 
}
.trash-button{
    font-size: large;
    color: #f10c0c;
    cursor: pointer;
}
body {
    font-family: Arial, sans-serif;
    color: #333;
}
h1 {
    text-align: center;
    margin-top: 20px;
}
h2 {
    text-align: center;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}
.catalog-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
    text-align: center;
    color: #fff;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card-link {
    display: block;
    position: relative;
}
.card-img {
    width: 100%;
    display: block;
}

.card-title {
    font-size: 1.2rem;
    margin: 0 0 8px 0;
}
.card-likes {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-heart {
    color: #e74c3c;
}
#username{
    color: #fff;
}

/* переменные
:root {
  --bg: #0b0c10;
  --card: #121419;
  --text: #e6e7ea;
  --muted: #a9b0bb;
  --accent: #7aa2ff;
  --border: #1f2430;
  --danger: #ff6b6b;
  --ok: #7ce38b;
}

Для светлой темы
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fa;
    --card: #ffffff;
    --text: #1d2433;
    --muted: #5b6472;
    --accent: #335dff;
    --border: #e6e8ee;
    --danger: #e53935;
    --ok: #2e7d32;
  }
}

Общий фон и текст
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: radial-gradient(1200px 800px at 10% -10%, rgba(122,162,255,.12), transparent 60%),
              radial-gradient(1000px 700px at 110% 10%, rgba(124,227,139,.10), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

button, .btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover, .btn:hover {
  background: #5678ff;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
} */
