/* ПРОБЕЛЫ:
• 
&nbsp; — неразрывный пробел.
&emsp; — больший интервал, схожий с табуляцией.
&ensp; — создаст половину его ширины. */
/* <br> */

/* class="text-yellow"
class="text-green"
class="text-blue"
class="text-pink"
class="text-red"
class="text-light-blue"
class="playper-sans-blue"
class="playper-sans-text"
class="playper-sans-red" */

/* <b class="playper-sans-blue">Любопытные детали</b><br>
   <span class="playper-sans-text">
   ТЕКСТ</span> <br> */

/* КАРТИНКИ
<div class="img-kartinki">
  <div class="image__wrapper">
    <img src="" class="minimized" alt="клик для увеличения" />
  </div>
</div> */

/*  <div class="tab-content" id="content-2">
      <div class="map">
        <img src="#" alt="">
      </div>
    </div>

    <div class="tab-content" id="content-3">
      <div class="shemy">
        &nbsp;
        <img src="#" alt="">
        <p><i>В.В.Кириллов. Отечественная история в схемах и таблицах.</i></p>
      </div>
    </div>

    <div class="tab-content" id="content-4">
      <div class="terminy">
        <b>Термин</b> - <br>
        <b>Термин</b> - <br>
        <b>Термин</b> - <br>
      </div>
      <br>
      <br>
    </div>

    <div class="tab-content" id="content-5">
      <div class="daty">
        <b class="text-blue">Иван IV Грозный (1533-1584гг.)</b><br>
        &emsp;
      </div>
    </div>
                    

    <div class="tab-nav">
      <input checked id="tab-btn-1" name="tab-btn" type="radio" value="">
      <label for="tab-btn-1">Конспект</label>
      <input id="tab-btn-2" name="tab-btn" type="radio" value="">
      <label for="tab-btn-2">Карта</label>
      <input id="tab-btn-3" name="tab-btn" type="radio" value="">
      <label for="tab-btn-3">Таблицы и схемы</label>
      <input id="tab-btn-4" name="tab-btn" type="radio" value="">
      <label for="tab-btn-4">Термины</label>
      <input id="tab-btn-5" name="tab-btn" type="radio" value="">
      <label for="tab-btn-5">Даты</label>
    </div> */



:root {
  --color-text-pink: #faaae6;
  --color-text-red: #f5c0bc;
  --color-text-green: #a1eead;
  --color-text-yellow: #f8f6aa;
  --color-text-blue: #78e8f5;
  --color-text-light-blue: #9ff2f8cf;
}

html {
  box-sizing: border-box;
}

*,
*:after,
*:before {
  box-sizing: inherit;
}

html,
body {
  height: 100%;
  font-family: "Noto Sans", sans-serif;

}

body {
  background-color: #ededed;
}


/* ------ *Если подключаешь Bootstrap, то фон надо подключить к body, а не к html ----- */


