* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Ubuntu", sans-serif;
}

body {
    background-color: #5d6acc;
    color: aliceblue;
}

img {
    width: 400px;
    height: 250px;
    margin-bottom: 10px;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

h1 {
    margin-bottom: 50px;
    font-size: 60px;
}

.h2-sortear {
    margin-bottom: 20px;
    font-size: 30px;
}

input {
    height: 35px;
    width: 342px;
    padding-left: 20px;
    font-size: 20px;
    border-radius: 14px;
    border: none;
    color: #5d6acc;
    opacity: 0.8;
    margin-bottom: 20px;
}

.input-min {
    margin-right: 20px;
}

button {
    height: 35px;
    width: 100px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 14px;
    border: none;
    color: #5d6acc;
    opacity: 0.8;
    cursor: pointer;
    margin-bottom: 20px;
    transition: 0.3s;
}

button:hover {
    transform: scale(1.05) 
}

button:active {
    height: 35px;
    width: 100px;
}

#result {
    font-size: 50px;
    font-weight: bold;
}


.alert {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  padding: 25px;
  border-radius: 16px;
  text-align: center;

  /* efeito vidro */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: white;
}

.alert p {
  margin-bottom: 15px;
  font-size: 20px;
}

.alert button {
  margin-top: 45px;
  background: rgba(255, 255, 255, 0.3);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.alert button:hover {
  background: rgba(255, 255, 255, 0.5);
}



/* Responsividade para telas menores que 768px */
@media (max-width: 767px) {

    h1 {
        font-size: 35px;
        margin-bottom: 30px;
    }

    .h2-sortear {
        font-size: 22px;
    }

    /* inputs em coluna */
    div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    input {
        width: 90%;
        max-width: 300px;
        font-size: 16px;
    }

    .input-min {
        margin-right: 0;
    }

    img {
        width: 90%;
        height: auto;
    }

    button {
        width: 120px;
        font-size: 16px;
    }

    #result {
        font-size: 35px;
    }
}