@import url('https://fonts.googleapis.com/css?family=Roboto');
@import url('https://fonts.googleapis.com/css?family=Handlee');
@import url("https://fonts.googleapis.com/css?family=Neucha|Patrick+Hand+SC&display=swap");



header {
    position: relative;
}

#title-container {
    display: flex;
    /* width: 60%; */
    max-width: 500px;
    min-width: 320px;
    margin: auto;
    padding: 0px 20px 0px;
    text-align: center;
    font-family: 'Neucha';
    justify-content: space-between;
}
#title-description {
    position: relative;
    top: -5px;
    text-align: center; 
    font-family: 'Neucha';
    /* width: 60%; */
    max-width: 500px;
    min-width: 280px;
    margin: auto;
    padding: 0px 20px 0px;
    text-align: left;
}
#title-icons {
    position: relative;
    top: -4px;
}

#day-counter {
    position: relative;
    text-align: center;
    width: 60%;
    max-width: 500px;
    min-width: 280px;
    margin: auto;
    text-align: left;
    font-size: 20px;
}

.header-button {
    width: 30px;
    height: 30px;
    position: relative;
    top: 7px;
}

#menu-container {
    position: relative;
    top: 10px;
    right: 47px;
}
#menu-container ul{
    position: absolute;
    width: 150px;
    background: white;

    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0;
    list-style-type: none;
    text-align: left;
    font-size: 1.25rem;
    line-height: 1.5rem;

    max-height: 10rem;
    overflow: auto;
    border-radius: 0.375rem;
    
    box-shadow: 2px 2px 2px rgba(0,0,0,.3);
    z-index: 20;
}
#menu-container ul li {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 1rem;
    cursor: pointer;
}
#menu-container ul li:hover{
    background-color :rgb(13 148 136);
    color: white;
}

.bg-wrapper{
    /* overflow: hidden; */
    position: fixed;
    z-index: -1;
    background-image: url('src/donuts.jpg');
    background-position: top;
    width: 100%;
    height: 100%;
    opacity: 80%;
}

body {
    /* background-color: #e8e4c9 ; */
    background-image: url(src/wood-bg.jpg);
    font-family: 'Neucha';
}

.menu-header{
    font-size: 35px;
}
.menu-content{
    padding: 20px 20px 120px;
    font-size: 25px;
    font-family: 'Handlee';
    text-align: center;
}
.start{
    display: flex;
    text-align: center;
    font-size: 30px;

    flex-direction: column;
    margin: auto;
    width: fit-content;
}
.menu-button {
    background-color: #93db8c; /* Green */
    border-radius: 0.75rem;
    margin: 20px;
}

.game-content{
    
}

.paper {
    position: relative;
    width: 90%;
    max-width: 800px;
    min-width: 288px;
    height: 900px;
    margin: auto;
    margin-top: 8px;
    margin-bottom: 100px;
    background: #fafafa;
    border-radius: 10px;
    box-shadow: 0px 5px 8px 5px rgba(0,0,0,.3);
    overflow: hidden;
}

.paper-content {
    position: absolute;
    padding-top: 32px;
    top: 50px; right: 10px; bottom: 30px; left: 10px;
    background: linear-gradient(transparent, transparent 28px, #91D1D3 28px);
    background-size: 30px 30px;
    
    color: black;
    font-family: 'Neucha';
    font-weight: bold;
    font-size: 18px;
}

#paper-header {
    width: 100%;
    margin: auto;
    margin-top: 20px;
    text-align: center;
    font-size: 30px;
    /* line-height: 25px; */
    justify-content: center;
}

#guess-count {
    position: absolute;
    top: 2px;
    right: 10px;
}

#input_food {
    position: relative;
    width: 60%;
    min-width: 468px;
    text-align: center;
    font-weight: bold;
    background: transparent;
    /* outline: none; */
    border: none;
    border-bottom: 2px solid black;
    line-height: 0px;
    z-index: 10;
}
.input_food_gameend{
    pointer-events: none;
}

.input_food_gameend::placeholder {
    color: black;
    opacity: 1;
}

#search-results-container{
    /* position: absolute; */
    width: 50%;
    min-width: 280px;

    margin: auto;
    left: 0;
    right: 0;
    text-align: center;
    
    height: 2px;
}
#search-results-container ul{
    position: absolute;
    width: 50%;
    min-width: 280px;
    background: white;

    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0;
    list-style-type: none;
    text-align: left;
    font-size: 1.25rem;
    line-height: 1.5rem;

    max-height: 10rem;
    overflow: auto;
    border-radius: 0.375rem;

    z-index: 10;
}
#search-results-container ul li{
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 1rem;
    cursor: default;
}
#search-results-container ul li:hover{
    background-color :rgb(13 148 136);
    color: white;
}


#food-picture {
    display: block;
    margin: auto;
    margin-top: 15px;
    /* transform: rotate(-5deg); */

    box-shadow: 0px 0px 3px 3px rgba(0,0,0,0.5);
}


#category-holder {
    display: flex;
    justify-content: space-between;
    /* flex-basis: auto; */
}
#left{
    /* max-width: 45%; */
    width: 45%;
    height: 444px;
}
#right{
    /* max-width: 45%; */
    width: 45%;
    height: 444px;
}

