@import url('https://fonts.googleapis.com/css2?family=Agdasima:wght@400;700&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Agdasima", sans-serif;
}

body{
    width: 100vw;
    height: 100vh;
    background-color: rgb(30, 30, 30);
    display: flex;
    align-items: center;
    justify-content: center;
}

#my_form{
    width: 400px;
    background-color: black;
    border: 3px solid wheat;
    border-radius: 30px;
    padding: 30px;
    color: wheat;
}

h1{
    text-align: center;
    font-size: 40px;
}

.input_group{
    margin: 30px 0 0 0;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

label, input{
    font-size: 20px;
}

label{
    min-width: 115px;
}

input{
    flex: 1;
    background-color: transparent;
    color: wheat;
    padding: 3px;
}

#submit_btn, #get_a_joke{
    width: 100%;
    font-size: 30px;
    background-color: wheat;
    transition: 0.5s;
    border-radius: 6px;
}

#submit_btn:hover, #get_a_joke:hover{
    font-weight: bold;
    letter-spacing: 5px;
    background-color: gold;
}

input.success, input.success:focus-visible, input.success:active{
    border-color: green;
    outline: none;
     box-shadow: 
    0 0 1px rgba(4, 114, 13, 0.5), /* Inner soft glow */
    0 0 2px rgba(27, 243, 63, 0.3), /* Middle spread */
    0 0 5px rgba(3, 236, 61, 0.849); /* Far outer glow */
}

input.error, input.error:focus-visible, input.error:active{
    border-color: red;
    outline: none;
     box-shadow: 
    0 0 2px rgba(116, 32, 18, 0.5), /* Inner soft glow */
    0 0 5px rgba(218, 12, 12, 0.3), /* Middle spread */
    0 0 10px rgb(255, 0, 0); /* Far outer glow */
}

.error_message{
    position: absolute;
    color: red;
    top: 37px;
    left: 131px;
    width: 203px;
    background-color: black;
    z-index: 1;
}

.cross_out{
    text-decoration-line: line-through;
    opacity: 0.4;
}

#stud_num_cont{
    display: flex;
    gap: 4px;
    align-items: center;
}

.stud_num_input{
    width: 28px;
    text-align: center;
}

#stud_num_cont span{
    font-size: 24px;
}