* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: "Oswald", sans-serif;
}

.cRed {
	color: red;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    padding: 20px;
    z-index: 2;
}

#background-video {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; 
    pointer-events: none; 
}

header {
    text-align: center;
    margin-bottom: 15px;
}

header, .content, footer {
    position: relative;
    z-index: 3;
}

.description, .event-content {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 8px;
}

.logo {
    max-width: 100px;
    height: auto;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.left, .right {
    width: 100%;
    margin-bottom: 20px;
}

.left h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.description {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-radius: 8px;
}

.awards-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.awards-table th, .awards-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.awards-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.awards-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.awards-table tr:hover {
    background-color: #ddd;
}

.right h2 {
	margin-bottom: 10px;
	color: #bd3f00;
}

.event-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.event-item {
    margin-bottom: 10px;
}

.event-item img {
	width: 20px;
}

.event-title {
    width: 100%;
    text-align: left;
    background-color: rgb(63 99 13 / 60%);
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 20px;
    font-family: "Oswald", sans-serif;
}

.event-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 0 10px;
    border-radius: 0;
}

.event-content .registration {
	text-align: center;
	margin: 20px 0 10px;
}

.event-content .registration a {
	padding: 10px;
    background: yellow;
    border: 1px solid green;
    text-decoration: none;
    font-weight: bold;
    width: 60%;
    color: green;
}

.event-item.active .event-content {
    max-height: 1000px; 
    padding: 10px;
}

footer {
    text-align: center;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 14px;
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-bottom: -20px;
}

@media(min-width: 768px) {
    .content {
        flex-direction: row;
        gap: 20px;
    }

    .left, .right {
        width: 50%;
        margin-bottom: 0;
    }
}

.tree-container {
    text-align: center;
    background: #fff9f2;
    padding: 15px 0;
    margin-top: 20px;
}


#pluckButton {
    padding: 15px 30px;
    background-color: #e74c3c;
    color: white;
    font-size: 1.2em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#pluckButton:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

#pluckButton:hover:not(:disabled) {
    background-color: #c0392b;
}

.tree {
    margin: 0 auto 20px;
    overflow: hidden;
    display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.envelope {
    width: calc(33.333% - 15px);
    cursor: pointer;
    animation: swing 1s infinite ease-in-out;
}

@media(max-width: 768px) {
    .tree .envelope {
    width: calc(50% - 10px); 
  }
}

.envelope img {
    width: 100%;
    height: 230px;
    border-radius: 20px;
}

.envelope1 { animation-delay: 0.2s; }
.envelope2 { animation-delay: 0.4s; }
.envelope3 { animation-delay: 0.6s; }
.envelope4 { animation-delay: 0.8s; }
.envelope5 { animation-delay: 1s; }
.envelope6 { animation-delay: 1.2s; }

#rewardMessage {
    margin-top: 20px;
    font-size: 1.1em;
    color: #27ae60;
}

@keyframes sway {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
}

@keyframes swing {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(1deg); }
    100% { transform: rotate(0deg); }
}

#tree-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

#christmas-tree {
  width: 200px;
  height: 300px;
  background-image: url('tree-level-1.png'); /* Thay bằng ảnh tương ứng */
  background-size: cover;
}

#christmas-tree.level-2 {
  background-image: url('tree-level-2.png');
}

#christmas-tree.level-3 {
  background-image: url('tree-level-3.png');
}

#water-button {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: green;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#water-button:hover {
  background-color: darkgreen;
}