.wrapper {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.main {
  flex-grow: 1;
}

/* ------ FONTS ------ */
/* .noto-sans-<uniquifier> {
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
    font-variation-settings:
      "wdth" 100;
  } */

/* .triodion-regular {
  font-family: "Triodion", system-ui;
  font-weight: 400;
  font-style: normal;
} */

/* .bad-script-regular {
  font-family: "Bad Script", cursive;
  font-weight: 400;
  font-style: normal;
} */

/* .playpen-sans-<uniquifier> {
  font-family: "Playpen Sans", cursive;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
} */

/* ------ FONTS ------ */

/* =- FOOTER прижат к низу экрана */



/* --------- HEADER -------- */
.header {
  background-image: url(img_css/header-c.jpg);
}

h1 {
  font-size: 40px;
  text-align: center;
  padding: 25px 0 20px;
  color: #1f1d1d;
}

h2 {
  font-size: 32px;
  text-align: center;
}

h3 {
  font-size: 22px;
  text-align: center;
}

.playper-sans-blue {
  font-family: "Playpen Sans", cursive;
  background-color: var(--color-text-blue);
}

.playper-sans-text {
  font-family: "Playpen Sans", cursive;
}

.playper-sans-red {
  background-color: var(--color-text-red);
  font-family: "Playpen Sans", cursive;
}

.text-green {
  background-color: var(--color-text-green);
}

.text-yellow {
  background-color: var(--color-text-yellow);
}

.text-blue {
  background-color: var(--color-text-blue);
}

.text-light-blue {
  background-color: var(--color-text-light-blue);
}

.text-pink {
  background-color: var(--color-text-pink);
}

.text-red {
  background-color: var(--color-text-red);
}


.podpis {
  padding: 0 0 5px 16px;
  background-color: #cfddfff0;
}

/* --------- HEADER -------- */


.main {
  background-color: #948b8b63;
  /* font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; */
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  color: #212529;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}



/* -------- Вкладки ------- */
.container-vkladki {
  margin: 1rem;
  padding: 1.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  background-color: #ecf1fdf0;
}

.tab {
  display: flex;
  flex-direction: column;
}

.tab-nav>input[type="radio"] {
  display: none;
}

.tab-content {
  display: none;
  width: 96%;
  margin: 0 auto;
  /* height: 100%; */
}

#content-1:has(~ .tab-nav > #tab-btn-1:checked),
#content-2:has(~ .tab-nav > #tab-btn-2:checked),
#content-3:has(~ .tab-nav > #tab-btn-3:checked),
#content-4:has(~ .tab-nav > #tab-btn-4:checked),
#content-5:has(~ .tab-nav > #tab-btn-5:checked),
#content-6:has(~ .tab-nav > #tab-btn-6:checked) {
  display: block;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #0d6efd;
  margin-bottom: 1rem;
  order: -1;
}

.tab-nav>label {
  display: block;
  padding: 0.5rem 1rem;
  color: #0d6efd;
  font-weight: 600;
  text-decoration: none;
  background: 0 0;
  border: 1px solid transparent;
  margin-bottom: -1px;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
  /* -webkit-appearance: button; */
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.tab-nav>input[type="radio"]:checked+label {
  color: #000;
  background-color: #fff;
  border-color: #dee2e6 #dee2e6 #fff;
  cursor: default;
}

/* -------- Вкладки ------- */


.img-kartinki {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 15px;
  margin: 20px 0;
}

.img-kartinki p {
  padding: 5px;
  font-size: 14px;
}

.img_resize {
  width: 100%;
  height: auto;
  margin-bottom: 70px;
}

.name-map {
  padding: 15px 0 10px 0;
}

.shemy img{
  margin: 0 auto;
}



/* -------- УВЕЛИЧЕНИЕ КАРТИНКИ ПО КЛИКУ -------- */
/* https://codernote.ru/jquery/uvelichenie-izobrazheniya-po-kliku-new/ */
/* картинка на странице */
.image__wrapper {
  position: relative;
  overflow: hidden;
}

.image__wrapper:hover {
  box-shadow: 0 0 20px #3881a1;
}

.image__wrapper-a {
  max-width: 400px;
  height: auto;
  margin: 15px 0;
}

.minimized {
  width: 100%;
  object-fit: cover;
  /* width: 300px; */
  cursor: pointer;
  transition: transform .3s;
  height: -webkit-fill-available;

  /* border: 1px solid #FFF; */
}

.minimized:hover {
  transform: scale(1.1);
}

/* увеличенная картинка */
#magnify {
  left: 5%;
  top: 5%;
  display: flex;
  /* position: absolute; upd: 24.10.2016 */
  position: fixed;
  max-height: 90%;
  width: 90%;
  z-index: 9999;
  animation-name: picture-scale;
  /*плавное появление картинки*/
  animation-duration: 2s;
  /*плавное появление картинки*/
}

@keyframes picture-scale {

  /*плавное появление картинки*/
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1);
  }
}

#magnify img {
  width: 100%;
  object-fit: contain;
}

/* затемняющий фон */
#overlay {
  display: none;
  background: #000;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0.5;
  z-index: 9990;
}

/* кнопка закрытия */
#close-popup {
  width: 40px;
  height: 40px;
  background: #FFFFFF;
  border: 1px solid #AFAFAF;
  border-radius: 20px;
  cursor: pointer;
  position: absolute;
  top: -30px;
  right: -30px;
}

#close-popup i {
  width: 37px;
  height: 37px;
  background: url(https://codernote.ru/files/cross.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 18px 18px;
  display: block;
}

/* @keyframes rota {
 25% { transform: rotate(360deg); }
} */
/* #close-popup:hover {
  animation: rota 4s infinite normal;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
} */
/* -------- УВЕЛИЧЕНИЕ КАРТИНКИ ПО КЛИКУ -------- */


/* --------- Рабочий лист --------- */
.rab-list {
  margin: 20px;
  display: flex;
  flex-direction: column;
}

.rab-list a {
  display: block;
}

/* --------- Рабочий лист --------- */




/* --------- Карта --------- */
.map img {
  width: 100%;
}

/* --------- Карта --------- */




/* -------- FOOTER --------- */

/* -------- FOOTER --------- */







/* АДАПТАЦИЯ:
@media (max-width: 1200px){
}

@media (max-width: 1080px){
}

@media (max-width: 768px){
}

@media (max-width: 480px){
}

@media (max-width: 395px){
}

@media (max-width: 360px){
}

@media (max-width: 320px){
} */