* {
    padding: 0;
    margin: 0;
}

body {
    font-family: Calibri;
    background-color: black;
    color: white;
}

#switcher-container {
    display: flex;
    justify-content: center;
    align-content: center;
    background-color: #0a342d;
    width: 16%;
    height: 2em;
    border: solid #ffffff 1px;
    border-radius: 20px;
    position: absolute;
    right: 2%;
    top: 2%;
}

#switcher-container:hover {
    background-color: #386775;
    cursor: pointer;
    scale: 110%;
}

#switcher-container:hover #switcher-icon {
    transition: ease 0.7s;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

#switcher-text {
    display: inline-block;
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
    font-size: 0.9em;
    color: white;
    font-weight: bold;
}

#switcher-icon {
    position: relative;
    height: 100%;
    display: inline-block;
}


#back-button {
    display: flex;
    justify-content: flex-start;
    align-content: center;
    background-color: #0e100f;
    width: 15%;
    height: 2em;
    border: solid #ffffff 1px;
    border-radius: 20px;
    position: absolute;
    left: 2%;
    top: 2%;
}

.fa-circle-chevron-left {
    color: white;
}

#back-button:hover {
    background-color: #386775;
    cursor: pointer;
    scale: 110%;
}

#back-button:hover #switcher-icon {
    transition: ease 0.7s;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

#back-button-text {
    display: inline-block;
    text-align: center;
    margin: auto;
    font-size: 0.9em;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

#back-button-icon {
    position: relative;
    height: 100%;
    display: inline-block;
}

.switch-state-color {
    color: #8098a9;
}

.button-text-color {
    color: #8098a9;
}

#banner-container {
    width: 100%;
    height: 30vh;
    background: url("images/search-banner2.jpg") no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;

}

#banner-title {
    font-family: Hunters;
    height: fit-content;
    width: fit-content;
    display: block;
    margin: auto;
    padding-top: 9vh;
    letter-spacing: 0.1em;
    text-align: center;
    color: white;
    font-size: 5em;
    font-weight: bold;
}

#search-bar-container {
    transform: translateY(-50%);
    width: 100%;
    height: 2em;
    display: flex;
}

#search-bar {
    float: left;
    height: 100%;
    width: 70%;
    border: 3px solid black;
    border-right: none;
    border-bottom-left-radius: 15px;
    border-top-left-radius: 15px;
    margin-left: 10%;
    padding-left: 2%;
    background-color: white;
}

#search-button {
    float: left;
    width: 5%;
    height: 120%;
    cursor: pointer;
    border: 3px solid black;
    border-left: 1px solid black;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

#search-button:hover {
    background-color: grey;
}

#language-select {
    display: inline-block;
    width: fit-content;
    margin-top: auto;
    margin-bottom: auto;
    font-size: 1.1em;
    border: none;
    background-color: black;

    color: white;

}


.coloredBold {
    color: #0eb4f5;
    font-weight: bold;
}

.colored {
    color: #125d7a;
}

#result {
    background: url("images/search-result-background.jpg") no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#result-container {
    min-height: 80vh;
    height: fit-content;
    width: 100%;
}

#result-message {
    background-color: rgba(0, 0, 0, 0.46);
    clear: both;
    color: white;
    width: 100%;
    text-align: center;
}

#result-grid {
    margin-top: 3%;
    margin-left: 10%;
    margin-right: 10%;
    width: 80%;
    display: grid;
    grid-template-columns: 33% 34% 33%;
}


.result-element {
    margin: 10%;
    width: 80%;
    color: white;
    background-color: #2c2d2f;
    border: 2px solid black;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
}

.result-element:hover {
    scale: 105%;
}

.result-element-image-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.result-element-image {
    width: 100%;
    max-height: 100%;
}


#result-grid p {
    width: 96%;
    padding-left: 2%;
    padding-right: 2%;
    margin-top: 2%;
    margin-bottom: 4%;
    overflow: hidden;
}

.result-element-title {
    font-weight: bold;
    font-family: Lovelo;
    font-size: 1.6em;
    letter-spacing: 2px;
    text-align: center;
    padding-bottom: 3%;
    animation: append-fadein .3s linear;
}


.result-element-ingredients-container {
    padding-left: 2%;
    width: 96%;
    padding-right: 2%;
    font-size: 0.9em;
    height: fit-content;
}

.result-element-ingredients {
    font-size: 0.9em;
    width: fit-content;
    display: inline-block;
    animation: append-fadein .4s linear;
}
.result-element-ingredient-image {
    height: 1em;

}


.result-element-alcohol {
    font-size: 0.9em;
    font-style: italic;
    animation: append-fadein .4 .5s linear;
}


.result-element-category {
    margin-top: 2%;
    width: 100%;
    text-align: center;
    padding-bottom: 5%;
}

.result-element-glass {
    margin-top: 2%;
    width: 100%;
    text-align: center;
    padding-bottom: 5%;
}

.result-element-instruction {
    margin-top: 2%;
    width: 100%;
    text-align: center;
    padding-bottom: 5%;
}

.result-element-video-container {
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
    background-color: #125d7a;
    margin-bottom: 3%;
    border-radius: 15px;
    border: 1px solid white;
    text-align: center;
    animation: append-fadein .4 .5s linear;
}

.result-element-video-text {
    width: 100%;
    font-size: 0.9em;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.fa-video {
    font-size: 0.7em;
}

footer {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 60px;
    background-color: #2f2620;

}

#footer-text {
    height: fit-content;
    text-align: center;
    color: grey;
    width: 100%;
    margin: auto;
}


@keyframes append-fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media screen and (max-width: 950px) {

    #switcher-container {
        width: 23%
    }

    #result-grid {
        width: 90%;
        margin-left: 5%;
        margin-right: 5%;
    }

    #back-button {
        width: 23%;
    }
}


@media screen and (max-width: 750px) {


    #switcher-container {
        width: 26%
    }

    #result-grid {
        grid-template-columns: 1fr 1fr;
    }

    #search-bar {
        width: 65%;

    }

    #search-button {
        width: 10%;
    }

    #back-button {
        width: 25%;
    }

}


@media screen and (max-width: 550px) {

    #switcher-container {
        padding-top: 1%;
        padding-bottom: 1%;
        width: 40%
    }

    #banner-title {
        font-size: 4em;
        padding-top: 11vh;

    }

    #back-button {
        padding-top: 1%;
        padding-bottom: 1%;
        width: 40%;
    }


    #result-grid {
        grid-template-columns: 1fr;
    }
}

