/**
* @name:       Samp Front
* @version:    0.5.1
* @author:     EOussama (eoussama.github.io)
* @license     MIT
* @source:     github.com/EOussama/samp-front
*/

/* #region Global */

:root {
  --color-dark-link: #6573ad;
  --color-dark-light: #2e2e2e;
  --color-dark: #212121;
  --color-gray: gray;
  --color-light: #afafaf;
}

body {
  overflow: hidden;
  position: relative;
}

body.dark {
  background-color: var(--color-dark-light);
}

body::before {
  background-image: url("./../../img/backgrounds/beach-bg.jpg");
  background-repeat: repeat-y;
  background-size: cover;
  background-attachment: fixed;
  content: "";
  left: 0;
  height: 120%;
  opacity: 0.2;
  position: absolute;
  top: 0;
  width: 100%;
}

section {
  margin: 50px 0 !important;
  position: relative;
}

body.dark .segment {
  background-color: var(--color-dark);
}

body.dark .segment * {
  color: var(--color-light);
}

body.dark main a {
  color: var(--color-dark-link) !important;
}

/* #endregion */

/* #region News */

section#news {
  height: 500px;
}

section#news > div.segment {
  height: 100%;
  position: relative;
}

section#news > div.segment::before {
  background-image: url(./../../img/backgrounds/news-bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  filter: grayscale(100%);
  height: 100%;
  left: 0;
  opacity: 0.05;
  position: absolute;
  top: 0;
  width: 100%;
}

section#news div#news-content,
section#news div#news-list {
  height: 430px;
  overflow-y: auto;
}

section#news div#news-list div.item small,
section#news div#news-content small {
  color: var(--color-light);
}

section#news div#news-list {
  background-color: transparent !important;
}

section#news div#no-articles {
  align-items: center;
  color: var(--color-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 400px;
  width: 100%;
}

section#news div#no-articles i {
  margin-bottom: 20px;
}

/* #endregion */

/* #region Gallery */

div#gallery {
  height: 100% !important;
  position: relative;
}

div#gallery-carousel {
  height: 408px !important;
}

div#gallery-carousel img {
  cursor: w-resize;
  filter: grayscale(70%);
  height: 400px !important;
  transition-duration: 0.5s;
  transition-property: filter;
}

div#gallery-carousel img:hover {
  filter: grayscale(0%);
}

i#fullscreen-btn,
i#fullscreen-close-btn {
  cursor: pointer;
  opacity: 0.4;
  position: absolute;
  right: 20px;
  top: 63px;
  transition-duration: 0.3s;
  transition-property: opacity;
  z-index: 5;
}

i#fullscreen-close-btn {
  top: 30px;
}

i#fullscreen-btn:hover,
i#fullscreen-close-btn:hover {
  opacity: 0.8;
}

/* #endregion */

/* #region Intro */

section#intro img {
  width: 180px;
  transform: rotateY(180deg);
}

/* #endregion */

/* #region ScrollTop */

div#scroll-top {
  animation-duration: 0.3s;
  animation-name: scroll-top-reveal;
  bottom: 50px;
  cursor: pointer;
  display: none;
  opacity: 0.1;
  position: fixed;
  right: 50px;
  transition-duration: 0.3s;
  transition-property: opacity;
  z-index: 10;
}

div#scroll-top:hover {
  opacity: 0.6 !important;
}

@keyframes scroll-top-reveal {
  from {
    bottom: 0;
    opacity: 0;
  }

  to {
    bottom: 50px;
    opacity: 0.1;
  }
}

/* #endregion */

/* #region Live stats */

div#live-stats {
  height: 430px !important;
}

div#live-stats section > div.segment {
  height: 362px !important;
}

div#live-stats section div.segment > div {
  height: 97.3%;
}

div#server-live-stats.offline table,
section#players-stats.offline div.content {
  display: none;
}

div#server-live-stats.offline div.server-offline,
section#players-stats.offline div.server-offline {
  display: flex;
}

div#server-live-stats + div img {
  bottom: -1px;
  position: absolute;
  right: -25px;
  width: 320px;
}

div.server-offline {
  align-items: center;
  color: var(--color-gray);
  display: none;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  width: 100%;
}

div.server-offline i {
  margin-bottom: 20px;
}

div#players-live-stats {
  height: 235px !important;
  margin-top: 0 !important;
  overflow-y: auto !important;
}

span#player-count {
  color: var(--color-gray);
  float: right;
}

body.dark div#live-stats table {
  background-color: var(--color-dark-light);
  color: var(--color-light);
}

/* #endregion */

/* #region Discord section */

div.discord-section {
  border: none !important;
  padding: 0 !important;
}

div.discord-section iframe {
  width: 100%;
}

/* #endregion */
