
img {
 max-width: 100%;   
}
html {
  height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: #b4befe;
    font-family: rubikMonoOne, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

button {
  background-color: #292c3c; 
  color: #cdd6f4;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border: 1px 1px;
  border-radius: 10px;
}

button:hover {
    color:#f9e2af;
}

article {
    background-color: #292c3c;
    color: #cdd6f4;
    max-width: 800px;
    margin: 10px auto;
    padding: 10px;
}

.maincontent {
    background-color: #1e1e2e;
    flex-grow: 1;
    margin: 0 2%;
    padding: 2% 2%;
    border-radius: 2px;
    display: grid;
    flex-direction:column;
}

.border {
    border-style: dashed;
    border-radius: 14px;
    border-color: #f9e2af;
    width: 100%; 
    height: 100%;

}

.breadcrumb a:link, .breadcrumb a:visited {
    color:inherit;
    text-decoration:none;
}
.breadcrumb a:hover{
  color:#f9e2af;
  text-decoration:none;
}

@media (max-width:960px) { 
    .maincontent {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    .border{
        border-style: none;
    }
}

#modal-elgus {
  width: 90%;
  max-width: 768px;
  max-height: 95vh; 
  overflow-y: auto;
  background-color: #292c3c;
  border-radius: 10px;
}

#modal-elgus::backdrop {
  background-color: rgba(0, 0, 0, 0.6);
}

/* 2. Layout Structure */
#modal-elgus article {
  display: flex;
  flex-direction: column;
}

#modal-elgus header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 3. The Image (Fixes the stretching) */
#modal-elgus img {
  width: 100%;
  height: auto;       /* Prevents vertical stretching */
  object-fit: contain; /* Ensures the image maintains its aspect ratio */
  display: block;
}

#modal-elgus footer {
  text-align: right;
}