@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins';
    overflow: hidden;
    box-sizing: border-box;
}

:root{
    /* --text-color: #3A3A3A; */
    --text-color: #1D1D1E;
    --shadow-color-btn: rgba(0, 0, 0, 0.2) 0px 3px 1px -2px, rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;;
    --main-color: #141E1D;
    --accent-color: #1f90ff;
    
}

body {
    min-height: 100vh;
    background: #F4F4F4;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

/* Main containers - START */

.children-container{
    padding: 12px;
    background-color: #FFFFFF;
    width: 400px;
	max-width: 100%;
    border-radius: 10px;
}

.children-container h2{
    padding: 10px;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-color);
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.container-child{
    padding: 10px;
    margin: 18px 0;                                     /*TOP RIGHT BOTTOM LEFT*/
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.form-subchildren{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.78);  
    backdrop-filter: blur(7px);
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

#rangeResult{
    margin: 0;
    font-weight: bold;
    user-select: none;
}

.range-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.range-min,
.range-max {
    font-size: 14px;
    color: #555;
    text-align: center;
    user-select: none;
}

.generateBtn{
    width: 100%;
    padding: 10px;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: bold;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease-in;
    border-radius: 6px;
    background-color: var(--accent-color);
    color: #FFFFFF;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.generateBtn:hover{
    background-color: #47a4ff;
}

.disabledBtn{
    opacity: 0.6;
    cursor: not-allowed;
}

.result-container{
    width: 100%;
    height: 50px;
    margin: 18px 0 0 0;
    padding: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    font-size: 18px;
    letter-spacing: 1px;
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    color: var(--text-color);
}

.result-container .copyBtn {
    font-size: 20px;
    position: absolute;
    top: 5px;
    right: 5px;
    height: 40px;
}

.copyBtn {
    border: none;
    color: var(--accent-color);
    background-color: transparent;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease-in;
}

.copyBtn:hover{
    background-color: var(--accent-color);
    color: #FFFFFF;
}

/* Main containers - END */

/* Other - START */

input[type = "checkbox"] {
	margin-right: 0;
    width: 17px;
    height: 17px;
    accent-color: var(--main-color);
    cursor: pointer;
}

label{
    font-size: 15px;
    color: var(--text-color);
}

/* Other - END */


/* Custom Range Slider - START */

#inputRange {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    position: relative;
}

    /* Round thumb (grabbing handle) */
#inputRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--main-color);
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

    /* Focus effect for better accessibility */
#inputRange:focus::-webkit-slider-thumb {
    background: var(--accent-color);
}

#inputRange:focus::-moz-range-thumb {
    background: var(--accent-color);
}

/* Custom Range Slider - END */

/* Welcome popup - START */

#popup{
    display: block;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    overflow: auto;
    opacity: 1; 
    transition: opacity 0.5s;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px); 
}

.popupContent{
    background-color: #FFFFFF;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    margin: 12% auto;
    padding: 20px;
    max-width: 20%;
    min-width: 395px; /* Sets width on mobile. */
    min-height: 32%;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    transform: translateY(-30px); 
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.popupContent h2{
    font-size: 24px; 
    font-weight: bold;
    margin: 15px 0 0 0;
}

.popupContent p{
    text-align: center;
    /* margin-bottom: 16px; */
}

.popupContent .popupBtn{
    width: 95%;
    padding: 10px;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease-in;
    border-radius: 6px;
    background-color: var(--accent-color);
    color: #FFFFFF;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.popupBtn:hover{
    background-color: #47a4ff;
}

/* Welcome popup - END */

/* Toast notification - START */

#notification{
    position: fixed;
    width: 400px;
    height: 65px;
    top: -20px;  /* 20px */
    background-color: #FFFFFF;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 12px;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: top 0.5s, opacity 0.5s;
    gap: 10px;
    font-size: 16px;
}

.notification-content{
    margin-left: 10px;
}

#notification.show{
    top: 10px;
    opacity: 1;
    visibility: visible;
}

#notification .icon i{
    font-size: 30px;
    color: #FFFFFF;
    border-radius: 50%;
    margin-top: 10px;
}

#notification .title{
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

#notification .message{
    font-size: 14px;
    margin: 0;
}

    /* SUCCESS */
.success{
    border-left: 6px solid green;
}

.success .icon i{
    background-color: green;
}

.success .title{
    color: green;
}

    /* ЕRROR */
.error{
    border-left: 6px solid red;
}

.error .icon i{
    background-color: red;
}

.error .title{
    color: red;
}

    /* INFO */

.info{
    border-left: 6px solid var(--accent-color);
}

.info .icon i{
    background-color: var(--accent-color);
}

.info .title{
    color: var(--accent-color);
}

/* Toast notification - END */


html {
    font-size: 16px;
}


/* MEDIA QUERIES */

@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }

    label {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    label {
        font-size: 14px;
    }

    /* WELCOME POPUP */

    .popupContent {
        margin: 56% auto;
    }

    /* TOAST NOTIFICATION */
    
    #notification.show{
        top: 55px;
    }
}

@media (max-width: 400px){
    .popupContent {
        margin: 65% auto;
        min-width: 95%;
        min-height: 5%;
    }
}




