﻿* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

html * {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-family: "Inter";
  font-style: normal;
}

h1,
h2,
h3 {
    font-weight: inherit;
	line-height: 38px;
}

code:not([class]) {
    background: var(--Colors-Secondary-ease-darker);
    color: var(--Colors-Secondary-strong-default);
    border-radius: 8px;
    padding: 1px 3px;
    border: 1px solid var(--Colors-Secondary-ease-stronger);
    font-weight: 300;
}

iframe, img {
    max-width: 100%;
}

svg {
  flex-shrink: 0;
}

a {
  cursor: pointer;
  color: var(--Color-White);
  text-decoration: auto;
}
/* Остальные стили--------------------- */

.scroll {
    scrollbar-color: var(--Colors-Secondary-ease-strong) var(--Colors-Secondary-ease-darker);
    scrollbar-width: thin;
}

[disabled] {
  opacity: 0.6;
  filter: grayscale(0.6);
}

::placeholder {
  color: var(--Colors-Secondary-easier);
  opacity: 1;
}

:-ms-input-placeholder {
  color: var(--dark-bg);
}

.avatarImage {
  border-radius: 50%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.avatarImage.profile,
.avatarImage.userList {
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.avatarImage.profileAvatar,
.avatarImage.discoverAvatar {
    width: 30px;
    height: 30px;
}

:root {
  --green-color: #22c55e;
  --lightgray-color: #e3e3e3;
}

body {    
    padding: 0px;
}

body.light {
    --body-bg: #ffffff;
    --Colors-Secondary-easier: #a1a1aa;
    --Colors-Secondary-default: #71717a;
    --Colors-Secondary-strong-ease: #3f3f46;
    --Colors-Secondary-strong-easier: #7d7d7d;
    --Colors-Secondary-strong-default: #18181b;
    --Colors-Secondary-ease-stronger: #ededed;
    --Colors-Secondary-ease-default: #f7f7f7;
    --Colors-Secondary-ease-darker: #fbfbfb;
    --Colors-Secondary-ease-easer: #ffffff;
    --Colors-Secondary-ease-strong: #e4e4e7;
    --Colors-Secondary-stronger: #52525b;
    --Colors-Primary-default: #22c55e;
    --Colors-Primary-easier: #4ADE80;
    --Colors-Primary-stronger: #16A34A;
    --Color-White: #000;
    --requestQuestionColor: #269f6d;
    --yandex_container_header_shadow: 0px 5px 5px 0px #f2f2f2;
    --yandex_info_i_color: #7526ff;
    --tatneft_logo_src: url("/content/images/copy_logos/tatneft/logo_dark.png");
    --itmo_logo_src: url("/content/images/copy_logos/itmo/logo_dark.png");   
}

body.body-dark {
    --body-bg: #09090b;
    --Colors-Secondary-easier: #52525b;
    --Colors-Secondary-default: #71717a;
    --Colors-Secondary-strong-ease: #d4d4d8;
    --Colors-Secondary-strong-easier: #52525b;
    --Colors-Secondary-strong-default: #f4f4f5;
    --Colors-Secondary-ease-stronger: #27272a;
    --Colors-Secondary-ease-default: #18181b;
    --Colors-Secondary-ease-darker: #1d1d20;
    --Colors-Secondary-ease-easer: #09090b;
    --Colors-Secondary-ease-strong: #3f3f46;
    --Colors-Secondary-stronger: #a1a1aa;
    --Colors-Primary-default: #22c55e;
    --Colors-Primary-easier: #16A34A;
    --Colors-Primary-stronger: #4ADE80;
    --Color-White: #ffffff;
    --requestQuestionColor: #14ba76;
    --yandex_container_header_shadow: 0px 5px 5px 0px #3232325e;
    --yandex_info_i_color: #a77df0;
    --tatneft_logo_src: url("/content/images/copy_logos/tatneft/logo_light.png");
    --itmo_logo_src: url("/content/images/copy_logos/itmo/logo_light.png");    
}

.input_text {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray-opacity-back);
    border-radius: 0.3rem;
    font-size: 1.1rem;
    border-width: 3px;
    background: var(--Colors-Secondary-ease-easer);
    color: var(--Color-White);
    outline: none;
    border: 1px solid var(--Colors-Secondary-ease-strong);
    border-left: 4px solid var(--Colors-Primary-default);
}

.input_text::placeholder {
  color: #a1a1aa;
}

.Error {
  display: flex;
  padding: 10px 0px;
  color: #d83838;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.Success {
  display: flex;
  padding: 10px;
  flex-wrap: wrap;
  color: var(--green-color);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: var(--gray-opacity-back);
  -webkit-border-radius: 10px;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  -webkit-border-radius: 10px;
  border-radius: 10px;
  background: var(--gray-border-color);
}

.hide {
  display: none;
}

.disabled {
  opacity: 0.2!important;
  pointer-events: none;
}

summary {
  cursor: pointer;
}

/* Switch */
.pure-material-switch {
  z-index: 0;
  position: relative;
  display: inline-block;
  color: inherit;
}

.pure-material-switch > input {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  z-index: -1;
  position: absolute;
  right: 6px;
  top: -8px;
  display: block;
  margin: 0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
  outline: none;
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
  transition: opacity 0.3s 0.1s, transform 0.2s 0.1s;
}

.pure-material-switch > span {
  cursor: pointer;
  font-size: 0.9rem;
}

.pure-material-switch > span::before {
  content: "";
  float: right;
  display: inline-block;
  margin: 5px 0 5px 10px;
  border-radius: 7px;
  width: 36px;
  height: 14px;
  background-color: var(--f-button-active-bg);
  vertical-align: top;
  transition: background-color 0.2s, opacity 0.2s;
}

.pure-material-switch > span::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 16px;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  background-color: rgb(var(--pure-material-onprimary-rgb, 255, 255, 255));
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 1px 5px 0 rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s, transform 0.2s;
}

