:root {

    --cassiopeia-color-primary: black;
    --cassiopeia-color-hover: black;
    --cassiopeia-color-link: cornflowerblue;
}

body {
    color: #dddddd;
    background-color: black;
}

h6,.h6,h5,.h5,h4,.h4,h3,.h3,h2,.h2,h1,.h1 {
    color: #dddddd;
}

a {
    color: cornflowerblue;
}

a:hover {
    color: blue;
}

th, td {
  padding-top: 0px;
  padding-bottom: 5px;
  padding-left: 0px;
  padding-right: 5px;
}

#system-message-container joomla-alert div .alert-message {
    margin: .5rem;
    padding: .3rem 2rem .3rem .3rem;
    color: black;
}

.btn-primary {
    background-color: var(--cassiopeia-color-primary);
    border-color: white;
}

.breadcrumb {
    --breadcrumb-divider-color: #cccccc;
    --breadcrumb-item-active-color: #dddddd;
    background-color: #262626;
}

.container-header .site-description {
    color: #dddddd;
}

.invalid {
    color: red;
    border-color: red;
}

details {
  padding: 10px;
  background-color: black;
  border-radius: 5px;
  transition: 0.2s background linear;
}

details:hover {
  background: darkblue;
}

summary {
  font-size: 1.2em;
  font-weight: bold;
  padding-bottom: 10px; 
}

summary::marker {
  color: cornflowerblue;
  font-size: 1.2em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  gap: 5px;
  justify-content: center;
  width: 100%;
}

.square {
    width: 100px;
    height: 100px;
    background-color: black;
    border: 1px solid green;
    box-shadow: 4px 4px #333;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease-in-out;
}

.square:active {
    box-shadow: 1px 1px #111;
    transform: scale(0.95);
    background-color: red;
}

.mole-image {
  width: 100px; /* Set the desired width */
  height: 100px; /* Set the desired height, same as width for a circle */
  border-radius: 50%; /* This makes the image circular */
  overflow: hidden; /* Ensures the image is contained within the circle */
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(6, 50px);
  gap: 5px;
  justify-content: center;
  width: 100%;
}

.memory-square {
    width: 50px;
    height: 50px;
    border: 1px solid green;
    cursor: pointer;
    position: relative;
    background-size: cover; 
    background-position: center; 
}

.memory-square-inner {
  width: 100%;
  height: 100%;
  position: absolute;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.memory-square.flipped .memory-square-inner {
  transform: rotateY(180deg);
}

.memory-square-back {
  transform: rotateY(180deg);
  background-size: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
}

.reset-button {
    display: block;
    text-align: center;
    color: white;
    background-color: blue;
}

#video-player {
    display: none;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
  }

  #video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
