* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  /*overflow-y: hidden;*/
  background-color: #1D1D1D;
}

body {
  background-color: var(--color-basic-body);
  font-family: 'Tahoma', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #fff;
  /*text-shadow: 0 .05rem .1rem rgba(0, 0, 0, .5);*/
  /*box-shadow: inset 0 0 5rem rgba(0, 0, 0, .5);*/
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #333;
  color: white;
  font-size: 1.5em;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--color-basic-text02);;
}

header .logo img {
  max-width: 204px;
  height: auto;
}

header nav {
  display: flex;
  gap: 20px;
}

header nav ul {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

header nav ul li {
  justify-content: space-between;
  display: inline-block;
  margin-left: 20px;
  background-color: #E01A53;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: 'Tahoma', sans-serif;
}

header nav ul li:first-child {
  margin-left: 0;
}

header nav ul li a {
  color: rgb(255, 255, 255, .9);
  text-decoration: none;
  font-family: 'Tahoma', sans-serif;
  font-weight: bold;
  font-size: 14px;
}

header nav ul li a:hover {
  text-decoration: underline;
}

.buttons {
    display: flex;
    gap: 20px;
}

.top-lovel {
    z-index: 10;
}

.button {
    display: flex;
    gap: 10px;

    padding: 10px 24px;
    align-content: center;
    justify-content: center;

    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Tahoma', sans-serif;

    border: none;
    border-radius: 10px;
    background-color: var(--color-basic-red);

    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;

    svg, label {
        margin: auto;
    }
}

.button-inline-flex {
    display: inline-flex;
}

.button:hover {
    background-color: #D0154D;
    transition: transform 0.3s ease;
    /*text-decoration: underline;*/
}

.pulse {
    /*transition: transform 0.2s ease-in-out;*/
    animation: buttonPulse 3s infinite;
}

.pulse::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 10px;
    background: radial-gradient(circle, rgba(224, 26, 83, 0.5), transparent);
    transform: translate(-50%, -50%) scale(0);
    /*border: 2px solid rgba(0, 123, 255, 0.5);*/
    animation: pulse 3s infinite;
    opacity: 0;
    z-index: -1;
}

/*.pulse-button {*/
/*    animation: buttonPulse 3s infinite;*/
/*}*/

/*.signin-b {*/
/*    padding: 10px 16px;*/
/*    align-content: center;*/

/*    font-size: 14px;*/
/*    font-weight: bold;*/
/*    font-family: 'Helvetica', sans-serif;*/

/*    border: none;*/
/*    border-radius: 10px;*/
/*    background-color: #E01A53;*/
/*    color: white;*/
/*    cursor: pointer;*/
/*    outline: none;*/
/*    position: relative;*/
/*}*/

/*.download-div {*/
/*  display: flex;*/
/*  align-items: center;*/
/*  justify-content: center;*/
/*}*/

.download-b {
  padding-left: 10px;
}

/*.pulse-button {*/
/*  padding: 10px 16px;*/
/*  font-family: 'Helvetica', sans-serif;*/
/*  font-weight: bold;*/

/*  font-size: 14px;*/
/*  border: none;*/
/*  border-radius: 10px;*/
/*  background-color: #E01A53;*/
/*  color: white;*/
/*  cursor: pointer;*/
/*  outline: none;*/
/*  position: relative;*/
/*  transition: transform 0.2s ease-in-out;*/

/*    label {*/
/*        margin-left: 10px;*/
/*    }*/
/*}*/

/*.pulse-button::after {*/
/*  content: '';*/
/*  position: absolute;*/
/*  top: -10px;*/
/*  left: -10px;*/
/*  right: -10px;*/
/*  bottom: -10px;*/
/*  border-radius: 10px;*/
/*  background: radial-gradient(circle, rgba(224, 26, 83, 0.5), transparent);*/
/*  transform: translate(-50%, -50%) scale(0);*/
/*  !*border: 2px solid rgba(0, 123, 255, 0.5);*!*/
/*  animation: pulse 3s infinite;*/
/*  opacity: 0;*/
/*  z-index: -1;*/
/*}*/

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes buttonPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

