/* style for small screens */
body {
    background-color: #a6c649;
}
.container {
    height: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    left: 0;
    top: 0;
    background-color: #fafbf6;
    border: 10px solid #e7e7e7;
}
a:link, a:visited, a:active
{
	color:#009;
    text-decoration: none;
}
	a:hover
{
	color:#F30;
    text-decoration: underline;
}

.header {
    text-align: center;
    }
.stars {
    font-size: x-large;
    vertical-align: middle;
    text-align: right;
}
span.checked {
    color:#fcc200;
}

/* search */
#search {
    text-align: right;
}
#search_text, #search_button {
    display: inline-block;
}
#search_text {
    min-width: 22rem;
}
.screen-hide {
    display: none;
}
.double_line {
    height: 11px;
    background: #fafbf6 url('/recipes/assets/images/recipe_bar.png') repeat-x;
    margin: 0 0 2em 0 ;
}
/* lists */
ol, ul {
    margin-bottom: 1.5rem;
    margin-left: 1rem;
    margin-top: 0;
    padding-left: 1rem;
}
ol {
    display: block;
    list-style-type: decimal;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
    list-style-position: outside; /* Keep bullet outside */
    padding-left: 1rem;
}
ul {
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
    list-style-position: outside; /* Keep bullet outside */
    padding-left: 30px; /* Total indentation (bullet + text indent) */
}
ul li::before {
    /*content: "- "; *//* Add dash and a space as content */
}
li {
    margin: 0;
    padding: .5rem .5rem;
}


/* introduction */
.introduction {
    color: #333;
    font-style: italic;
    margin-bottom: 2em;
  }
  
  
  /* ingredients list  */
  .ingredients {
    color: #333;
    text-align: center;
    border-right: 1px solid #ccc;
  }
  
  .ingredients h3 {
    text-align: center;
  }
  
  .ingredients ul {
    list-style: none;
    margin: 2rem 1rem 1rem 1rem;
    padding: 0;
  }
  
  .ingredients li {
    font-style: italic;
    /*font-weight: bold;*/
    text-align: center;
  }
  
  .ingredients li:last-of-type hr {
    display: none;
  }
  
  .ingredients hr {
    margin: 1.2rem auto;
    width: 60px;
  }
  
  
  /* instructions */
  .instructions {
    margin: 0 2rem;
  }
  .instructions ol,
  .instructions ul {
    margin-top: 0.25em;
    padding-top: 0;
    margin-right: 2em;
  }
  
  .instructions li {
    line-height: 1.25;
  }
  
  p.instr {
    padding: 10px;
    margin: 10px;
  }
  
  /* footer */
  #footer {
    text-align: right;
    font-style: italic;
    color: #666;
  }

/* links */
a:hover {
    border-bottom: 1px solid #4c70a0;
    transition: border-color .2s;
}
a:link, a:visited {
    color: #4c70a0;
}
a:visited {
    color: #5d7ea9;
}


.header img {
    height: 8rem;
    margin-bottom: -2rem;
    padding-top: 1rem
}

/* headings - smnall screens */
h1 {
    font-size: 32px;
    font-weight: 550;
}
h2 {
    font-size: 32px;
    font-weight: 180;
}
h3 {
    font-size: 24px;
    font-weight: 550;
}
h4 {
    font-size: 24px;
    font-weight: 275;
}

h1 a:link, h1 a:visited, h1 a:active, h2 a:link, h2 a:visited, h2 a:active, h3 a:link, h3 a:visited, h3 a:active, h4 a:link, h4 a:visited, h4 a:active  {
    text-decoration: none;
    color: #222;
}

/* original headings */
/* headings */
h2, h2>a {
    font-size: 3.5rem;
    font-style: normal;
    font-weight: 500;
    letter-spacing: .072em;
    line-height: 1.2;
    margin-bottom: 0;
    text-decoration: none;
    text-shadow: none;
    text-transform: uppercase;
    word-spacing: .048em;
    
}
h2, h3, h4 {
    color: #222;
    line-height: 1.5em;
}

