/* =========================================================
   SERVER STATISTICS
   ========================================================= */

#server-stats {
    margin-top: 30px;
    margin-bottom: 40px;
}


/* ---------------------------------------------------------
   TITRE
   --------------------------------------------------------- */

#server-stats .title {
    margin-bottom: 20px;
}

#server-stats .title h1 {
    margin-bottom: 5px;
}

#server-stats .title p {
    color: #888;
}


/* ---------------------------------------------------------
   API STATUS
   --------------------------------------------------------- */

.api-status {
    display: inline-flex;
    align-items: center;

    background: #f5f5f5;
    border: 1px solid #ddd;

    padding: 7px 12px;
    margin-bottom: 20px;

    border-radius: 3px;

    font-size: 12px;
    color: #777;
}

.api-status-dot {
    display: inline-block;

    width: 9px;
    height: 9px;

    margin-right: 7px;

    border-radius: 50%;

    background: #aaa;
}

.api-status.connected .api-status-dot {
    background: #5cb85c;
}

.api-status.error .api-status-dot {
    background: #d9534f;
}


/* ---------------------------------------------------------
   ONGLETS
   --------------------------------------------------------- */

.server-tabs {
    margin-bottom: 0;
}

.server-tabs li a {
    font-weight: bold;
}

.online-badge {
    display: inline-block;

    min-width: 18px;

    margin-left: 5px;
    padding: 2px 6px;

    background: #5cb85c;

    color: white;

    font-size: 11px;

    text-align: center;

    border-radius: 10px;
}


/* ---------------------------------------------------------
   CONTENU
   --------------------------------------------------------- */

.server-tab-content {
    padding: 25px;

    border: 1px solid #ddd;
    border-top: 0;

    background: #fff;
}

.server-section-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;
}

.server-section-header h2 {
    margin: 0 0 5px 0;
}

.server-section-header p {
    margin: 0;

    color: #888;
}


/* ---------------------------------------------------------
   TABLEAUX
   --------------------------------------------------------- */

.server-table-container {
    overflow-x: auto;
}

.server-table {
    width: 100%;

    margin-bottom: 0;
}

.server-table th {
    font-weight: bold;
}

.server-table th:first-child,
.server-table td:first-child {
    width: 60px;
    text-align: center;
}

.server-table th:last-child,
.server-table td:last-child {
    text-align: center;
}


/* ---------------------------------------------------------
   TOP 3
   --------------------------------------------------------- */

.server-table tbody tr:nth-child(1) td:first-child {
    font-size: 18px;
    font-weight: bold;
}

.server-table tbody tr:nth-child(2) td:first-child {
    font-size: 17px;
    font-weight: bold;
}

.server-table tbody tr:nth-child(3) td:first-child {
    font-size: 16px;
    font-weight: bold;
}


/* ---------------------------------------------------------
   ONLINE
   --------------------------------------------------------- */

.online-counter {
    text-align: center;

    margin: 20px 0 30px 0;
    padding: 25px;

    background: #f7f7f7;

    border: 1px solid #ddd;
    border-radius: 3px;
}

.online-number {
    font-size: 48px;

    line-height: 1;

    font-weight: bold;

    color: #5cb85c;
}

.online-label {
    margin-top: 10px;

    color: #888;
}


/* ---------------------------------------------------------
   LOADING
   --------------------------------------------------------- */

.api-loading {
    text-align: center;

    padding: 40px 20px;

    color: #999;
}

.api-spinner {
    display: inline-block;

    width: 24px;
    height: 24px;

    border: 3px solid #ddd;
    border-top-color: #777;

    border-radius: 50%;

    animation: server-spin 0.8s linear infinite;
}

.api-loading p {
    margin-top: 12px;
}


@keyframes server-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* ---------------------------------------------------------
   ERREUR
   --------------------------------------------------------- */

