/* Global Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #FEFEFF;
    color: #090C08;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Hero Section */
.hero {
    background-color: #FABC3C;
    padding: 50px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
    margin: 15px 0;
}

.cta-btn {
    display: inline-block;
    background-color: #F19143;
    color: white;
    padding: 15px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}

.cta-btn:hover {
    background-color: #D6EFFF;
    color: #090C08;
}

/* Information Section */
.info {
    padding: 40px 20px;
}

.info h2 {
    color: #F19143;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    font-size: 1.2rem;
    margin: 10px 0;
}

/* Registration Form */
.register {
    background-color: #D6EFFF;
    padding: 40px 20px;
}

.register form {
    max-width: 400px;
    margin: auto;
}

.register input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #FABC3C;
    border-radius: 5px;
}

.register button {
    width: 100%;
    background-color: #F19143;
    color: white;
    padding: 15px;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.register button:hover {
    background-color: #FABC3C;
}

/* Footer */
footer {
    background-color: #090C08;
    color: white;
    padding: 30px 20px;
}

footer p {
    font-size: 1.2rem;
}

#color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px auto;
    max-width: 600px; /* Adjust width */
}

.color-box {
    width: 100%;  /* Make it stretch to grid */
    height: 120px; /* Rectangular shape */
    cursor: pointer;
    border-radius: 15px; /* Rounded corners */
    border: 2px solid #090C08;
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth effect */
}

.color-box:not(.hidden):hover {
    opacity: 0.8;
}


/* Fade out effect */
.color-box.hidden {
    pointer-events: none; /* Prevent hover & clicks */
    opacity: 0 !important; /* Fully invisible */
    visibility: hidden; /* Keeps the layout intact */
    height: 120px; /* Ensure each card keeps its space */
}

#undo-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #F19143;
    color: white;
    border: none;
    cursor: pointer;
    display: none; /* Hidden by default */
}

#undo-button:hover {
    background-color: #FABC3C;
}

button {
    margin-top: 20px;
    padding: 15px;
    font-size: 1.2rem;
    background-color: #F19143;
    color: white;
    border: none;
    cursor: pointer;
}

button:disabled {
    background-color: #d3d3d3;
    cursor: not-allowed;
}

/* Instructions Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.popup-content h2 {
    margin: 0;
}

.popup-content button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #F19143;
    color: white;
    border: none;
    cursor: pointer;
}

.popup-content button:hover {
    background-color: #FABC3C;
}

/* Hide elements initially */
.hidden {
    display: none;
}
