@import url('https://fonts.googleapis.com/css2?family=Ysabeau+SC:wght@1..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sarpanch:wght@400;500;600;700;800;900&display=swap');

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: "Ysabeau SC", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #3B1C32;
    background-image: url('robomachine.png'), url('world-bih-opis.gif');
    background-position: right bottom, center;
    background-size: 30% auto, cover;
    background-repeat: no-repeat, no-repeat;
}

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

form {
    background: rgba(26,26,29,.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 170px;
    margin: 30px auto;
    width: 40%;
}

#upis {
    background: none;
    padding: 10px;
    border-radius: 4px;
    margin: 180px 0 auto;
    position: absolute;
    width: 40%;
    z-index: 0;
}

#upis button {
    background: #F0BB78;
    border-radius: 6px;
    font-size: 16px;
    width: 80px;
    height: 45px;
    border: none;
    font-family: Sarpanch, serif;
    color: #131010;
    position: absolute;
    right: 10px;
    top: -30px;
}

/* Label styling */
form label {
    font-size: 17px;
    margin-bottom: 10px;
    display: block;
    color: #D39D55;
}

/* Input field styling */
form input[type="email"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
}

/* Button styling */
form button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    font-family: "Sarpanch", serif;
    font-weight: 400;
    font-style: normal;
    margin-top: 6px;
    position: relative;
    z-index: 1;
}

/* Button hover effect */
form button:hover {
    background-color: #45a049;
}

.form-container button:hover {
    cursor: pointer;
}

/* For devices with a maximum width of 600px (like most mobile phones) */
@media only screen and (max-width:600px) {
    form {
        width: 80%;
    }

    #upis {
        width: 80%;
    }

}
