@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

#screen1 {
    display: inherit;
}

#screen2 {
    display: inherit;
    margin: 80px auto;
    line-height: 30px;
}

body {
    background: rgb(255, 245, 245);
    background-repeat: no-repeat;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

p {
    font-size: 14px;
}

#prediction-text {
    font-weight: normal;
    font-size: 16px;
}
input {
    border: 2px solid lightgray;
    border-radius: 40px;
    height: 35px;
    padding: 0px 11px;
    width: 200px;
    max-width: 90vw;
    font-size: 14px;
    overflow: hidden;
    background-color: white;
}

input:focus {
    border: 2px solid rgb(76, 0, 255);
    outline: none;
}

::placeholder {
    color: rgb(163, 163, 163);
    font-family: 'Montserrat';
    font-size: 14px;
}

.label {
    font-size: 16px;
    padding: 0px;
    margin: 0 auto 5px auto;
}

.group, .field {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
}

.row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

#mash {
    line-height: auto;
    margin: 10px auto 20px auto;
    text-align: center;
    font-size: clamp(24px, 8vw, 40px);
    letter-spacing: 0.5em; 
}

.magic-number {
    margin-top: 0;
}

#magic-number {
    font-size: 18px;
    color: rgb(255, 0, 174);
    height: 16px;
}

#dice {
    max-width: 70px;
    max-height: auto;
}

.button-container {
    display: flex;
    flex-flow: column;
    margin: 0 auto;
    gap: 10px;
}

#screen2 .button-container {
    margin-top: 40px;
}

.button {
    align-self: center;
    width: 150px;
    max-width: 100%;
    background-color: #fff;
    background-size: 4px 3px;
    border-radius: 15px 225px 255px 15px 15px 255px 225px 15px;
    border-style: solid;
    border-width: 2px;
    box-shadow: rgba(0, 0, 0, .2) 15px 28px 25px -18px;
    box-sizing: border-box;
    font-size: 0.75rem;
    outline: none;
    padding: .7rem;
    font-family: 'Montserrat';
    transition: all 235ms ease-in-out;
    border-bottom-left-radius: 15px 255px;
    border-bottom-right-radius: 225px 15px;
    border-top-left-radius: 255px 15px;
    border-top-right-radius: 15px 225px;
    touch-action: manipulation;
}

.button:not([disabled]):active {
    box-shadow: #fff 2px 2px 0 0, #000 2px 2px 0 1px;
    transform: translate(2px, 2px);
}

.button:active {
    box-shadow: rgba(0, 0, 0, .125) 0 3px 5px inset;
    outline: 0;
}

@media (max-width: 480px) {
    input {
        width: 100%;
    }

    .label {
        font-size: 14px;
    }

    #mash {
        letter-spacing: 0.1em;
    }
}
