button {
    background-color: #FFA500; /*orang*/
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.5s ease; 
}
/*tricodes333*/
body{
    background-color:black;
}
/*tricodes333*/
button:hover {
    background-color:#FF0000;
}
/*tricodes333*/
input[type=text] {
  color: white;
  height:24px;
  background-color:#575799;
  transition:background-color 0.5s ease;
  border-radius:8px;
}/*tricodes333*/

input[type=text]:focus {
  background-color:#00FFFF;
}/*tricodes333*/

canvas {
    width: 100px;
    height: 100px;
    max-width: 23%; 
    aspect-ratio: 1/1; 
    border-radius: 20px;
    border: 2px solid black;
}/*tricodes333*/


.buttonBox button, .buttonBox input {
  padding: 8px 12px;
  font-size: 16px;
}/*tricodes333*/

.buttonBox {
    display: flex;                
    justify-content: center;       
    align-items: center;           
    gap: 10px;                     
    background-color: #22577A; 
    padding: 10px;
    width:60%;
    flex-wrap: wrap;
}/*tricodes333*/

.colorBox {
    display: flex;
    gap: 10px;
    background-color: #22577A;
    padding: 10px;
    flex-wrap: nowrap;
    overflow-x: auto; 
}/*tricodes333*/

.textAlign {
    background-color:#22577A;
    display: flex;
    width:60%;
    justify-content: center;        
    align-items: center;            
    gap: 20px;  
}/*tricodes333*/

.total{
    display:flex;
    justify-content:space-around;
}/*tricodes333*/

.theBox {
  display: flex;
  flex-direction:column; /* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_flexible_box_layout/Basic_concepts_of_flexbox&*/
  justify-content: center;
  align-items: center;
  gap: 10px;
  overflow:auto;
  background-color: #22577A;
  padding: 10px;
  width: 60%;          
  margin: 0 auto;      
  flex-wrap: wrap;  
  border-radius: 10px; 
}/*tricodes333*/


.theBox p {
  margin-bottom: 20px;      
  color: #ffffff;
  font-size: 1.2rem;
}
.titleBox {
    display: flex;
    padding:10px;
    border-radius:10px;
    flex-direction: column;   
    align-items: center;      
    margin-bottom: 20px; 
    background-color:#060606;
}

.titleBox h1 {
    margin: 0;
    color: #fff;
    font-size: 2.5rem;
}

.titleBox p {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
}
h1 {
  font-size: 2.5rem;
  color: cyan; 
  animation: colorChange 10s linear infinite; 
}

@keyframes colorChange {
  0%   { color: #00FFFF; }
  25%  { color: orange; }
  50%  { color: #575799; }
  75%  { color: red; }
  100% { color: #00FFFF; } 
}
.terminal {
    width: 100%;
    max-width: 600px;
    height: 200px;
    background-color: #010102;
    color: #00ff00;
    font-family: monospace;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.terminal p {
  margin: 0;
}
.horiz{
    background:#000000;
    margin:2px;
    padding:10px;
    font-weight:bold;
    animation: colorChange 10s linear infinite;
}
.nav{
    list-style-type: none;
    margin: 5px;
    padding: 0;
    background-color: #00022;
}

@media (max-width: 900px) {
    .theBox, .buttonBox, .textAlign {
        width: 80%;
    }
    .titleBox h1 {
        font-size: 2rem;
    }
    .terminal {
        width: 90%;
        height: 150px;
    }
}
@media (max-width: 600px) {
    .theBox, .buttonBox, .textAlign {
        width: 95%;
    }
    .titleBox h1 {
        font-size: 1.5rem;
    }
    .titleBox p {
        font-size: 1rem;
    }
    .buttonBox {
        flex-direction: column;
        gap: 8px;
    }
    .colorBox {
        flex-wrap: wrap; /* stack canvases */
        justify-content: center;
    }
    canvas {
        width: 70px !important;
        height: 70px !important;
    }
    input[type=text] {
        width: 100%;
        box-sizing: border-box;
    }
}
