/* Reset some basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set default font */
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background-color: #c6c3fa; /* white background by default */
    color: #000; /* default text color */
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
}

/* Images responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
button {
    font-family: inherit;
    cursor: pointer;
}

/* Lists */
ul, ol {
    list-style: none;
}

/* Optional: smooth scrolling */
html {
    scroll-behavior: smooth;
}


.navbar{
    display:flex;
    width:100%;
    height:50px;
    background-color:rgb(138, 137, 199);
    box-shadow: #303257 0px 1px 5px;
    transition:box-shadow 0.5s ease;
    overflow:hidden;
    padding:0;
    align-items: center;
}

.navbar:hover{
    box-shadow: #303257 0px 3px 5px;

}


.navbar {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0;
  list-style: none;
}

.navbar img{
    display: block; /* removes inline spacing issues */
    height: 40px;
    width: auto;
    margin: 0 10px; /* shorthand for left/right margin */
}
.navbar a{
    text-align: center;
    color:rgb(14, 14, 42);
    font-weight:bolder;
    display:block;
    text-decoration:none;
    padding:16px;
    border-radius: 5px 5px 0px 0px;
    position: relative;
    transition:
    background-color 0.15s ease,
    color 0.15s ease;
    margin-right:5px;
}

.navbar a:hover{
    background-color:#515492;
    color:white;
    cursor:pointer;
}



.navbar li a {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* important for ::after */
  padding: 0 16px;
  color: rgb(14, 14, 42);
  font-weight: bolder;
  text-decoration: none;
  height: 100%;
  transition: 
  color 0.15s ease,
  background-color 0.3s ease;
}


.navbar li a.active::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0px;
  width: 100%;
  height: 4px;
  background-color: #53557c;
  border-radius: 15px;
  box-shadow: rgb(52, 36, 55) 1px 3px 10px;
}


/*Maintance*/

h1{
    margin-top:25px;
    text-align:center;
    font-size:50px;
    color:#6c6ea0;
    cursor:default;
}


#subtext{
    text-align:center;
    font-size:30px;
    color:#515492;
    font-weight: bolder;
    cursor:default;
    margin:10px auto 100px auto;
    max-width:60%;

}


#top{
    width:100%;
    margin:auto;
    align-items: center;
}
#patterncont{
    border-radius:5px;
    background-color:white;
    width:50%;
    height: 300px;
    margin:auto;
    padding:10px 20px;
}

#patterntext {
    overflow-x: auto; /* horizontal scroll if needed */
    overflow-y: auto; /* vertical scroll if needed */
    font-weight: bold;
    text-align: left;

    max-height: 100%; /* or any height you want */
    white-space: pre;   /* preserves spacing/newlines */
}

button {
    width: 100px;
    height: 50px;
    padding: 10px 20px;
    background-color: #6863b7;
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: bolder;
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);

    transition:
        box-shadow 0.3s ease-in-out,
        transform 0.3s ease-in-out,
        transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);

    /* remove position absolute unless you need it */
}

button:hover{
    transform:scale(1.05);
    box-shadow: 0 0 15px #6863b7, 0 0 30px #cdb4db;
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}