@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-image: url('./empire_state_building.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;

}


/* hiding arrows in input field on Chrome, Safari, Edge and Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}





.counter-container{
    width:600px;
    height:690px;
    background-color: rgba(50,50,50,0.8);
    margin:0 auto;
    position: relative;
    top:10px;
    color:#FFFFFF;
    display: flex;
    display: -webkit-flex;
    text-align: center;
    flex-direction: column;
    font-family: 'Poppins';
}

h1{letter-spacing: 7px;
    font-size: 50px;
    position: relative;
    top:80px;
}

h2{font-size: 40px;
    position: relative;
    top:150px;
}

.user-input{
    position: relative;
    top:180px;
    height:40px;
    display: flex;
    display: -webkit-flex;
}

input{
    height:30px;
    position: relative;
    background-color: transparent;
    left:120px;
    top:0px;
    border:2px solid #FFFFFF;
    color:#FFFFFF;
    padding-left: 5px;
    letter-spacing: 1px;

}


input:focus{
    outline:none;

}
input::placeholder{
    color:lightgrey;
    position: relative;

}

span{
    position: relative;
    left:200px;
}

#add{
    width:50px;
    height:30px;
    letter-spacing: 1px;
}

#remove{
    width:80px;
    height:30px;
    letter-spacing: 1px;
}

.button-container{
    width:500px;
    height:50px;
    margin: 0 auto;
    position: relative;
    top:240px;
    display: flex;
    display: -webkit-flex;
    flex-direction: row;
    justify-content: space-evenly;
    text-align: center;
}


button{height:50px;
    width:50px;
    background-color: transparent;
    border:2px solid #FFFFFF;
    outline:none;
    color:#FFFFFF;
    cursor: pointer;
    transition: 0.3s;
    margin-right: 20px;
}

button:hover{
    border:2px solid #000000;
    background-color: #000000;
    color:#FFFFFF;
}

.button-container-two{
    width:500px;
    height:50px;
    margin: 0 auto;
    position: relative;
    top:280px;
    display: flex;
    display: -webkit-flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.reset-container{
    width:500px;
    height:50px;
    margin: 0 auto;
    position: relative;
    top:320px;
    display: flex;
    display: -webkit-flex;
    flex-direction: row;
    justify-content: center;
}

#reset{
    width:100px;
    height:40px;
    letter-spacing: 1px;
}

.warn-container{
    height:30px;
    position: relative;
    top:200px;
    margin: 0 auto;
    width:300px;
    color:#FFFFFF;
}

.warn-container{
    letter-spacing: 2px;
}

.warn-container-disappear{
    display: none;
}

@media only screen and (max-width:415px){

    body{
        background-image: url('./empire_state_building.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: fixed;
    
    }

    .counter-container{
        width:300px;
        height:600px;
        background-color: rgba(50,50,50,0.6);
        margin:0 auto;
        position: relative;
        top:10px;
        display: flex;
        display: -webkit-flex;
        color:#FFFFFF;
        font-family: 'Poppins', sans-serif;
        flex-direction: column;
        text-align: center;
    }

    h1{
        font-size: 40px;
        position: relative;
        letter-spacing: 5px;
        top:30px;
    }
    h2{font-size: 35px;
        position: relative;
        top:50px;
    }

    .user-input{
        position: relative;
        top:100px;
        height:40px;
        display: flex;
        display: -webkit-flex;
    }
    
    input{
        height:40px;
        position: relative;
        background-color: transparent;
        left:15px;
        top:0px;
        width:120px;
        border:2px solid #FFFFFF;
        color:#FFFFFF;
        padding-left: 5px;
        letter-spacing: 1px;
    }
    
    
    input:focus{
        outline:none;
    
    }
    input::placeholder{
        color:lightgrey;
        left:1px;
        font-size: 12px;
    }

        span{
            position: relative;
            left:30px;
        }

        #add{
            position: relative;
            left:10px;
            width:50px;
            height:40px;
            letter-spacing: 2px;
        }

        #remove{
            position: relative;
            left:0px;
            height:40px;
            width:70px;
            letter-spacing: 2px;
        }

    .button-container{
        margin:0 auto;
        width:300px;
        position: relative;
        top:140px;
        display: flex;
        display: -webkit-flex;
    }

    .button-container-two{
        margin:0 auto;
        width:300px;
        position: relative;
        top:190px;
        display: flex;
        display: -webkit-flex;
    }

    .reset-container{
        width:300px;
        height:50px;
        margin: 0 auto;
        position: relative;
        top:220px;
        display: flex;
        display: -webkit-flex;
        flex-direction: row;
        justify-content: center;
    }

    #reset{
        top:4px;
        position: relative;
    width:100px;
    height:40px;
    }

    .warn-container{
        top:120px;
        font-size: 13px;
    }
}