@import url('https://fonts.googleapis.com/css2?family=Jost:wght@200;300;400;500;600;700;800;900&family=Montserrat:wght@100;200;400;500;600;700;800&display=swap');

*{
    box-sizing: border;
    margin: 0;
    padding: 0;
}
:root{
    --primary-color: #700505;
    --secondary-color: #520202;
    --white-color: #ffffff;
    --black-color: #000000;
}
body{
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
}
h1,h2,h3,h4,h5,h6{
    font-family: 'Jost', sans-serif;
}
a,svg,button,input[type="submit"]{
    transition: .3s;
}
input{
    width: 100%;
    padding: 5px 15px;
    border-radius: 25px;
    height: 50px;
    border: 1px solid rgb(160, 160, 160);
    outline-color: var(--primary-color);
}
input[type="checkbox"],input[type="radio"]{
    accent-color: var(--primary-color);
    width: 20px !important;
    height: 20px !important;
    margin-bottom: 0 !important;
}
#content{
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 0;
}

/* Header and footer styles to prevent side-by-side layout */
.site-header{
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.header-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
}
.header-inner .logo-header a{
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 20px;
}
.site-footer{
    width: 100%;
    background-color: #f7f7f7;
    padding: 18px 0;
    text-align: center;
    margin-top: auto;
    color: #333;
    font-size: 14px;
}
.site-footer p{margin:0}
.navbar {
    width: 100%;
}
.navbar ul{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
    list-style: none;
    padding-left: 0;
}
.universal-btn,.universal-outline-btn{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--white-color);
    transition: .2s;
    cursor: pointer;
}
.universal-btn{
    color: var(--white-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.universal-btn:hover{
    color: var(--primary-color);
    background-color: var(--white-color);
}
.universal-btn:hover svg{
    --white-color: var(--primary-color);
}
.universal-outline-btn{
    color: var(--primary-color);
    background-color: var(--white-color);
    border-color: var(--primary-color);
}
.universal-outline-btn:hover{
    background-color: var(--primary-color);
    color: var(--white-color);
}
.universal-outline-btn:hover svg{
    --primary-color: var(--white-color);
}
.image-upload-label{
    display: inline-block;
    padding: 15px 50px;
}
.image-upload-label svg{
    margin-right: 10px;
}
.image-upload-label:hover{
    background-color: var(--secondary-color);
    color: var(--white-color);
}
.image-upload-label:hover svg{
    --white-color: #ffffff;
}
.upload-form, .upload-form form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 15px 0 5px;
    width: 100%;
}
.clear-form{
    display: flex;
    justify-content: center;
}
.result-container {
    text-align: center;
    margin-top: 30px;
    background-color: #ebebeb;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 1px 1px 44px -25px rgba(0,0,0,0.75);
    -webkit-box-shadow: 1px 1px 44px -25px rgba(0,0,0,0.75);
    -moz-box-shadow: 1px 1px 44px -25px rgba(0,0,0,0.75);
}
.result-container h3{
    color: var(--primary-color);
}
.convert-btn:hover svg{
    transform: rotate(360deg);
}
.advance-mode-field{
    display: flex;
    align-items: center;
    margin: 0 10px;
    gap: 5px;
    color: var(--primary-color);
    font-size: 20px;
}
.advance-mode-field input{
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}
.login-wrapper{
    display: flex;
    flex-wrap: wrap;
    min-height: 600px;
}
.login-wrapper .universal-btn{
    margin: 20px auto;
    border-radius: 25px;
}
.logo-header{
    text-align: center;
}
.login-box{
    width: 100%;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.login-box .universal-btn{
    min-width: 200px;
    justify-content: center;
}
.login-inner-box{
    width: 100%;
    max-width: 600px;
    text-align: center;
}
.login-inner-box h3{
    font-size: 25px;
    margin: 10px 0 20px;
}
.google-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-decoration: none;
    color: var(--black-color);
    font-size: 18px;
    box-shadow: 0px 0px 30px 6px rgba(0,0,0,0.31);
    -webkit-box-shadow: 0px 0px 30px 6px rgba(0,0,0,0.31);
    -moz-box-shadow: 0px 0px 30px 6px rgba(0,0,0,0.31);
    padding: 15px 20px;
    border-radius: 50px;
    transition: .3s;
    width: 200px;
}
.google-btn:hover{
    box-shadow: 0px 0px 30px 6px rgba(0,0,0,0.2);
    -webkit-box-shadow: 0px 0px 30px 6px rgba(0,0,0,0.2);
    -moz-box-shadow: 0px 0px 30px 6px rgba(0,0,0,0.2);
}
.signup-box{
    width: 30%;
    padding: 50px 20px;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.signup-box .universal-btn{
    background-color: var(--white-color);
    color: var(--primary-color) !important;
    justify-content: center;
    margin: 0 auto;
    display: inline-block;
}
.input-box{
    margin-bottom: 20px;
}
.signup-box *{
    color: var(--white-color);
}
.title{
    font-size: 40px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
}
.divider{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.divider:before,.divider:after{
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: rgb(160, 160, 160);
}

#message-form{
    margin-bottom: 20px;
}
#message-form textarea, #message-form input:not(input[type="submit"]){
    border-radius: 25px;
    width: 100%;
    margin-bottom: 10px;
    padding: 5px 20px;
}
#message-form textarea::placeholder, #message-form input:not(input[type="submit"])::placeholder{
    text-transform: capitalize;
}
#message-form input[type="file"]{
    line-height: 33px;
}
#message-form button{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: .2s;
    cursor: pointer;
    color: var(--white-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}
#message-form button:hover{
    color: var(--primary-color);
    background-color: var(--white-color);
}
#waiting-message{
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    border-radius: 5px;
}
.custom-file{
    display: flex;
    align-items: center;
}
@media screen and (max-width: 768px){
    .logo-header{
        text-align: center;
    }
    .login-box, .signup-box{
        width: 100%;
    }
    .title{
        font-size: 30px;
    }
    .login-inner-box h3{
        font-size: 20px;
    }
    .google-btn{
        padding: 10px;
        width: 150px;
    }
    input{
        height: 40px;
    }
}
@media screen and (max-width: 640px){
    .universal-btn, .universal-outline-btn, #message-form button{
        padding: 8px 20px;
        font-size: 14px;
    }
    .image-upload-label {
        padding: 10px 30px;
        font-size: 16px;
    }
}