/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* style css */


body {
    margin: 0;
    height: 100vh;
    background: url(https://dimg.donga.com/wps/NEWS/IMAGE/2025/04/24/131479239.5.jpg) no-repeat 50%;
    background-size: contain;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}

.container {
    background: linear-gradient(45deg, green, white);
    max-width: 1140px;
    font-size: 1.5rem;
    border-radius: 50px;
    box-shadow: 3px 3px 10px #000;
    text-align: center;
    padding: 50px;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
    font-optical-sizing: auto;
    font-family: "Nanum Myeongjo", serif;
    font-weight: bold;
    font-style: normal;
}

.container img{
    max-height: 260px;
    /* max-width: 400px; */
    margin-top: 20px;
}

#result-area,
#chance-area{
    font-size: 1.5rem;
    padding: 10px;
}

input{
    font-size: 1.5rem;
    padding: 10px;
    min-width: 400px;
    text-align: center;
    margin: 1rem 0;
}

.flex1 {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

button {
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 1.5rem; 
    border: 0px;
    min-width: 150px;
    line-height: 1.3;
}
.button1{
    background-color: #e75a5a;
    transition: all 0.5s;
    color: #fff;
}

.button1:hover{
    background-color: #8b3939;
}
.button1:active{
    border: 2px solid #5e2626;
}
.button2{
    background-color: #eeff00;
    margin-top: 20px;
}

.button2:hover{
    background-color: #b3be13;
}
.button2:active{
    border: 2px solid #828a10;
}

@media (max-width: 767px) {
    /* 모바일 전용 스타일 */
    .container{
        padding: 20px;
    }
    h1{
        font-size: 2rem;
    }

    .container img{
        max-height: 150px;
        margin-top: 20px;
    }

    .flex1{
        gap: 5px;
    }

    button{
        padding: 10px 30px;
        min-width: 100px;
    }

    input{
        min-width: 160px;
    }
}