body {
    font-family: 'Noto Sans TC', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    background-image: url(../background.png);
}

h1 {
    position: relative;
    color: #334155;
    text-align: center;
    font-style: italic;
    font-weight: 900;
}

h1::after{
    content: "";
    width: 25px;
    height: 25px;
    background-image: url(../win.svg);
    background-repeat: no-repeat;
    background-size: cover;
    transform: rotate(15deg);
    position: absolute;
    top: calc(50%);
    left: calc(50% - 2.5rem);
}

#election-data,nav{
    max-width: 400px;
    margin: 0 auto;
}

.candidate {
    display: inline-flex;
    align-items: center;
    position: relative;
    width: calc(100% - 40px);
    background-color: #fff;
    border-radius: 25px;
    padding: 10px;
    margin: 10px;
    overflow: hidden;
}

.candidate h2,
.candidate h3,
.candidate p {
    color: #f4f4f4;
    margin: 5px 0;
}

.candidate h3{
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 400;
}

.candidate-01 {
    background-image: linear-gradient(120deg, RGBA(40, 200, 200, 1) 10%, RGBA(40, 200, 200, 0.5) 60%, RGBA(40, 200, 200, 0.2) 100%);
}

.candidate-02 {
    background: linear-gradient(120deg, RGBA(27, 148, 49, 1) 10%, RGBA(27, 148, 49, 0.5) 60%, RGBA(27, 148, 49, 0.0) 100%);
}

.candidate-03 {
    background: linear-gradient(120deg, RGBA(20, 0, 149, 1) 10%, RGBA(20, 0, 149, 0.5) 60%, RGBA(20, 0, 149, 0.2) 100%);
}

.candidate::before{
    content: "";
    position: absolute;
    right: -10px;
    bottom: -10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 80px;
    height: 80px;
    transform: rotate(-30deg);
    border-radius: 80px;
}

.candidate-01::before{
    background-image: url(../01-logo.svg);
}

.candidate-02::before{
    background-image: url(../02-logo.svg);
    background-size: cover;
}

.candidate-03::before{
    background-image: url(../03-logo.svg);
}

.number {
    font-size: 6rem;
    width: 30%;
    text-align: center;
    margin: 0;
    font-style: italic;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

.number .small{
    font-size: 0.8rem;
    transform: rotate(90deg);
}

.hide{
    display: none;
}

.win{
    width: 60px;
    height: 60px;
    background-image: url(../win.svg);
    background-repeat: no-repeat;
    background-size: cover;
    transform: rotate(15deg);
    position: absolute;
    top: calc(50%);
    left: 50px;
}

.notice{
    font-size: 0.8rem;
    font-weight: 300;
    text-align: center; 
}

.nav-bar{
    display: inline-flex;
    justify-content: space-around;
    text-align: center;
    width: 100%;
    margin: 10px 0;
}

.nav-bar a{
    position: relative;
    text-decoration: none;
    color: #334155;
    border: 2px solid #334155;
    padding: 5px 20px;
    cursor: pointer;
}

.nav-bar a:hover, .nav-bar a:focus{
    background: #334155;
    color: #f4f4f4;
}

.nav-bar a::after{
    content: "";
    width: 15px;
    height: 15px;
    background-image: url(../win.svg);
    background-repeat: no-repeat;
    background-size: cover;
    transform: rotate(15deg);
    position: absolute;
    top: calc(50% - 2px);
    right: calc(50% - 3rem);
}