@import url('https://fonts.googleapis.com/css2?family=Hachi+Maru+Pop&family=M+PLUS+Rounded+1c&family=Mali&display=swap');

@font-face {
    font-family: Nyashi;
    src: url('https://pctkpp.github.io/tnbt2022/font/Nyashi.otf');
}
@font-face {
    font-family: FC rainbow;
    src: url('https://pctkpp.github.io/tnbt2022/font/fc-rainbow.otf');
    unicode-range: U+E00–E7F;
}

html {
    height: 100%;
}

body {
    width: 100vw;
    margin: 0;
    font-family: 'FC rainbow', 'Nyashi', 'Hachi Maru Pop', 'Mali', cursive;
    text-align: center;
    background-color: #aca5d0;
    color: #372791;
}

.background {
    background-image: url('https://pctkpp.github.io/tnbt2022/assets/Background.PNG');
    background-size: 100vw;
    background-repeat: no-repeat;
}

.nbg {
    width: 100vw;
}


h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
}

p {
    font-size: 1em;
}

button {
    font-family: 'FC rainbow', 'Nyashi', 'Hachi Maru Pop', cursive;
    font-size: 1em;
    height: 40px;
    width: 270px;
    border: 0;
    outline: none;
    border-radius: 20px;
    color: #372791;
    background-color: wheat;
    cursor: pointer;
}

.title {
    margin-bottom: 50px;
    color: white;
    text-shadow: #FC0 0px 0 5px;
}

.popup {
    width: 450px;
    background-color: #7cddf7;
    border-radius: 6px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed;
    padding: 10px 30px 30px;
    visibility: hidden;
}

.popup button {
    width: 50%;
    background-color: #3773db;
    color: white;
}

.open-popup {
    visibility: visible;
}

.overlay {
    width: 100vw;
    height: 100vh;
    background-color: black;
    opacity: 60%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0;
    margin: 0;
    visibility: hidden;
}

.ovl {
    visibility: visible;
}

.card-holder {
    display: flex;
    justify-content: center;
  }
  
.card {
    width: 250px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    padding: 30px;
    visibility: hidden;
    background-color: white;
    cursor: pointer;
}

.card > .wwish {
    text-align: center;
    white-space: initial;
  }
.card > .wname {
    position: fixed;
    top: 480px;
  
    width: 280px;
    text-align: center;
}

.card-open {
    visibility: visible;
}

.bamboo {
    margin-top: 50px;
}

.bamboo img {
    width: 80vw;
    max-width: 700px;
    cursor: pointer;
}

.makewish {
    width: 450px;
    background-color: #e8b7ed;
    border-radius: 6px;
    padding: 10px;
    margin: auto;
}

input[type=text] {
    font-family: 'FC rainbow', 'Nyashi', 'Hachi Maru Pop', 'Mali', cursive;
    font-size: 1em;
    height: 40px;
    width: 300px;
    border: none;
    border-bottom: 2px solid #ff7e0d;
    padding: 0px 10px;
    margin-bottom: 10px;
    line-height: 2.5em!important;
}

.tanzaku {
    width: 320px;
    background-color: white;
    border-radius: 4px;
    text-align: left;
    margin: auto;
    margin-bottom: 30px;
}

.makewish button {
    margin-bottom: 30px;
    background-color: #7e58d6;
    color: white;
}

@media only screen and (max-width: 500px){
    .makewish {
        width: 320px;
    }
    .popup {
        width: 250px;
    }
}
