body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-color: #f5f5f5;
    overflow: hidden;
    position: relative; /* Ensure child elements can be positioned absolutely */
}

.container {
    text-align: center;
    margin-bottom: 20px;
}

#house-value,
#item-select,
#supermarket-select {
    padding: 10px;
    font-size: 16px;
    width: 300px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

#item-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.freddo, .item {
    position: absolute;
    width: 45px;
    height: 45px;
    background-size: contain;
    background-repeat: no-repeat;
    transition: top 0.2s ease, transform 2s ease; /* Tumbling effect */
}

@keyframes tumble {
    0% {
        transform: translateY(-100px) rotate(0deg);
    }
    100% {
        transform: translateY(calc(100vh - 45px)) rotate(360deg);
    }
}

#result-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 2px solid #000;
    padding: 20px;
    text-align: center;
    display: none;
    z-index: 10;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

#result-popup img {
    width: 100px;
    height: auto;
}

#result-popup span {
    display: block;
    margin-top: 10px;
    font-size: 24px;
    font-weight: bold;
}

#share-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #25D366; /* WhatsApp green */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

#share-button:hover {
    background-color: #1DA851;
}

#company-logo {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 100px; /* Adjust the width as needed */
    height: auto;
    z-index: 100; /* Ensure it is on top of other elements */
}

.freddo {
    position: absolute;
    width: 45px;  /* 10% smaller */
    height: 45px; /* 10% smaller */
    background-image: url('freddo.png'); /* Ensure the path is correct */
    background-size: contain;
    background-repeat: no-repeat;
    transition: top 0.2s ease, transform 2s ease; /* Tumbling effect */
}