.pure-material-switch > input:checked {
  right: -10px;
}

.pure-material-switch > input:checked + span::after {
  background-color: var(--green-color);
  transform: translateX(16px);
}

.pure-material-switch:hover > input {
  opacity: 0.04;
}

.pure-material-switch > input:focus {
  opacity: 0.12;
}

.pure-material-switch:hover > input:focus {
  opacity: 0.16;
}

.pure-material-switch > input:active {
  opacity: 1;
  transform: scale(0);
  transition: transform 0s, opacity 0s;
}

.pure-material-switch > input:active + span::before {
  background-color: rgba(var(--pure-material-primary-rgb, 33, 150, 243), 0.6);
}

.pure-material-switch > input:checked:active + span::before {
  background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
}

.pure-material-switch > input:disabled {
  opacity: 0;
}

.pure-material-switch > input:disabled + span {
  color: rgb(var(--pure-material-onsurface-rgb, 0, 0, 0));
  opacity: 0.38;
  cursor: default;
}

.pure-material-switch > input:disabled + span::before {
  background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
}

.pure-material-switch > input:checked:disabled + span::before {
  background-color: rgba(var(--pure-material-primary-rgb, 33, 150, 243), 0.6);
}

.tooltip {
  position: relative;
  z-index: 1;
}

.tooltip:hover::before {
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
}

.tooltip::before {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  min-width: max-content;
  background: var(--Colors-Secondary-ease-stronger);
  color: var(--Color-White);
  padding: 2px 6px;
  border-radius: 4px;
  content: attr(tooltip-text);
  transition: all 0.1s ease;
  z-index: 1;
}

.tooltip.top::before {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.tooltip.right::before {
  left: 103%;
  top: 50%;
  transform: translateY(-50%);
}

.tooltip.bottom::before {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.tooltip.left::before {
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
}

.mime-type {
    background: var(--Colors-Secondary-ease-stronger);
    padding: 5px;
    border-radius: 5px;
    font-weight: 400;
    color: var(--Colors-Secondary-stronger);
}

.video-player-overlay video {
    max-height: 70px;
    border-radius: 5px;
}

/* Spinners */
.loader_spin_points {
    width: 25px;
    height: 25px;
    display: flex;
    position: relative;    
    align-items: center;
    justify-content: center;
    background: var(--Colors-Secondary-ease-darker);
    border-radius: 100px;
}

.loader_spin_points::after,
.loader_spin_points::before {
    content: '';
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--Colors-Secondary-strong-ease);
    position: absolute;
    left: 0;
    top: 0;
    animation: animloader 2s linear infinite;
}

.blink {
    animation: blink 0.8s infinite;
}

@keyframes blink {
    to {
        opacity: .0;
    }
}

.loader_spin_points::after {
    animation-delay: 1s;
}

@keyframes animloader {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@media only screen and (max-width: 820px) {
    h1, h2, h3 {
        line-height: normal;
    }
}