* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f6f8f5;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
}

.gallery-container {
    padding: 20px 0; 
    background-color: #ead8a8;
    color: rgb(241, 154, 31);
    width: 100%;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10; 
    
}

h2 {
    margin-bottom: 15px;
}

.gallery {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    overflow-x: auto;
    overflow: hidden; 
}

.image-container {
    position: relative;
}

.gallery img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
    border-radius: 15px; 
}

.gallery img:hover {
    transform: scale(1.1);
}

.selected {
    border: 2px solid green;
}

.checkmark {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 20px;
    color: rgb(246, 143, 9);
    font-weight: bold;
}

.result-container {
    width: 100%;
    margin-top: 800px; 
}

.button-container {
    margin-top: 20px;
}

button {
    padding: 12px 24px;
    background-color: #ec9107;
    color: rgb(254, 254, 255);
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background 0.3s;
    margin: 5px;
}

button:hover {
    background-color: #f99704;
}

p {
    font-size: 18px;
    margin-top: 15px;
}

#unlockedImage img {
    margin-top: 20px;
    width: 220px;
    height: 250px;
}

.success {
    color: rgb(243, 156, 6);
    font-weight: bold;
}

.error {
    color: red;
    font-weight: bold;
}

.button-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#unlockedImage {
    margin-top: 20px;
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
}

#resultMessage {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
}