@import url("https://fonts.googleapis.com/css2?family=Berkshire+Swash&display=swap");

/**
🎄 Theme Noël UniCA 🎄
Pour appliquer ce theme à votre cours Moodle,
configurez le bloc "UI Custom CSS" avec :
- CSS Stylesheet URL : https://lms.univ-cotedazur.fr/styles/christmas_theme.css
- Afficher sur les types de page : Toutes les pages
**/

:root {
  --unica-red: #e52222;
  --unica-snow: #e0f7fa;
  --unica-green: #0c8228;
}

/* Table des matières */
.open-nav .fa-list {
  --fa: "\f79c";

  color: gold;
  text-shadow: 0 0 6px rgb(0 0 0);
}

/* Icone de cadeau dans la table des matières */
.courseindex .courseindex-item.pageitem .courseindex-link::after {
  font: var(--fa-font-solid);
  content: "\f2dc";
  margin-right: 1.5em;
  color: var(--unica-snow);
}

/* Icone de cadeau pour les achèvement d'activités dans la tdm */
.courseindex .courseindex-item .completioninfo .fa-circle {
  --fa: "\f06b";
}

/* Snowy background */
body {
  background-image: url("https://lms.univ-cotedazur.fr/img/snowy-background.webp");
  background-size: cover;
  background-color: #a6bec6;
}

/* Christmas icons */
h1::before,
h3::before {
  font: var(--fa-font-solid);
  margin-right: 0.5em;
}

/* Traineau rouge */
h1::before {
  content: "\f7cc";
  color: var(--unica-red);
}

/* Sapin vert */
h3::before {
  content: "\f1bb";
  color: var(--unica-green);
}

/** Format Tuiles **/

.format-tiles h2::before,
.format-tiles h3::before {
  content: "\f1bb" !important;
  font: var(--fa-font-solid);
  margin-right: 0.5em;
}

.format-tiles h2::before {
  color: var(--unica-green) !important;
}

.format-tiles h3::before {
  color: #FFF !important;
}

.activity:not(.subtile) {
  border-top: 1px solid var(--unica-green);
}

#page-header .w-100 {
  border-bottom: 1px solid var(--unica-red);
  margin-bottom: .5em;
}

.fa-university {
  --fa: "\f7d0";
}

.fa-book {
  --fa: "\f7c9";
}

.fa-graduation-cap {
  --fa: "\f7ce";
}

.fa-life-ring {
  --fa: "\f7d2";
}

/* Sucre d’orge */
.format_onetopic-tabs .nav-link.active::before {
  content: "\f786";
  font: var(--fa-font-solid);
  color: var(--unica-red);
}

/* Christmas Font */
h1,
h2,
a[data-uca="accueil"] {
  font-family: "Berkshire Swash", serif;
  font-weight: 400;
  font-style: normal;
}

.navbar.bg-primary[data-bs-theme="dark"] {
  background-image: url("https://lms.univ-cotedazur.fr/img/christmas_lights.svg");
  background-size: 60px;
}

.navbar.bg-body a[data-uca="accueil"] {
  color: gold;
  font-size: 1.2em;
}

/* Légère ombre */
.navbar .nav-link,
.navbar-brand {
  text-shadow: 1px 1px 3px rgb(0 0 0 / 40%);
}

/* NEIGE SUR BOUTONS */
.btn-primary,
.btn-secondary,
.nav-link.active,
div.form-submit,
.icons-collapse-expand:not(.courseindex-chevron),
.multi_section_tiles {
  position: relative;
}

.btn-secondary::before,
.btn-primary:not([href^="mailto"])::before,
.alert::after,
a.btn-primary[href^="mailto"]::after,
.nav-link.active::after,
div.form-submit::after,
.icons-collapse-expand::after,
.tilestyle-1:not(#abovetiles)::after,
.tilestyle-2:not(#abovetiles)::after {
  --overflow-x: 4px;
  --snow-image: url("../img/snow-cap2.webp");

  content: "";
  position: absolute;
  top: -6px;
  left: calc(var(--overflow-x) * -1);
  border-image-source: var(--snow-image);
  border-image-slice: calc(6 * 56 / 20) fill;
  border-image-width: calc(28px / 3);
  border-image-repeat: round;
  width: calc(100% + var(--overflow-x) * 2);
  height: 28px;
  filter: drop-shadow(0 2px 1px rgb(0 0 0 / 25%));
  opacity: 1;
  animation: fade-in 2s;
  pointer-events: none;
}

.nav-link.active::after {
	left: calc(var(--bs-navbar-nav-link-padding-x) * -1);
}

.tilestyle-1:not(#abovetiles)::after,
.tilestyle-2:not(#abovetiles)::after {
  --overflow-x: 1px;

  top: -12px;
}

/* Frosted background */

.badge,
.btn-primary,
.btn-secondary,
.block-add {
  background-image: radial-gradient(circle, transparent 70%, var(--unica-snow) 100%);
}

.badge {
  --bs-badge-padding-x: 1.5em;
}

.btn-primary, .btn-secondary {
  border-color: #e9eafa;
}


.learningmap-place.learningmap-reachable {
  cursor: pointer;
  transition: all ease-in 300ms;
}

#learningmap-render-container-26019 .learningmap-place.learningmap-reachable:hover {
  fill: gold !important;
  stroke: rgb(28 192 184);
}


/* Christmas Theme end */
