body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
    margin: 0;
}

.container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

h1, h3 {
    color: #333;
}

.controls {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.input-group {
    background: #eef;
    padding: 15px;
    border-radius: 10px;
    margin: 10px;
    flex-grow: 1;
}

input[type="text"], input[type="number"] {
    padding: 8px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    width: 90%;
    height: 100px; /* Adjust height as needed */
    padding: 8px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical; /* Allows user to resize vertically */
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    margin: 5px;
}

button:hover {
    background-color: #0056b3;
}

#tickets-list-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

#tickets-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    text-align: center;
}

#tickets-list li {
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

#tickets-list li:last-child {
    border-bottom: none;
}

#draw-winner {
    font-size: 1.2em;
    padding: 15px 30px;
    background-color: #28a745;
    margin-top: 20px;
}

#draw-winner:hover {
    background-color: #218838;
}

#bag-container {
    position: relative;
    width: 200px;
    height: 280px;
    margin: 30px auto;
}

#raffle-bag {
    width: 100%;
    height: 100%;
    background: url('raffle_bag.png') no-repeat center center/contain;
    position: relative;
    transition: transform 0.5s ease-in-out;
}

#ticket-count {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
}

.shake {
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
}

#result-area {
    margin-top: 20px;
}

#winning-ticket-container {
    position: relative;
    width: 300px;
    height: 150px;
    margin: 20px auto;
}

#ticket-image {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#winning-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 1.8em;
    font-weight: bold;
    color: #444;
}

#drawn-tickets-container {
    margin-top: 30px;
    background: #f1f8e9; /* A light green background for a different look */
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 15px;
}

#drawn-tickets-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
    max-height: 150px;
    overflow-y: auto;
}

#drawn-tickets-list li {
    padding: 5px 0;
    border-bottom: 1px solid #dcedc8;
}

#drawn-tickets-list li:last-child {
    border-bottom: none;
}

#header-ad {
    margin-top: 30px;
	padding-top: 20px;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 15px;
}

#footer-ad {
    margin-top: 30px;
	padding-top: 20px;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 15px;
}

.footer-container {
    margin-top: 30px;
    padding: 2px;
	font-size: 0.9em;
}

.hidden {
    display: none;
}