* {
    margin: 0;
    padding: 0;
}

html{
    scroll-behavior: smooth;
    background-image: url("./images/background.webp");
}

header {
    width:100%;
    padding-top: 20px;
    background-color: white;
    padding-bottom: 20px;
    position: relative;
    overflow: hidden;

}

.bar_background {
    position: relative;
    z-index: 0;
}

.bar_background::before{
  content: "";
  position: absolute;
  top: 100px;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent transparent transparent transparent;
  transform-origin: bottom right;
}

.bar_background::before {
  right: -70px;
  border-width: 0 0 1000px 1000px;
  border-color: transparent transparent transparent #ffd70f;
  transform: rotate(45deg);
  z-index: -1;
}


header h1{
    font-size: 70px;
    text-shadow: 3px 3px 5px rgb(255, 255, 255);
    color: rgb(255, 0, 0);
}

#logo_bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
    cursor: pointer;
    z-index: -1;
}
#logo_bar img {
    max-width: 10%;
    min-width: 100px;
    margin-right: 10px;
}

nav {
    display: flex;
    justify-content: center;
}
  
nav ul {
    list-style: none;
    padding: 0;
    margin: 10px;
    display: flex;
}
  
nav li {
    margin: 0 10px;
}

nav a {
    text-decoration: none;
    font-size: 28px;
    background-color: rgb(180, 0, 0);
    color: #ffffff;
    border: 1px solid #b80000;
    padding: 10px;
    border-radius: 10px;
    text-shadow: 1px 1px 5px rgb(255, 255, 255);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

nav a:hover {
    background-color: rgb(150, 0, 0);
    transform: scale(1.05);
}

.stage {
    height: auto;
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(20px);
    text-align: center;
    margin:20px;
}

.stage h1{
    padding:10px;
    font-size: 70px;
    text-shadow: 5px 5px 5px rgb(99, 99, 99);
    color: rgb(255, 255, 255);
    text-align: center;
}

.stage h2{
    padding:10px;
    font-size: 60px;
    text-shadow: 5px 5px 5px rgb(99, 99, 99);
    color: rgb(255, 255, 255);
    text-align: center;
}

.reward-container {
    display: flex;
    justify-content: center;
    height:300px;
}

.reward{
    width:auto;
    padding:20px;
}

.apply{
    height: auto;
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(20px);
    text-align: center;
    margin:20px;
    color:white;
    padding: 10px;
    line-height: 1.5;
}

.apply h1{
    font-size: 60px;
    text-shadow: 3px 3px 3px rgb(99, 99, 99);
    color: rgb(255, 255, 255);
    text-align: center;
}

.link_to_lottery{
    color: white;
    text-decoration: none;
    font-size: 30px;
    background-color: rgba(110, 0, 144, 0.536);
    border-radius: 20px;
    padding: 5px 15px;
    width:30%;
    margin: 0 auto;
    display: block;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: rgba(104, 0, 139, 0.571) 3px solid;
}
.link_to_lottery:hover{
    background-color: rgb(64, 0, 117);
    transform: scale(1.05);
}

.card{
    height: auto;
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(20px);
    text-align: center;
    margin:20px;
    color:white;
    padding: 10px;
    line-height: 1.5;
    background-blend-mode: multiply;
    background-color: rgb(0, 0, 0, 0.3);
}
.card p{
    font-size: 30px;
    padding:2px 20px;
    font-style: 微軟正黑體;
}
.card h1{
    font-size: 40px;
    text-shadow: 5px 5px 5px rgb(0, 107, 173);
    color: rgb(255, 255, 255);
    text-align: center;
    margin-bottom: 10px;
}

footer{
    background-color: rgb(0, 0, 0);
    color: white;
    text-align: center;
    padding: 5px;
    margin-top: 0px;
    position: relative;
    overflow: hidden;
}

/* Responsive */
@media screen and (max-width: 700px) {
    header {
        width:100%;
        padding-top: 5px;
        background-color: white;
        padding-bottom: 5px;
        position: relative;
        overflow: hidden;
    
    }
    header h1 {
        font-size: 40px;
        margin-bottom: -20px;
    }
    nav {
        display: flex;
        justify-content: center;
    }
      
    nav ul {
        list-style: none;
        padding: 0px;
        margin-bottom: 10px;
        display: flex;
    }
      
    nav li {
        margin: 0 1px;
    }
    nav a {
        font-size: 12px;
    }


    .stage {
        margin:0px;
        overflow: hidden;
    }
    .stage h1{
        font-size: 50px;
        text-shadow: 5px 5px 5px rgb(99, 99, 99);
        color: rgb(255, 255, 255);
        text-align: center;
    }
    .stage h2{
        font-size: 35px;
        text-shadow: 5px 5px 5px rgb(99, 99, 99);
        color: rgb(255, 255, 255);
        text-align: center;
    }
    .reward-container {
        flex-direction: row; 
        align-items: center;
        height:auto;
    }
    .reward{
        margin-top:10px;
        min-width: 300px;
    }

    .apply h1{
        font-size: 40px;
        text-shadow: 5px 5px 5px rgb(0, 107, 173);
        color: rgb(255, 255, 255);
        text-align: center;
        margin-bottom: 10px;
    }
    .apply {
        margin:10px 0px;
    }
    .link_to_lottery{
        color: white;
        text-decoration: none;
        font-size: 30px;
        background-color: rgba(110, 0, 144, 0.536);
        border-radius: 10px;
        display: block;
        width:auto;
        margin: 0px 20px;
        transition: background-color 0.3s ease, transform 0.2s ease;
        border: rgba(104, 0, 139, 0.571) 3px solid;
        padding-top:15px;
    }
    .qrcode{
        display: none;
    }
    .card{
        color: #ffffff;
        padding: 0px;
        margin: 0px;
        background-blend-mode: multiply;
        background-color: rgb(0, 0, 0, 0.3);
    }
    .card p{
        font-size: 20px;
        padding:2px 20px;
        font-style: 微軟正黑體;
    }
    .card h1{
        font-size: 40px;
        text-shadow: 5px 5px 5px rgb(0, 107, 173);
        color: rgb(255, 255, 255);
        text-align: center;
        margin-bottom: 10px;
    }
}
    


/* Animation */
