*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: hsl(0, 0%, 94%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px;
   
}

/* FONT FAMILY */
@font-face {
    font-family: "myCustomFont";
    src: url("assets/fonts/Poppins-Bold.ttf") format("truetype");
}

@font-face {
    font-family: "normalFont";
    src: url("assets/fonts/Poppins-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "italicFont";
    src: url("assets/fonts/Poppins-ExtraBoldItalic.ttf") format("truetype");
}

@font-face {
    font-family: "myItalicFont";
    src: url("assets/fonts/Poppins-Italic.ttf") format("truetype");
}

/* CONTAINER */

.container{
    background-color: white;
    padding: 40px;
    box-shadow: 0px 5px 7px rgba(0,0,0, 0.1);
    
    max-width: 1000px;
    border-radius: 15px;
    border-bottom-right-radius: 75px;
}

/* INPUT SECTION */

.row{
    display: flex;
    gap: 30px;
    position: relative;
    flex-direction: row;
}



.input-cal{
    width: 120px;
    height: 45px;
    border-radius: 7px;
    outline: none;
    border: 1px solid  hsl(0, 0%, 86%);
    font-family: "myCustomFont", sans-serif;
    padding-left: 15px;
    
} 

.input-cal:focus{
    border: 1px solid hsl(259, 100%, 65%);
}

.date-of-birth{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label{
    font-family: "myCustomFont", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: hsl(0, 1%, 44%);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ERROR WHEN BUTTON IS CLICKED WITH NO INPUT */

.error-active-btn{
    color: red;
    font-size: 11px;
    font-family: "myItalicFont";
    display: none;
}

.error-active-btn.show{
    display: flex;
}

/* ERROR WHEN THE WRONG INPUT IN FILLED */

.wrong-input-error{
    color: red;
    font-size: 11px;
    font-family: "myItalicFont";
    display: none;
}

.wrong-input-error.active{
    display: flex;
}

/* PLACEHOLDER */
.input-cal::placeholder{
   padding-left: 10px;
}

/* BORDER LINE AND ICON */
.border-line-div-and-icon{
    display: flex;
    flex-direction: column;
}


.border-line{
    margin-top: 40px;
    border-bottom: 1px solid grey;
    width: 35vw;
}

.icon-btn{
    background-color: hsl(259, 100%, 65%);
    padding: 10px;
    border-radius: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-self: flex-end;
    justify-content: center;
    margin-top: -20px;
    border: none;
}

.icon-btn:hover{
    background-color: hsl(0, 0%, 0%);
    cursor: pointer;
}

/* SOLUTION SECTION */
.solution-section{
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    font-family: "italicFont", sans-serif;
    
}

.solution-section p{
    display: flex;
    align-items: center;
    gap: 10px;
}


.line{
    font-size: 100px;
    font-style: italic;
    color: hsl(259, 100%, 65%);
    
}

.years-word, .month-words, .days-words{
    font-size: 80px;
}


/* MOBILE VIEW */
@media only screen and (max-width: 600px) {
    body{
       margin: 0 auto;
    }

    .container{
        width: 90vw;
        margin-top: -12%;
        padding: 10%;
        height: 150vw;
    }

    /* INPUT SECTION */

.row{
    display: flex;
    gap: 10px;
    position: relative;
    flex-direction: row;
}



.input-cal{
    width: 90px;
    height: 55px;
    border-radius: 7px;
    outline: none;
    border: 1px solid  hsl(0, 0%, 86%);
    font-family: "myCustomFont", sans-serif;
    
    
} 

.input-cal:focus{
    border: 1px solid hsl(259, 100%, 65%);
}

.date-of-birth{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label{
    font-family: "myCustomFont", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: hsl(0, 1%, 44%);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ERROR WHEN BUTTON IS CLICKED WITH NO INPUT */

.error-active-btn{
    color: red;
    font-size: 11px;
    font-family: "myItalicFont";
    display: none;
}

.error-active-btn.show{
    display: flex;
}

/* ERROR WHEN THE WRONG INPUT IN FILLED */

.wrong-input-error{
    color: red;
    font-size: 11px;
    font-family: "myItalicFont";
    display: none;
}

.wrong-input-error.active{
    display: flex;
}

/* PLACEHOLDER */
.input-cal::placeholder{
   padding-left: 10px;
}

/* BORDER LINE AND ICON */
.border-line-div-and-icon{
    display: flex;
    flex-direction: column;
}


.border-line{
    margin-top: 40px;
    border-bottom: 1px solid grey;
    width: 80vw;
}

.icon-btn{
    background-color: hsl(259, 100%, 65%);
    padding: 10px;
    border-radius: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-self: center;
    justify-content: center;
    margin-top: -20px;
    border: none;
}

.icon-btn:hover{
    background-color: hsl(0, 0%, 0%);
    cursor: pointer;
}

/* SOLUTION SECTION */
.solution-section{
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    font-family: "italicFont", sans-serif;
    
}

.solution-section p{
    display: flex;
    align-items: center;
    gap: 10px;
}


.line{
    font-size: 60px;
    font-style: italic;
    color: hsl(259, 100%, 65%);
    
}

.years-word, .month-words, .days-words{
    font-size: 40px;
}


}


/* TABLET VIEW */

@media (min-width: 768px) and (max-width: 1024px) {
    .border-line{
        width: 60vw;
    }
}
