*, *::before,*::after{
    box-sizing: border-box;
}

body{
    margin: 0;
    padding: 0;
    background-image: url('/image.png');
    background-size: 50vh 50vw;
    background-repeat: no-repeat;
    background-position:left;
    /* background:linear-gradient(rgba(0, 255, 255, 0.678),rgb(50, 223, 87)); */
}
.parent{
    width: fit-content;
    margin-left: 40%;
    margin-top: 100px;
    margin-bottom: 100px;
    display: grid;
    justify-content: center;
    align-content: center;
    min-height: 100vh;
    padding: 20px;
    border-radius: 10px;
    grid-template-columns: repeat(4,100px);
    grid-template-rows: minmax(120px, auto) repeat(5,100px);
    gap:3px;
    border: 3px double rgb(255, 0, 85);
}
.parent > h1{
    grid-column: span 4;
    font-size: 1.3cm;
    font-family:cursive;
    font-style: italic;
    color: rgb(212, 210, 94);
    text-shadow:4px 4px rgba(0, 0, 0, 0.692);
}
.parent>button{
    border: 2px solid rgba(0, 0, 0, 0.384);
    background-color:rgba(255, 218, 185, 0.616);
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 2rem;
    padding: 15px;
    color: rgba(0, 0, 0, 0.877);
    outline: none;
    border-radius: 15px;
    /* border-style: none; */

}
.parent>button:hover{
    background-color: rgba(238, 248, 255, 0.801);
}
.span_2{
    grid-column: span 2;
}
.output{
    background-color: rgb(1, 39, 41);
    grid-column: span 4;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.91);
    grid-template-rows: space-around;
    overflow: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
.previous{
    display: flex;
    word-wrap: break-word;
    word-break: break-all;
    justify-content: flex-end;
    padding: 10px;
    font-size: .6cm;
    font-weight: 500;
    font-family: 'Times New Roman', Times, serif;
    
}
.current{
    display: flex;
    word-wrap: break-word;
    word-break: break-all;
    justify-content: flex-end;
    padding: 10px;
    font-size: 1.2cm;
    font-weight: 800;
    /* height: fit-content; */
    font-family: 'Times New Roman', Times, serif;
}

@media screen and (max-width:500px){
    body{
        
        margin: 0;
        padding: 0;
        background: none;
        background-image: url('/image.png');
        background-size:auto;
        background-repeat:no-repeat;
        background-position: top right;
        /* position: fixed; */
        /* background:linear-gradient(rgba(0, 255, 255, 0.678),rgb(50, 223, 87)); */
    }
    .parent{
        width:100%;
        margin: 2%;
        opacity: 1;
        padding-left: 10vw;
        /* margin-left: 2%;
        margin-top: 2%; */
        display: grid;
        justify-content: left;
        align-content: center;
        min-height: 60vh;
        padding: 2vh;
        border-radius: 10px;
        grid-template-columns: repeat(4,7vh);
        grid-template-rows: minmax(2vw, auto) repeat(6,10vw);
        gap:2px;
        border: 2px double rgb(255, 0, 85);
    }
    .parent > h1{
        grid-column: span 4;
        font-size: 1.4em;
        font-family:cursive;
        font-style: italic;
        color: rgb(238, 56, 147);
        text-shadow:1px 1px rgba(0, 0, 0, 0.692);
    }
    .parent>button{
        border: 1px solid rgba(0, 0, 0, 0.384);
        background-color:rgba(255, 218, 185, 0.616);
        cursor: pointer;
        font-family: Arial, Helvetica, sans-serif;
        font-weight: 600;
        font-size: 1.4em;
        align-items: center;
        padding: 8px;
        color: rgba(0, 0, 0, 0.74);
        outline:none;
        border-radius: 9px;
        overflow: hidden;
        /* border-style: none; */
    
    }
    .parent>button:hover{
        background-color: rgba(238, 248, 255, 0.801);
    }
    .output{
        max-height: 80px ;
        background-color: rgb(1, 39, 41);
        grid-column: span 4;
        grid-row: span 2;
        border-radius: 5px;
        color: rgba(255, 255, 255, 0.91);
        grid-template-rows: space-around;
        overflow: scroll;
        overflow-x: hidden;
        scroll-behavior: smooth;
    }
    .previous{
        display: flex;
        word-wrap: break-word;
        word-break: break-all;
        justify-content: flex-end;
        padding: 7px;
        font-size: 1.2em;
        font-weight: 500;
        font-family: 'Times New Roman', Times, serif;
        height: fit-content;
    }
    .current{
        display: flex;
        word-wrap: break-word;
        word-break: break-all;
        justify-content: flex-end;
        height: fit-content;
        padding: 9px;
        font-size: 1.4em;
        font-weight: 800;
        
        font-family: 'Times New Roman', Times, serif;
    }
    
}