/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

/* Global styles */
* {
    font-family: "Poppins", sans-serif;
}

html {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*height of the footer*/
    margin-bottom: 100px;
    background-color: #ffffff;
}

h1 {
    font-weight: 700;
    font-size: 3rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: #87ceeb;
}

/* image upload field */
.total-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
    margin-bottom: 30px;
    border-radius: 10px;
    border: solid 1.5px #f6f7fa;
    border-radius: 10px;
    background-color: #f6f7fa;
}

.image-upload-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60%;
    height: 400px;
    margin: 5% 0;
    border-radius: 10px;
    background-color: #ffffff;
    border: dashed 1.5px #35465d;
    z-index: 2;
}

#uploadInput {
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

#imagePreview {
    display: none;
    position: relative;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
}

.upload-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0.1;
    z-index: 1;
}

.file-upload-content {
    display: none;
    width: 100%;
    text-align: center;
    margin: 0 auto 5%;
    z-index: 2;
}

#label-container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-family: "Jua", sans-serif;
}

.bar-container {
    height: 2.7rem;
}

.percent-text {
    color: #ffffff;
}

.animal-explain {
    font-weight: bold;
    margin: 0 10%;
    color: #35465d;
}

/* 塩顔 */
.shio-kao-title {
    font-size: 2rem;
    font-weight: bold;
    color: rgb(109, 182, 203);
}
.shio-kao-celeb {
    font-weight: bold;
    color: rgb(109, 182, 203);
}
.shio-kao-label {
    text-align: left;
    width: 20%;
    height: 2rem;
    color: rgb(109, 182, 203);
}
.shio-kao-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2rem;
    border-radius: 10px;
    background-color: rgba(49, 132, 155, 0.2);
}
.shio-kao-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 2rem;
    border-radius: 10px;
    background-color: rgb(109, 182, 203);
}
/* 醤油顔 */
.shoyu-kao-title {
    font-size: 2rem;
    font-weight: bold;
    color: rgba(235, 166, 190, 1);
}
.shoyu-kao-celeb {
    font-weight: bold;
    color: rgba(235, 166, 190, 1);
}
.shoyu-kao-label {
    text-align: left;
    width: 20%;
    height: 2rem;
    color: rgba(235, 166, 190, 1);
}
.shoyu-kao-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2rem;
    border-radius: 10px;
    background-color: rgba(235, 166, 190, 0.2);
}
.shoyu-kao-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 2rem;
    border-radius: 10px;
    background-color: rgba(235, 166, 190, 1);
}
/* ソース顔 */
.sauce-kao-title {
    font-size: 2rem;
    font-weight: bold;
    color: rgba(195, 140, 102, 1);
}
.sauce-kao-celeb {
    font-weight: bold;
    color: rgba(195, 140, 102, 1);
}
.sauce-kao-label {
    width: 20%;
    text-align: left;
    height: 2rem;
    color: rgba(195, 140, 102, 1);
}
.sauce-kao-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2rem;
    border-radius: 10px;
    background-color: rgba(195, 140, 102, 0.2);
}
.sauce-kao-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 2rem;
    border-radius: 10px;
    background-color: rgba(195, 140, 102, 1);
}

.try-again-btn {
    border: solid 1.5px #35465d;
    border-radius: 40px;    
    background-color: #35465d;
}

.try-again-text {
    display: block;
    font-size: 1.5rem;
    text-align: center;
    color: #ffffff;
}

.comment-container {
    min-height: 300px;
    width: 50%;
}

/* ----------- share button & footer ------------ */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    text-align: center;
    bottom: 0;
    width: 100%;
    background-color: initial;
    color: initial;
    color: initial;
    display: flex;    
    justify-content: center;
    align-items: center;    
    color: initial;    
    display: flex;    
    justify-content: center;
    align-items: center;    
}

footer p {
    margin: 0;
}

/* Mobile styles */
@media screen and (max-width: 600px) {
    html {
      font-size: 8px;
    }
    .shio-kao-label, .shoyu-kao-label, .sauce-kao-label {
        width: 30%;
        font-size: 1rem;
    }
    .total-container {
        width: 80%;
    }

    .image-upload-container {
        height: 200px;
    }

    #imagePreview {
        top: 30%;
    }
}