* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #DDD;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #DDD;
    /* height: 100vh; */
    height: 100%;
}
.header {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: 0px 3px 7px black;
    z-index: 2;
    background-color: #6F1E51;
    color: #ddd;
}

i {
    font-size: 24px;
    margin-right: 10px;
    color: #999
}

.content {
    margin-top: 20px;
    margin-bottom: 40px;
    /* height: 100%; */
    width: 90%;
    background-color: #DDD;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 20px;
    margin: 10px;
    justify-items: center;
}

.grid-container div {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.inputGridContainer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 5px;
    margin-top: 10px;
}

.card {
    display: flex;
    justify-content: space-between;
    border: 1px #ccc solid;
    box-shadow: -2px -2px 6px white,
    2px 2px 3px black;
    border-radius: 10px;
    padding: 5px;
    /* height: 100px; */
}

.size-sm {
    height: 40px;
}

.size-md {
    height: 100px;
}
.back {
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.back:active {
    box-shadow: -1px -1px 2px white,
    1px 1px 1px black;
}

.quote {
    margin-top: 20px;
    display: inline-block;
    width: 90%;
    color: #666;
    font-size: 14px;
    text-align: center;
}
#winequote {
    margin-top: 10px;
    font-size: 20px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: #222;
}
.input_element {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
    font-size: 16px;
}
.input_element input {
    margin-top: 8px;
    border-radius: 10px;
    padding: 10px;
    font-size: 16px;
    width: 100%;
}
.addWineButton {
    margin: 20px auto;
    padding: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}
.success_splash {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: bold;
    top: 0;
    left: 0;
    z-index: 5;
    background-color: rgba(0, 148, 50, 0.9);
    color: white;
    font-size: 50px;
    width: 100%;
    height: 100%;
}
@keyframes slide {
    0% {
        opacity: 0.15;
        /* position: absolute; */
        right: -10%;
        /* color: white; */
        }
    100% { 
        opacity: 1;
        /* position: absolute; */
        right: 10%
        /* color: red; */
        }
}
.success_splash_text {
    animation-name: slide;
    animation-duration: 2s;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: '';
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

#winered{
    background-color: #6F1E51;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + #winered {
    background-color: #fad390;
}
    
input:focus + #winered {
    box-shadow: 0 0 1px #fad390;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.fullwidth {
    display: flex;
    justify-content: center;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin: 5px;
    text-align: center;
    color: #6F1E51;
    font-size: 16px;
    font-weight: bold;
    padding: 5px;
    border-radius: 4px;
    /* box-shadow: 0px 1px 3px #6F1E51; */
}

.toggleGridContainer {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    /* grid-gap: 5px; */
    /* margin-top: 10px; */
}

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

.varietalInputContainer, 
.regionInputContainer {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.varietalAutocompleteInput,
.regionAutocompleteInput {
    width: 70%;
    padding: 10px;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
}

.autocompletelist {
    display: flex;
    /* justify-content: center; */
    /* align-items: center; */
    margin-top: 5px;
    width: 70%;
    border-radius: 5px;
    flex-direction: column;
    padding: 2px;
    /* border: 1px solid #222; */
    box-shadow: 0px 1px 3px #222;
}

.autocompletelist div {
    padding: 4px;
}

.colorSwitchContainer {
    position: relative;
    display: flex;
    justify-content: space-around;
    z-index: 0;
    width: 70%;
    background: #fff;
    border-radius: 30px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.switch_label {
    display: inline-block;
    color: #888;
    padding: 5px;
    cursor: pointer;
    transition: color 200ms ease-in-out;
}

.toggler {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 50%;
    left: 20%;
    z-index: 1;
    background-color: #6F1E51;
    border-radius: 50%;
    transition: all 600ms ;
    transform: translate(-20%, -50%);
}

.colorSwitchContainer input#red:checked ~ .toggler {
    background-color: #6F1E51;
    transform: translate(-20%, -50%);

}
.colorSwitchContainer input#white:checked ~ .toggler {
    background-color: #fad390;
    transform: translate(50%, -50%);
    
}

.colorSwitchContainer input[type="radio"]:not(:checked), .colorSwitchContainer input[type='radio']:checked {
    display: none;
}


#red_color {
 background-color: #6F1E51;   
}

#white_color {
    background-color: #fad390;
}

#rose_color {
    background-color: #fab1a0;
}

#sparkling_color {
    background-color: #e1b12c;
}

.wineCardContainer {
    box-shadow: 0 0px 4px 1px #bbb;
    padding: 20px 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.wineCardContainerGrid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    margin-top: 20px;
    grid-gap: 10px;
    /* max-height: 500px;
    overflow-y: scroll; */
}

@media screen and (min-width: 650px) {
    .wineCardContainerGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cardwidget {
    display: flex;
    flex-direction: column;
}

.wineImg {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.wineImgPlaceholder {
    /* width: 100%; */
    max-width: 335px;
    margin: 0 auto;
    height: 350px;
    /* object-fit: cover; */
    border-radius: 20px 20px 0 0;
}

.winecard {
    position: relative;
    box-shadow: 0 0px 4px 1px #bbb;
    background-color: #eee;
    font-style: italic;
    display: flex;
    flex-direction: column;
    line-height: 25px;
    padding: 15px;
    border-radius: 0px 0px 10px 10px;
    min-width: 24%;
}
.svgImgContainer {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    /* position: absolute;
    top: 15px;
    right: 15px; */
}
.imgIcon {
    display: inline;
    margin: 0 6px;
}

.fiveWineTypesOuterContainer {
    display: flex;
    flex-direction: column;
   
    width: 100%;
    margin-top: 10px;
}



.fiveWineTypesContainer {
    /* display: flex;
    flex-direction: row; */
     display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 10px;
    margin-top: 10px;
    justify-content: space-between;
}

@media only screen and (max-width: 380px) {
    .fiveWineTypesContainer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
    }
}

.pressed {
    background-color: #bbb;
    box-shadow: 0px 0px 6px white,
                1px 1px 3px black;
}

.wineFilterSelectionMessage {
    display: flex;
    justify-content: center;
    padding: 0px;
    margin-top: 20px;
}

.fivewinetypesrowitem {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 14px;
    min-width: 62px;
}

.tastingNotesContainer {
    display: flex;
    justify-content: center;
    padding-top: 5px;
    order: 2;
    /* max-width: 50%; */
    width: 100%;
    flex-wrap: wrap;
}

.notAvailable {
    background-color: #bbb;
}

.alreadyEnjoyedText {
    display: flex;
    width: 50%;
}

.additionalOptionRowItem {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.additionalOptionRowItem div {
    margin-left: 10px;
}

.cardFooterContainer {
    width: 100%;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.corkscrewButtonContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    width: 100%;
    order: 2;
    margin-top: 20px;
}

.corkscrewConfirmationButtonContainer {
    display: flex;
    flex-direction: column;
}

.viewCollectionOptionsBar{
    display: flex;
    justify-content: space-evenly;
    margin: 10px 0px;
}

.additionalOptionsOuterContainer {
    display: flex;
    flex-direction: column;
}

.viewCollectionOptionsBar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
}

@media only screen and (max-width: 380px) {
    .viewCollectionOptionsBar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
    }
}

.sort_button {
    flex-direction: column;
    align-items: center;
}

.sort_button div {
    order: 2;
    text-align: center;
}