/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/*Google Font import*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital@0;1&display=swap');

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

h2 {
    margin: 20px auto;
    text-align: center;
}

:root {
    --primary-color:#eeebd3;
    --secondary-color: #aa767c;
    --button-color: #77b6ea;
    --error-color: #ff6b6b;
    --text-color: #0d1821;
    --fill-color: lightgray;
}

/*general styles*/
body {
    min-height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    /*Generic proj styles*/
    color: var(--text-color);
    background-color: var(--primary-color);
}

/* Main Content*/ 
main {
    background-color: var(--primary-color);
}
.container {
    width: 80%;
    margin: 140px auto;
    background-color: #fff;
    -webkit-box-shadow: 0 12px 50px -11px var(--text-color);
            box-shadow: 0 12px 50px -11px var(--text-color);
    border-radius: 8px;
    color: var(--text-color); 
}

.top {
    background-color: #aa767c;
    padding: 24px;
    text-align: center;
    width: 100%;
}

.container2 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 100%;
        -ms-flex: 100%;
            flex: 100%;    
    margin: auto;
}

.left-column, .right-column {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 50%;
        -ms-flex: 50%;
            flex: 50%;
    padding: 9px;
    background: white;
    border-radius: 10px;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}
.slider-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    margin-bottom: 15px;
    font-weight: bold;
}
.slider { 
    width: 250px;
    position: relative;
 }

input [type="range"] {
    margin: 0 10px;
    width: 400px;
    height: 8px;
    background: #c1c1c1;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    position: absolute;
} 
 
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #000;
    border-radius: 50%;
    cursor: pointer;
}
  
input[type="text"] {
    width: 100px;
    text-align: right;
    border: 1px solid #ccc;
    padding: 5px;
    font-size: 16px;
    font-weight: bold;
    background: #f9f9f9;
}
.result {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

#calculate-btn {
    -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
            order: 1;
    -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        align-self: center;
    font-weight: bold;
    padding: 5px;
    margin: 10px;
    border-radius: 8px;
    background-color: var(--button-color);
}

#reset-btn {
    -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
            order: 1;
    -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        align-self: center;
    font-weight: bold;
    padding: 5px;
    margin: 10px;
    border-radius: 8px;
    background-color: var(--button-color);
}

/*Hover effects for button*/
#calculate-btn:hover {
background-color: #aa767c;
color: #000;
-webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
        transform: scale(1.1);
}

/* Responsiv layout for mobile*/
@media (max-width: 900px) {
    .container2{
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }
    .container {
        width: 90%;
        margin-top: 20px;
    }
    .slider {
        width: 250px;
        -ms-flex-item-align: center;
            -ms-grid-row-align: center;
            align-self: center;
        position: relative;
    }
}

@media (max-width: 500px) {
    .container2{
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }
    .container {
        width: 90%;
        margin-top: 20px;
    }
    .slider {
        width: 90px;
        -ms-flex-item-align: center;
            -ms-grid-row-align: center;
            align-self: center;
        position: relative;
    }
}

