/* General Styles */
html,body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    height: 100%;
    width : 100%;
    box-sizing: border-box;
    margin: 0;
    background-color: black;
    overflow: hidden;
}

a{
    text-decoration: none;
}

#topdiv{
    background-color: white;
      padding: 4px;
    margin-top:5px;
    border-radius: 20px;
    color: black;
    overflow: hidden;
}
#topdiv>div>img{
    border-radius: 20px;
}

/* Responsive Container */
.container {
    padding: 0 30px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

 .message{
        font-size: x-large;
        padding: 30px 0;
       }
#popup-content {
    background-color: white;
    padding: 30px 20px;
    border-radius: 10px;
    border: 2px solid #009df0;
    margin:20px;
     color: red;
}

#searchInput {
   width: 96vw;
    max-width: 100%; /* Prevent exceeding parent width */
    display: flex; /* Enable flexbox for image arrangement */
    align-items: center;
    padding: 5px;
    height: 60px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    box-sizing: border-box;
    background-color: #fefefe1f;
}

#searchInput input[type="text"] {
    border: none;
    outline: none;
    flex-grow: 1; /* Allow input to expand */
    background: none;
}

#searchInput img {
    margin-right: 5px;
    height: auto; /* Adjust height automatically */
    max-height: 45px; /* Set maximum height */
    width: auto; /* Adjust width automatically */
    max-width: 45px; /* Set maximum width */
    vertical-align: middle;
    cursor: pointer;
}

.image-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.image-container img {
    width: 100px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Buttons */
#register,
#submitButton,
#clearButton {
    width: 100%;
    max-width: 400px;
    padding: 12px 0;
    font-size: larger;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#register,
#submitButton {
    background-color: #D7B317;
    color: white;
}
.button-group{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

#clearButton {
    background-color: #fcfcfc58;
    border: 2px solid white;
    color: white;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    z-index: 1000;
    width: 90%;
    max-width: 500px;
}

.popup-content {
    background-color: #D7B317;
    border-radius: 8px;
}

.popup h2 {
    margin-top: 0;
    text-align: center;
}

.popup-images {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.popup-images img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Close Button */
.close-button {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.close-button:hover {
    background-color: #d32f2f;
}

/* Label Styling */
.label {
    display: block;
    font-weight: bold;
    margin-bottom: 0;
    color: white;
    text-align: left;
    font-size: 14px;
}

.strip {
    background-color: white;
    width: 100%; /* Ensures full width */
    margin: 0; /* Remove any default margins */
    padding: 0; /* Remove any default padding */
    text-align: center; /* Center the text */
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden; /* Prevents potential overflow issues */
}

.strip > p {
    margin: 0; /* Remove any default margins on the <p> tag */
    padding: 10px 0; /* Add some vertical padding */
    animation: opacity 1s infinite ease-in-out;
    font-weight: bolder;
    font-size:larger;
    color: red;
}

/* Heading */
h3 {
    text-align: center;
    color: white;
    font-size: 35px;
    margin: 5px;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    text-align: center;
    font-size: 12px;
    padding: 6px;
}

th {
    background-color: #333;
    color: #fff;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

td {
    color: white;
}

/* Top-right content */
.top-right > p {
    font-size: 13px;
    font-weight: 700;
    color: black;
}

/* Animation */
@keyframes opacity {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
        
    }
    100% {
        opacity: 0;
    }
}

/* Bottom Content */
.bottom_content {
    padding: 0;
    margin-top: 0;
}       

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .image-container {
        gap: 10px;
    }

    .image-container img {
        width: 100px;
    }


    th, td {
        font-size: 10px;
        padding: 4px;
    }

    .popup {
        width: 95%;
        max-width: 400px;
    }
} 

@media (max-width: 480px) {
 

    .container {
        max-width: 90%;
    }

    #searchInput {
        width: 96vw;
    }
    #register,
    #submitButton,
    #clearButton {
        max-width: 90%;
    }

    .image-container img {
        width: 150px;
    }

    .popup-images img {
        max-width: 250px;
    }

}
