*{box-sizing:border-box;}
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(51, 51, 51);
    box-sizing: border-box;
}
h1 {
    width: 100%;
    color: rgb(179, 225, 191);
    text-align: center;
}

form > button {
    background-color: rgb(57, 202, 96);
    margin-right: 5%;
    width: auto;
    font-size: 25px;
    padding: 10px;
}
form > textarea {
    background-color: rgb(184, 184, 184);
    word-wrap: break-word;
    word-break: break-all;
    font-size: large;
    width: 70%;
    height: 40px;
}
#UI{
    position: absolute;
    width: 20%;
    margin-left: 35%;
    color: rgb(184, 184, 184);
    font-size: 25px;
}
#UI-info{
    position: absolute;
    margin-top: 12px;
    width: 5%;
    margin-left: 85%;
    color: rgb(103, 142, 113);
    font-size: 15px;
    cursor: pointer;
}
#restart-info-btn{
    color: rgb(103, 142, 113);
    font-size: 15px;
    cursor: pointer;
    margin-left: 1%;
}
form {
    align-items: center;
    margin-top: 45px;
    width: 90%;
    margin-left: 5%;
    justify-content:center;
    display: flex;
}


#response-container {
    border: 5px rgb(179, 225, 191) solid;
    width: 90%;
    font-size: 20px;
    color: rgb(107, 154, 119);
    display: inline-block;
    margin-top: 20px;
    margin-left: 5%;
    align-self: center;
    text-align: center;
    padding: 10px;

    display: flex;
    flex-direction: column;    
    justify-content: center;  
    align-items: center;       
    text-align: center;
}


#imageContainer {
  font-size: 20px;
  color: rgb(107, 154, 119);
  display: block;              /* switch from inline-block to block */
  margin: 20px auto;           /* centers block horizontally */
  text-align: center;
  max-width: 55vw;
  padding: 10px;
  width: fit-content;          /* optional: shrink to content width */
}
#imageContainer img {
    width: 100%;
    height: auto;      /* Maintains aspect ratio */
    display: block;
}
.image-wrapper img:hover {
  transform: scale(1.02);
}
.image-wrapper:empty {
  display: none;
}


.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    justify-content: center; 
    align-items: center;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#restart {
    border: solid 5px rgb(249, 118, 57);
    color: rgb(249, 118, 57);
    font-size: 22px;
    cursor: pointer;
}
#restart_box {
    width: 10vw;
    position: fixed;     
    bottom: 20px;     
    right: 20px;
}
#restart-info-btn {
    float: right;
    margin: 5px;
}




.alert{
    background: #ffdb96;
    padding: 60px 40px;
    min-width: 420px;
    position: absolute;
    right: 25%;
    top: 200px;
    border-radius: 4px;
    border-left: 8px solid #ffa502;
    overflow: hidden;
}
.alert.hide{
    display: none;
}
.alert .msg{
    padding: 0 20px;
    font-size: 18px;
    color: #ce8500
}
.alert .close-btn{
    position: absolute;
    right: 0px;
    top: 10%;
    transform: translateY(-50%);
    background: #ffd080;
    padding: 14px 16px;
    cursor: pointer;
}
.close-btn:hover{
    background: #ffc766;
}
.close-btn .fa-times{
    color: #ce8500;
    font-size: 22px;
    line-height: 40px;
}