h3 {
  text-transform: uppercase;
  font-size:2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
}

h4 {
    font-size: 2rem;
    font-variant: small-caps;
    font-weight: 400;
    margin-top: 1em;
}

/* header */
#header {
    font-size: 1.25rem;
    text-align: center;
    text-transform: uppercase;
    color: #333;

}

/* introduction */
.introduction {
  color: #333;
  font-style: italic;
  margin-bottom: 2em;
}



/* styles for the homepage table */
.home_table {
    width: 100%;
}
.home_title {
    width: 35%;
}
.home_spirits  {
    width: 40%;
}
.home_stars  {
    vertical-align: middle;
    text-align: center;
    width: 25%;
}
.non-home-star {
    width: 12px;
}
.non_home_list_stars {
    display: none;
}
.home_list li::before {
    content: unset;
}

.home_list {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: .25em 1em; /* Space between items */
    padding: 0;
    list-style: none;
    max-width: 100%; /* Adjust as needed */
}

.home_list_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: .25em .5em;
    padding: .25rem 0;
}
  
.home_list_stars {
    display: none;
}
.home-star {
    width: 12px;
}
.home-rating-text {
    display: unset;
    font-size: .75em;
}

/* measurement scaling */
.onex, .onehalfx, .twox, .threex {
    display: none; /* Hide all spans by default */
}
.onex.active, .onehalfx.active, .twox.active, .threex.active {
    display: inline; /* Show the active span */
}
.menu {
    font-variant-caps: small-caps;
    margin: 2rem 0;  
}
.menu a {
    margin-right: 10px;
    text-decoration: none;
    color: blue;
    cursor: pointer;
}
.menu a.active {
    font-weight: bold;
    text-decoration: underline;
}
.category_icon_vsmall {
    display: none;
}
.category_icon_small {
    display: none;
}
.category_icon_large {
    display: none;
}


/* Larger than mobile (default point when grid becomes active) */
@media (min-width: 600px) {
    /* Styles for screens smaller than 768px (phones) */   
    p.icons {
        display: block;
        vertical-align: middle;
        text-align: right;
        clear: both;        
    }
    /* headings - larger screens */
    h1 {
        font-size: 40px;
        font-weight: 550;
    }
    h2 {
        font-size: 40px;
        font-weight: 180;
    }
    h3 {
        font-size: 24px;
        font-weight: 550;
    }
    h4 {
        font-size: 24px;
        font-weight: 275;
    }
    .home_list_stars {
        display: unset;
        margin-left: auto; /* Pushes stars to the right */
    }
    .non_home_list_stars {
        display: unset;
    }
    .home-rating-text {
        display: none;
    }  
    .category_icon_vsmall {
        display: inline;
        width: 4rem;
        max-height: 6rem;
        vertical-align: bottom;
    }
    .category_icon_small {
        display: inline;
        width: 6rem;
        max-height: 8rem;
        vertical-align: bottom;
    }
    .category_icon_large {
        display: inline;
        width: 12rem;
        max-height: 12rem;
        text-align: right;
    }

}

/* Larger than phablet */
@media (min-width: 900px) {
    .home_list_stars {
        display: unset;
        margin-left: auto; /* Pushes stars to the right */
    }
    .home-star {
        width: 18px;
    }
    .home-rating-text {
        display: none;
    }
    .non-home-star {
        width: 24px;
    }
    .category_icon_vsmall {
        display: inline;
        width: 6rem;
        max-height: 8rem;
        vertical-align: bottom;
    }
    .category_icon_small {
        display: inline;
        width: 8rem;
        max-height: 10rem;
        vertical-align: bottom;
    }
    .category_icon_large {
        display: inline;
        width: 24rem;
        max-height: 24rem;
        text-align: right;
    }

}

/* Larger than tablet */
@media (min-width: 1200px) {

}

