/* Evennia CSS styles for the game website */


/* If you for some reason need to override the default sizing model,
   for instance, if you're using a Google Maps widget, you may need
   to use the following code, see:
   http://v4-alpha.getbootstrap.com/getting-started/introduction/#box-sizing */
/*
.selector-for-some-widget {
  -webkit-box-sizing: content-box;
     -moz-box-sizing: content-box;
          box-sizing: content-box;
}
*/

/* Custom fonts
-------------------------------------------------- */


/* Rubik Glitch (only regular weight available) */
@font-face {
  font-family: 'Rubik Glitch';
  src: url('../fonts/RubikGlitch-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* IBM Plex Mono Regular */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* IBM Plex Mono Medium */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* IBM Plex Mono Bold */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* IBM Plex Serif (only regular weight available) */
@font-face {
  font-family: 'IBM Plex Serif';
  src: url('../fonts/IBMPlexSerif-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* IBM Plex Sans (variable font, keep as is) */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-VariableFont_wdth\,wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Font families */
  --heading-font: 'IBM Plex Mono', sans-serif;
  --body-font: 'IBM Plex Sans', sans-serif;
  
  /* Keep font variables for weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;

  --primary-color: #e7f6f8;
  --secondary-color: #0076d6;
  --dark-background: #0b4778;
  --text-color: #171716;
  --link-color: #0076d6;

  /* Semi-transparent colors */
  --primary-color-10: rgba(0, 118, 214, 0.10);
  --primary-color-20: rgba(0, 118, 214, 0.2);
  --primary-color-50: rgba(0, 118, 214, 0.5);
}

/* Typography
-------------------------------------------------- */


/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: var(--weight-bold);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.75rem;
}

/* Paragraphs and general text */
p, ul, ol, li, table, form {
  font-family: var(--body-font);
  font-size: 1.25rem;
  line-height: 1.5;
}

/* Special text styles */
.lead {
  font-size: 1.5rem;
  font-family: var(--body-font);
  font-weight: var(--weight-medium);
}

.text-small {
  font-size: 1rem !important;
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: var(--weight-bold);
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Navbar and bootstrap elements */

.navbar, .nav-link, .dropdown-item {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: var(--weight-medium);
}

/* Navbar link styling */
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.90);
  transition: color 0.2s ease, transform 0.1s ease;
  padding: 0.5rem 1rem;
  margin: 0 0.1rem;
}

/* Hover state */
.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--primary-color);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Active state */
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-item.active .nav-link {
  color: var(--primary-color);
  font-weight: var(--weight-bold);
}

/* Focus state (for accessibility) */
.navbar-dark .navbar-nav .nav-link:focus {
  color: #ffffff;
  outline: none;
  box-shadow: none;
  text-decoration: underline;
}

/* Dropdown menu styling */
.navbar-dark .dropdown-menu {
  background-color: var(--dark-background);
  border: none;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  margin-top: 0.5rem;
}

.navbar-dark .dropdown-item {
  color: rgba(255, 255, 255, 0.90);
  font-family: var(--heading-font);
  font-weight: var(--weight-medium);
  padding: 0.5rem 1.5rem;
}

.navbar-dark .dropdown-item:hover,
.navbar-dark .dropdown-item:focus {
  color: var(--primary-color);
  background-color: var(--primary-color-10);
  text-decoration: none;
}

.card-title {
  font-family: var(--heading-font);
  font-weight: var(--weight-bold);
}

.card-header {
  background-color: #ebf6ff;
}

.card {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.btn, .btn-info {
  font-family: var(--heading-font);
  font-weight: var(--weight-bold);
  color: var(--dark-background);
  background-color: var(--primary-color);
  border: none;
}
.btn:hover, .btn-info:hover {
  background-color: var(--secondary-color);
  color: #ffffff;
  border: none;
}

/* Pagination styles */
/* Active state (selected page) */
.page-item.active .page-link {
  background-color: var(--primary-color);
  color: var(--dark-background);
  border-color: var(--primary-color);
  font-weight: var(--weight-bold);
}

/* Normal page links */
.page-link {
  color: var(--primary-color);
  background-color: transparent;
  border: 1px solid var(--primary-color-20);
  transition: all 0.2s ease;
}

/* Hover state */
.page-link:hover {
  color: var(--dark-background);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  text-decoration: none;
}

/* Focus state - for accessibility */
.page-link:focus {
  box-shadow: 0 0 0 0.2rem var(--primary-color-20);
  outline: none;
}

/* Disabled state */
.page-item.disabled .page-link {
  color: rgba(255, 255, 255, 0.5);
  background-color: transparent;
  border-color: var(--primary-color-10);
}

/* List Group Styles */
.list-group-item {
  background-color: none;
  border: 1px solid rgba(70, 77, 119, 0.2);
  color: var(--link-color);
}

.list-group-item.active {
  z-index: 2;
  color: var(--dark-background);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.list-group-item:hover {
  background-color: var(--primary-color-10);
}

.list-group-item-action:hover {
  color: var(--primary-color);
}

.list-group-item-action:active,
.list-group-item-action:focus {
  color: var(--dark-background);
  background-color: var(--primary-color);
}

/* Important styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
  font-size: 18px;
}

body {
  background: radial-gradient(circle at 0% 0%, #e1e1e1 5%, #c6c6c6 100%);
  background-color: #FFFFFF;
  font-family: var(--body-font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

.navbar .navbar-collapse {
  display: flex;
  justify-content: center;
  height: 90px;
}

@media (max-width: 1000px) {
  .navbar .navbar-collapse {
    display: none; /* Override flex display on mobile */
  }
  
  .navbar .navbar-collapse.show {
    display: flex !important; /* Only show when toggled */
    flex-direction: column;
  }
  
  .navbar-nav {
    margin: 0;
    text-align: center;
    width: 100%;
  }
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1400px;
    }
}

/* Fix for collapsing state */
.navbar .collapsing {
  display: none;
}

.navbar-brand-logo {
  width: 300px;
}

/* Default Colors */
.navbar {
  background-color: var(--dark-background);
}

.container.main-content {
  margin-top: 2rem;
  margin-bottom: 3rem; /* Add space before footer */
}

/* Modern footer styling */
.footer {
  background-color: var(--dark-background);
  width: 100%;
  padding: 1rem 0;
}

.footer .copyright-text {
  font-size: 0.9rem;
}

.footer a:hover {
  color: var(--primary-color) !important;
  text-decoration: none;
}


/* Fancy play - button */
a.playbutton {
	/*box-shadow: 0px 1px 10px 5px #9fb4f2;*/
	/*background:linear-gradient(to bottom, #7892c2 5%, #476e9e 100%);*/
	background-color: var(--secondary-color);
	border-radius:100px;

	display: inline-block;
	cursor: pointer;
	color: #ffffff;
	font-family: var(--heading-font);
	font-size: 1.25rem;
	padding: 1.25rem 2.5rem;
	text-decoration: none;

}
a.playbutton:hover {
	background: var(--dark-background);
	background-color: var(--dark-background);
  color: #ffffff;
}
a.playbutton:active {
	position:relative;
	top: 1px;
}