*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Press Start 2P', sans-serif;
}
body{
    background-color: #090811;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.main-container{
    display: grid;
    grid-template-columns: auto;
    justify-items: center;
    row-gap: 46px;
}

.joke-box{
    width: 520px;
    /* height: 257px; */
    background-color: #080808;
    border-radius: 10px;
}

header{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    color: white;
    border-bottom: 1px solid white;
    font-size: 13px;
    font-weight: 400;
    padding-top: 12px;
}

.box-body{
    position: relative;
    width: 98%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height:  217px;
}

.instruction-box{
    display: flex;
    flex-wrap: wrap;
    row-gap: 31px;
    justify-content: center;
}

.instruction-box > h1 {
    color: #F00;
    text-align: justify;
    font-size: 16px;
    font-weight: 400;
}
.instruction-text{
    display: grid;
    grid-template-columns: auto;
    row-gap: 31px;
}
p{
    color: white;
    text-align: justify;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.jokes-container{
    margin-top: 50px;
    width: 95%;
    display: grid;
    grid-template-columns: auto;
    row-gap: 35px;
}

.buttons{
    position: relative;
    display: flex;
}

button{
    width: 227px;
    height: 51px;
    color: #000;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 5px solid #0F0606;
    border-left: 5px solid #0F0606;
    border: none;
    outline: none;
    background: #6FD03F;
}

#generate{
    position: absolute;
}
@media screen and (max-width: 542px) {
  .joke-box {
    width: 100vw;
    display: inline-block;
  }
}
@media screen and (max-width: 304px){
    img{
        width: 100%;
        height: 100vw;
    }
    header{
        height: 90px;
    }
}