/*Body Section*/
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0 auto;
    font-family: "Josefin Sans", sans-serif;
    background-color: #D8D8FF;
}

/*Navbar Section*/
.navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8em;
    position: fixed;
    margin-top: 12px;
    top: 0;
    height: 8%;
    padding: 0 8px;
    text-align: center;
    font-size: medium;
    background-color: white;
    border: 1px solid rgb(190, 190, 190);
    border-radius: 50px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

/*Logo Section*/
.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: min-content;
    height: 40px;
}

.logo img:hover {
    animation:  spin 2s infinite;
    cursor: pointer;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/*Menu Section*/
.menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
}

.menu a {
    text-decoration: none;
    padding: 4px;
    color: #1A2421;
}

.menu a:hover {
    color: #FE0A0B;
}

/*Login Button Section*/
.login-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.login-button a {
    text-decoration: none;
    padding: 10px 12px;
    cursor: pointer;
    color: white;
    background-color: #FE0A0B;
    border: 2px solid #FE0A0B;
    border-radius: 50px;
}

.login-button .fa-arrow-right {
    transform: rotate(-45deg);
    transition: all 0.3s ease-in-out;
}

.login-button a:hover .fa-arrow-right{
    transform: rotate(0deg);
}

/*Form Section*/
.form {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 2em;
}

.hero-image img {
    width: 650px;
    height: auto;
}

.prediction {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/*Model Input Section*/
.model-input {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    min-width: 350px;
    gap: 0.8em;
    padding: 12px;
    color: #1A2421;
    background-color: white;
    border: 1px solid rgb(190, 190, 190);
    border-radius: 12px;
}

input[type="text"],
input[type="number"],
select {
    font-family: "Josefin Sans", sans-serif;
    font-size: medium;
    padding: 12px;
    min-width: 200px;
    border: 1px solid rgb(190, 190, 190);
    border-radius: 12px;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border: 1px solid #1A2421;
}

.owner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 200px;
}

.owner input[type="radio"] {
    display: none;
}

.owner label {
    user-select: none;
    cursor: pointer;
    font-size: medium;
    padding: 6px 10px;
    color: #1A2421;
    border: 1px solid rgb(190, 190, 190);
    border-radius: 50px;
    transition: 0.3s all ease-in-out;
}

.owner input[type="radio"]:checked + label {
    color: white;
    background-color: #FE0A0B;
    border: 1px solid #FE0A0B;
}

input[type="range"] {
    outline: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    min-width: 200px;
    accent-color: #FE0A0B;
    border: 1px solid rgb(190, 190, 190);
    border-radius: 50px;
}

/*Button Section*/
.form-button {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.model-input button {
    width: 100%;
    cursor: pointer;
    font-family: "Josefin Sans", sans-serif;
    font-size: medium;
    padding: 10px 18px;
    color: #1A2421;
    background-color: white;
    border: 1px solid rgb(190, 190, 190);
    border-radius: 100px;
    transition: all 0.3s ease-in-out;
}

.model-input button:hover {
    color: white;
    background-color: #FE0A0B;
    border: 1px solid #FE0A0B;
}

/*Prediction Result*/
.prediction-result {
    font-size: large;
    position: absolute;
    bottom: 1.5em;
    left: 50%;
    padding: 0 14px;
    color: #1A2421;
    background-color: #E2E2FF;
    border-radius: 12px;
    transform: translateX(-50%);
}

.loading i {
    margin-right: 5px;
}

.result-success {
    color: green;
}

.result-error {
    color: #FE0A0B;
}

/*Footer Section*/
.footer {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 10px 15px;
}

.footer p {
    font-family: "Fugaz One", sans-serif;
    font-size: x-large;
    position: fixed;
    bottom: 0;
    right: 0;
    line-height: 0.5;
    padding: 10px 15px;
    color: #FE0A0B;
}

/*Responsive Section*/
@media (max-width: 600px) {

    .menu {
        display: none;
    }

    .navbar {
        z-index: 999;
        height: 55px;
    }

    .hero-image {
        display: none;
    }

    .model-input {
        width: 100%;
        max-width: 60px;
    }

    .owner label {
        font-size: small;
        padding: 8px 6px;
    }

    .prediction-result {
        font-size: medium;
        bottom: 0.6em;
        width: 70%;
    }

    .footer {
        display: none;
    }

}