main {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.center-image {

  max-width: 100%;
  max-height: 70vh;
  display: block;
  margin: auto;
}

header, footer{
  padding: 16px 32px;
  /*padding: 16px 156px;*/
  font-family: 'Tahoma', sans-serif;
  /*text-transform: uppercase;*/
  font-size: 1.2em;
  letter-spacing: 1px;
  background-color: var(--color-sidebar);
}

footer {
  border-top: 1px solid var(--color-basic-text02);;
}

.footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.footer-nav ul li {
  display: inline-block;
  color: var(--color-basic-text09);
}

.footer-nav ul li a {
  color: var(--color-basic-text09);
  text-decoration: none;
  font-family: 'Tahoma', sans-serif;
  font-size: 14px;
}

.footer-nav ul li a:hover {
  text-decoration: underline;
}

.reserved ul li {
  color: rgb(255, 255, 255, .9);
  font-family: 'Tahoma', sans-serif;
  font-size: 14px;
}

.footer-left {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-right li {
  color: rgb(255, 255, 255, .9);
  font-family: 'Tahoma', sans-serif;
  font-size: 14px;
}

footer nav button {
  background-color: #ff4d4d;
  border: none;
  color: white;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 15px;
  cursor: pointer;
}

footer nav button:hover {
  background-color: #ff3333;
}


.page-header {
  /*p {*/
  display: flex;
  justify-content: space-between;
  align-items: center;

  color: var(--color-basic-text);
  font-family: Tahoma, sans-serif;
  font-size: 14px;
  font-weight: bold;
  padding: 32px 32px 0px 32px;
  /*}*/
}

.breadcrumbs {
  font-family: 'Tahoma', sans-serif;
  /*padding: 0px;*/
  /*background: #f5f5f5;*/
  /*border-radius: 4px;*/
  /*margin-bottom: 20px;*/
  padding: 0px;
  margin: 0px;

}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
}
.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: #999;
}
.breadcrumbs a {
  color: #F21756;
  text-decoration: none;
  cursor: pointer;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs .current {
  color: #555;
}

/*//////////*/

/*.video-controls {*/
/*  background-color: #1f2937;*/
/*  padding: 16px;*/
/*}*/
/**/
/*.progress-container {*/
/*  width: 100%;*/
/*  height: 8px;*/
/*  background-color: #374151;*/
/*  border-radius: 4px;*/
/*  margin-bottom: 16px;*/
/*  cursor: pointer;*/
/*  position: relative;*/
/*}*/
/**/
/*.progress-bar {*/
/*  height: 100%;*/
/*  background-color: #F21756;*/
/*  border-radius: 4px;*/
/*  width: 0%;*/
/*  transition: width 0.1s ease;*/
/*}*/
/**/
/*.controls-row {*/
/*  display: flex;*/
/*  align-items: center;*/
/*  justify-content: space-between;*/
/*}*/
/**/
/*.controls-left {*/
/*  display: flex;*/
/*  align-items: center;*/
/*  gap: 16px;*/
/*}*/
/**/
/*.btn {*/
/*  padding: 8px;*/
/*  background: transparent;*/
/*  border: none;*/
/*  color: white;*/
/*  border-radius: 50%;*/
/*  cursor: pointer;*/
/*  transition: background-color 0.2s;*/
/*  display: flex;*/
/*  align-items: center;*/
/*  justify-content: center;*/
/*}*/
/**/
/*.btn:hover {*/
/*  background-color: #374151;*/
/*}*/
/**/
/*.volume-controls {*/
/*  display: flex;*/
/*  align-items: center;*/
/*  gap: 8px;*/
/*}*/
/**/
/*.volume-slider {*/
/*  width: 80px;*/
/*  height: 4px;*/
/*  background: #374151;*/
/*  border-radius: 2px;*/
/*  outline: none;*/
/*  -webkit-appearance: none;*/
/*}*/
/**/
/*.volume-slider::-webkit-slider-thumb {*/
/*  -webkit-appearance: none;*/
/*  appearance: none;*/
/*  width: 16px;*/
/*  height: 16px;*/
/*  background: #F21756;*/
/*  border-radius: 50%;*/
/*  cursor: pointer;*/
/*}*/
/**/
/*.time-display {*/
/*  font-size: 14px;*/
/*  color: #d1d5db;*/
/*  font-family: 'Courier New', monospace;*/
/*}*/
/**/
/*.video-info {*/
/*  background-color: #1f2937;*/
/*  border-radius: 12px;*/
/*  padding: 20px;*/
/*}*/
/**/
/*.icon {*/
/*  width: 20px;*/
/*  height: 20px;*/
/*}*/
/**/
/*.icon-lg {*/
/*  width: 24px;*/
/*  height: 24px;*/
/*}*/

/*.item-container {*/
/*  !*display: flex;*!*/
/*  !*flex: 1;*!*/
/*  flex-direction: column;*/
/*  width: 100%;*/
/*  height: 70vh;*/
/*  !*align-content: center;*!*/
/*}*/

/*.video-container {*/
/*  position: relative;*/
/*  border-radius: 12px;*/
/*  overflow: hidden;*/
/*  !*width: 80%;*!*/
/*  !*height: 60vh;*!*/
/*  !*align-content: center;*!*/
/*}*/

/*.video-controls {*/
/*  !*position: absolute;*!*/
/*  !*bottom: 0;*!*/
/*  !*left: 0;*!*/
/*  !*right: 0;*!*/
/*  !*transition: opacity 0.3s;*!*/
/*  !*z-index: 10;*!*/

/*  transition: opacity 0.5s ease;*/
/*  will-change: opacity;*/

/*  position: absolute;*/
/*  bottom: 0;*/
/*  left: 50%;*/
/*  transform: translateX(-50%);*/
/*  right: 0;*/
/*  max-width: 800px;*/
/*  align-items: center;*/
/*  justify-content: space-between;*/
/*  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);*/
/*  opacity: 0;*/
/*  z-index: 10;*/
/*  border-radius: 10px;*/

/*}*/

/*.video-container:hover .video-controls,*/
/*.video-container:fullscreen .video-controls {*/
/*  opacity: 1;*/
/*}*/

/*.video-container:fullscreen {*/
/*  width: 100%;*/
/*  height: 100%;*/
/*  background: black;*/
/*}*/

/*.video-container:fullscreen video {*/
/*  width: 100%;*/
/*  height: 100%;*/
/*  object-fit: contain;*/
/*}*/

/*.video-container:fullscreen .video-controls {*/
/*  position: fixed;*/
/*  bottom: 20px;*/
/*  left: 50%;*/
/*  transform: translateX(-50%);*/
/*  width: 80%;*/
/*  max-width: 800px;*/
/*  padding: 15px;*/
/*  background: rgba(0,0,0,0.5);*/
/*  border-radius: 10px;*/
/*}*/

/*!*.video-container:hover .custom-controls,*!*/
/*!*.video-container:fullscreen .custom-controls {*!*/
/*!*  opacity: 1;*!*/
/*!*}*!*/

/*.video-player {*/
/*  width: 100%;*/
/*  height: 60vh;*/
/*  object-fit: contain;*/
/*  background-color: #000;*/
/*}*/

/*!*          *!*/

.red-button {
  border: 2px;
  border-radius: 10px;
  outline: none;
  color: rgb(255, 255, 255, .9);
  background-color: var(--color-basic-red);

  text-align: center;
  font-family: 'Tahoma', sans-serif;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;

  padding: 10px;
}

.item-container {
    height: 70vh;
    /*width: 100%;*/
    flex: 1;
    display: flex;
    gap: 10px;
}

.controls-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #374151;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
    transform: translateY(-1px);
}

