
@font-face {
    font-family: 'UhBeeSe_hyun';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_five@.2.0/UhBeeSe_hyun.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    }


* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    font-family: 'UhBeeSe_hyun';
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; 
    background-image: url("https://i.pinimg.com/564x/45/22/7d/45227d67733187da6fd1d64dc4f837f6.jpg");
    background-size: cover; 
    background-repeat: no-repeat;
}
#gameContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width : 400px;
    width:100%;
    height:80%;
    min-height: 300px;
    background-color: rgba(255, 255, 255, 0.7);
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}
h1 {
    margin-top: 50px;
    font-weight: bold;
    opacity: 0.9;
}
input {
    width: 40%;
    padding :10px;
    border-radius: 6px;
    margin-top: 30px;
    border : none;
}

#btn {
    display: flex;
    margin-top: 30px;
}


#playBtn,#resetBtn{
    margin-right: 40px;
    margin-left: 40px;
    margin-top: 30px;
    outline: none;
    cursor: pointer;
    padding: 10px 30px;
}

#resetBtn{
    padding:5px 18px;
}

#resultArea {
    margin-top:30px;
    font-size: 20px;
}

#chanceArea {
    margin-top:30px;
}


#successArea {
    position: relative;
    display: inline-block;
}

#successArea img {
    position: relative;
    z-index: 1;
    width: 200px; 
    height:145px; 
    border-radius: 10px;
    z-index : 2;
}

#successArea span {
    position: absolute;
    top : -2px;
    left: 25px;
    z-index: 2;
    padding: 5px;
    color: white;
    font-size: 25px;
}

#audioArea{
    position: fixed;
    top: 25px;
    right: 10px;
}

.icon {
    font-size: 35px;
    color: white;
}

#textAudio {
    font-size: 20px;
    color: white;
    margin-right: 15px;
    position:relative;
    bottom: 8px;
    cursor: pointer;
}

#textBgm {
    position: relative;
    bottom: 10px;
}

#source {
    position:fixed;
    bottom:10px;
    color: white;
    margin-bottom: 5px;
}
#source a{
    text-underline-offset: 6px;
    color: white;
}

@media screen and (max-width: 450px) {
    input {
        width: 60%;
    }
    #gameContainer{
        height:auto;
        min-height: 300px;
    }
    #source {
        z-index: -1;
    }
    #resultArea {
        margin-bottom:30px;
    }
    #successArea img {
        margin-bottom: 30px;
    }
  }