.category{
    position: relative;
    font-size: 20px;
    /* line-height: 30px; */

    width: 300px;
    /* max-width: 45%; */

    display: flex;
    flex-wrap: wrap;
}

#category-ingredient {
    /* margin-top: 116px; */
    margin-top: 114px;
    margin-left: 10px;

    max-height: 328px;
    overflow-y: auto;
}
#category-origin{
    /* right: 200px; */
    /* right: 170px; */
    /* right: 100px; */
    position: absolute;
    margin-top: 114px;
    max-height: 178px;
    overflow-y: auto;
}
#category-method {
    /* right: 210px; */
    /* right: 180px; */
    /* right: 100px; */
    position: absolute;
    margin-top: 294px;
    max-height: 148px;
    overflow-y: auto;
}

#guessed-food {
    /* border: 2px solid black; */
    width: 100%;
    margin: 30px 5px 0px 5px;

    position: absolute;
    max-height: 86px;
    overflow-y: auto;
}



.pill {
    align-items: center;
    font-family: "Handlee";
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
    /* line-height: normal; */
    height: 22px;
    white-space: nowrap;
    width: auto;

    position: relative;
    border-radius: 100px;
    overflow: hidden;
    padding: 0px 12px 0px 12px;
    margin: 4px 0px 4px 3px;
    text-overflow: ellipsis;
    border: 2px solid rgba(0, 0, 0, 0);

    word-break: break-word;

    animation: pill-appear;
    animation-duration: 0.4s;
    animation-iteration-count: 1;
}




.pill-food {
    align-items: center;
    font-family: "Open Sans", Arial, Verdana, sans-serif;
    font-weight: bold;
    font-size: 16px;
    display: inline-block;
    height: 28px;
    /* height: 100%; */
    white-space: nowrap;
    width: auto;

    position: relative;
    border-radius: 100px;
    overflow: hidden;
    padding: 1px 12px 1px 12px;
    text-overflow: ellipsis;
    border: 2px solid rgba(0, 0, 0, 0);

    word-break: break-word;
    margin: 3px;
}

.pill--success {
    background: #9fff7c;
}
.pill--warning {
    background: #ffebb6;
}
.pill--danger {
    background: #ff9a91;
    /* background: #ffd5d1;  */
}
.pill--neutral {
    /* background: rgb(203 213 225); */
    background: rgb(149, 204, 255);
}
.pill--border-color {
    border-color: black;
}

@keyframes pill-appear {
    0% {transform: scale(0);}
    100% {transform: scale(1);}
}

.popup {
    position: fixed; /* Stay in place */
    z-index: 20; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    /* overflow: hidden; */
    
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);

}
.popup-content {
    background-color: #fefefe;
    margin: auto;
    margin-top: 6%;
    padding: 15px 20px 10px 20px;
    border: 2px solid rgb(2, 132, 199);
    border-radius: 1rem;
    width: 60%;
    max-width: 500px;
    min-width: 320px;
    
    transform: scale(0);
    /* opacity: 0; */
    transition: transform 0.2s, opacity 0.2s;
}

.popup-header{
    position: relative;
    font-size: 20px;
    font-weight: bold;
    border-bottom: 2px solid rgb(2, 132, 199);
}
#popup-close-button {
    position: absolute;
    width: 28px;
    height: 28px;
    right: -10px;
    top: -10px;
}

#results-food-picture{
    display: block;
    /* width: 70%; */
    margin: auto;
    margin-top: 1rem;

    box-shadow: 3px 3px 5px #575450;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.5);
}

#results-content {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-top: 5px;
}

#results-description {
    font-size: 18px;
    line-height: 20px;
    color: #2e2e2e;

    margin-bottom: 0.5rem;
    margin-left: 0.2rem;
    padding-top: 3px;
    padding-bottom: 3px;
    padding-left: 0.3rem;

    border-left: 3px solid rgb(131, 131, 131);
}

#share-button {
    margin-top: 10px;
    margin-bottom: 3px;

}
#info-link{
    position: relative;
    font-size: 18px;
    color: rgb(14 165 233);
}

#confetti-canvas {
    position: absolute;
    left: 0;
    right: 0;
    top: 0px;
    margin-left: auto;
    margin-right: auto;

    z-index: 21;
}

.fade-transition-05 {
    transition: opacity 0.5s;
}
.fade-transition-1 {
    transition: opacity 1s;
}

.hidden {
    /* display: none; */
    position: absolute;
    visibility: hidden;
    opacity: 0;
}


@media screen and (max-width: 700px) {
    .paper{
        height: 1050px;
    }

    #category-holder {
        flex-direction: column;
    }
    #left{
        width: 100%;
        height: 208px;
    }
    #right{
        width: 100%;
    }
    #category-ingredient {
        width: 90%;
        max-height: 178px;
    }
    #category-origin {
        width: 90%;
        margin-left: 10px;
        max-height: 178px;
    }
    #category-method {
        width: 90%;
        margin-left: 10px;
        max-height: 178px;
    }
}

@media screen and (max-width: 580px) {
    #input_food {
        width: 90%;
        min-width: unset;
    }
    #guess-count{
        font-size: 22px;
    }
}


/* 
z indexes to note
popup: 20
input_food: 10
search_results_container: 10
header: 0 (why was it 3 last time? dont remember)
confetti: 2 - put to 21 
paper: 0
*/