@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Fjalla+One&family=Hachi+Maru+Pop&family=Kaisei+HarunoUmi&family=Playwrite+GB+S:ital,wght@0,100..400;1,100..400&family=RocknRoll+One&family=Sawarabi+Gothic&family=Yuji+Boku&family=Zen+Maru+Gothic&display=swap'); 



/* body::-webkit-scrollbar {
    display: none;
} */


:root {
    --green: #2EA139;
}

* {
    font-family: "Zen Maru Gothic", sans-serif;      
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-transform: none;
    outline: none;
    border: none;
    text-decoration: none;
    transition: all .2s linear;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}


body {
    background-color: #000;
    background-image: url('fortune_background.jpg');
     background-attachment: fixed;   
     /* background-repeat: no-repeat; */
     background-size: cover;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #C0399C;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    }
.navbar h1:hover{
    color:#F80576;
}
.navbar h3{
    font-size: 1.5rem;
}
.nav-links {
    display: flex;
    list-style: none;
    }
.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 0 15px;
    font-size:1.3rem;
    font-family: "Playwrite GB S", cursive;
    }
.nav-links li a:hover{
    color:#F80576;
    }

.container {
    width: 40%;
    background: #C0399C;
    height: auto;
    margin: 120px auto 20px;
    color:#fff;
    text-align: center;
    padding: 30px;
    border-radius:20px;
    }

.container form {
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    gap:30px;
    width:80%;
}
.container form .birthday {
    width: 100px;
    height: 30px;   
    margin: auto;
    text-align: center;
    font-size: 1.5rem;
}
#your_birthday {
    font-size: 2rem;
}


.container form .title {
    font-size: 1.5rem;
}
.container form .select-box {
    display: flex;
    margin: auto;
    width:50px;
    align-items: center;
}
.container form select {
    color: red;
    width: 30px;
    margin: 20px auto;
    text-align: center;
    appearance: none;
    font-size: 1.5rem;
}
.container form .select-box p {
    width: 15px;
}
.container form button {
    width: 100px;
    height: 40px;
    margin: auto;
    font-size: 1.3rem;
    border-radius: 5px;
}

.container form .result{ 
    background: #fff;
    min-width: 100px;
    margin: auto;
    padding:10px;
    color: #000;
}
.result {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 1.3rem;
    width:200px;
    
}
.result .star-face:before {
    content: "表星: ";
    font-size: 1.1rem;
}
.result .star-tail:before {
    content: "裏星: ";
    font-size: 1.1rem;
}
.character {
    width: 60%;
    height: auto;
    background: #fff;
    margin: auto;
    color: #000;
    font-size: 1.3rem;
    text-align: left;
    padding: 20px;

}
.character2 {
    white-space: pre-wrap;
    width: 60%;
    height: auto;
    background: #fff;
    margin: auto;
    color: #000;
    font-size: 1.3rem;
    text-align: left;
    padding: 20px;
}

#birthday::-webkit-datetime-edit-year-field {
  display: none;
}
#birthday::-webkit-datetime-edit-text {
  display: none;
}

.counter {
    margin: 0 auto;
    width: 10%;
    height: auto;
    text-align: center;
    background: #fff;
}
.counter img {
    height:auto;
    width: 70px
}

@media screen and (max-width: 500px){
    .navbar {
        flex-direction: column;
        height: 90px;
        padding:20px;
        justify-content: center;
        gap:10px;
    }
    .navbar h1{
        font-size: 1.7rem;
    }
    .navbar h3{
        font-size: 1rem;
    }
    .navbar img {
        position:fixed;
        top: 10px;
        right: 10px;
    }
     .container {
        width: 90%;
        margin-top: 130px;
     }
      .container h1{
        font-size: 1.7rem;
      }
     .container form{
        width:100%;
        gap:15px;
     }
     .container form .birthday {
        width: 30%;
     }
      .container form .title {
        font-size: 1.3rem;
        margin-top: 20px;
      }
     .result {
        width: 60%;
     }
     .character {
        width: 100%;
        font-size: 1.2rem;
     }
     .character2 {
        width: 100%;
        font-size: 1.2rem;
     }
     .counter {
        width: 30%;
     }
}