.transcription-sidebar-footer {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

/* Scrollbar styling */
.transcript-container::-webkit-scrollbar {
    width: 6px;
}

.transcript-container::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 3px;
}

.transcript-container::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 3px;
}

.transcript-container::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Icons */
.icon {
    width: 20px;
    height: 20px;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

.sidebar-button {
    display: none;
}
/*video::-webkit-media-controls {*/
/*  display: none !important;*/
/*}*/

.text-viewer {
    white-space: pre-wrap;
    font-family: 'Tahoma', sans-serif;
    padding: 10px;
    max-height: 600px;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-box-border);
    color: var(--color-basic-text);
}

.pdf-viewer {
    width: 100%;
    max-width: 100vw;
    max-height: 80vh;
    border: none;
}

.form-for-download {
    min-height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    margin: auto;

    .card{
        width:100%;
        max-width:480px;
        background: var(--color-box);
        border: 1px solid var(--color-box-border);
        border-radius: 12px;
        box-shadow:0 8px 30px rgba(15,23,42,0.08);
        padding:28px;
        text-align:center;
    }


    .title{
        margin:0 0 20px 0;
        font-size:18px;
        line-height:1.4;
        color: var(--color-basic-text);
        font-weight:600;
    }
}

/*.btn{*/
/*    display:inline-flex;*/
/*    align-items:center;*/
/*    justify-content:center;*/
/*    padding:10px 16px;*/
/*    border-radius:10px;*/
/*    text-decoration:none;*/
/*    font-weight:600;*/
/*    border:1px solid transparent;*/
/*    background: var(--color-basic-red);*/
/*    color:white;*/
/*    box-shadow:0 6px 18px rgba(37,99,235,0.12);*/
/*}*/

@media (max-width: 728px) {

    .control--volume__slider {
        display: none;
    }

    .red-button {
        font-size: 12px;
    }

    .breadcrumbs {
        font-size: 12px;
    }

    header nav ul li a {
        font-size: 10px;
    }

    .footer-nav ul li a, .footer-right li {
        font-size: 10px;
    }

    .signin-b {
        padding: 5px 12px;
    }

    header, footer  {
        padding: 20px;
    }

    header {
        justify-content: center;
    }

    header .logo img {
        display: none;
        /*max-width: 80px;*/
    }

    header nav, .footer-nav {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-left, .footer-right {
        justify-content: center;
        gap: 5px;
    }

    header nav button, footer nav button {
        padding: 10px 15px;
        font-size: 16px;
    }

    .sidebar {
        border-radius: 0px;

        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        transform: translateX(100%);
        width: 250px;

        z-index: 1000;
        background: var(--color-transcript);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    /*.sidebar.collapsed {*/
    /*    width: 250px; !* на мобилке не коллапсируем *!*/
    /*}*/

    .sidebar-button {
        display: block;
    }
}