.api-error {
    padding: 15px;

    margin-bottom: 15px;

    background: #f2dede;

    border: 1px solid #ebccd1;

    color: #a94442;

    border-radius: 3px;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .server-tab-content {
        padding: 15px;
    }

    .server-section-header {
        display: block;
    }

    .server-section-header .btn {
        margin-top: 15px;
    }

    .server-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }

}
/* =========================================================
   CIMETIERE
   ========================================================= */

.cemetery-table th {
    vertical-align: middle;
}

.cemetery-table td {
    vertical-align: middle;
}

.cemetery-date {
    white-space: nowrap;
    font-size: 12px;
}

.cemetery-victim {
    white-space: nowrap;
}

.cemetery-killer {
    white-space: nowrap;
}

.cemetery-items {
    line-height: 26px;
}


/* Objets */

.cemetery-item {
    display: inline-block;
    padding: 2px 7px;
    margin: 2px 4px 2px 0;
    border-radius: 3px;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
}


/* Objets perdus */

.cemetery-item-lost {
    background: #f5f5f5;
    border: 1px solid #ddd;
}


/* Objets détruits */

.cemetery-item-destroyed {
    background: #f5f5f5;
    border: 1px solid #ddd;
    text-decoration: line-through;
}


/* Aucun objet */

.cemetery-no-item {
    color: #999;
    font-style: italic;
    font-size: 12px;
}

/* =========================================================
   MENU PRINCIPAL CENTRE
   ========================================================= */

.nav-centered {
    float: none !important;
    width: fit-content;
    margin: 0 auto !important;
}
/* =========================================
   PRISM VIDEO THUMBNAILS
========================================= */

.prism-video-thumb {
	position: relative !important;

	width: 100% !important;
	height: 0 !important;

	padding-bottom: 56.25% !important;

	overflow: hidden !important;

	background: #000;

	margin-bottom: 15px;

	cursor: pointer;
}


/* Vidéo miniature */

.prism-video-thumb video {
	position: absolute !important;

	top: 0 !important;
	left: 0 !important;

	width: 100% !important;
	height: 100% !important;

	max-width: none !important;
	max-height: none !important;

	margin: 0 !important;
	padding: 0 !important;

	object-fit: cover !important;

	display: block !important;

	transition: opacity 0.2s ease;
}


/* =========================================
   PLAY BUTTON
========================================= */

.prism-video-play {
	position: absolute;

	top: 50%;
	left: 50%;

	width: 55px;
	height: 55px;

	margin-left: -27px;
	margin-top: -27px;

	border-radius: 50%;

	background: rgba(0,0,0,0.65);

	color: #fff;

	text-align: center;

	line-height: 55px;

	font-size: 22px;

	opacity: 0;

	transition: opacity 0.2s ease;

	pointer-events: none;
}


/* Apparition du bouton au survol */

.prism-video-thumb:hover .prism-video-play {
	opacity: 1;
}

.prism-video-thumb:hover video {
	opacity: 0.75;
}


/* =========================================
   VIDEO MODAL
========================================= */

.prism-video-modal {
	width: 900px;

	margin-left: -450px;

	background: #111;
}


/* Titre */

.prism-video-modal .modal-header {
	background: #222;
	border-bottom: 1px solid #444;
}

.prism-video-modal .modal-header h3 {
	color: #fff;
	margin: 0;
}


/* Bouton fermeture */

.prism-video-modal .close {
	color: #fff;
	opacity: 0.8;
}


/* Corps */

.prism-video-modal .modal-body {
	padding: 0;
	background: #000;
	text-align: center;
}


/* Lecteur principal */

#prismVideoPlayer {
	display: block;

	width: 100% !important;
	height: auto !important;

	max-width: 100% !important;
	max-height: 75vh !important;

	margin: 0 auto;
}


/* =========================================
   PETITES RESOLUTIONS
========================================= */

@media (max-width: 767px) {

	.prism-video-modal {
		width: 90%;
		margin-left: -45%;
	}

}