@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
* {
    box-sizing: border-box;
}
body{
    margin: 0;
    height: 100vh;
    background-color: #f2f1df;
}
h1, h2, h3, h4, h5, h6{
    font-family: 'Merriweather';
}
/* Hamburger menu*/ 
.off-screen-menu {
    background-color:#0000009c;
    height: 100vh;
    width: 100%;
    max-width: 450px;
    position: fixed;
    top: 0;
    right: -450px;
    z-index: 7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 3rem;
    transition: .3s ease;
}
.off-screen-menu.active {
    right: 0;
}
.off-screen-menu ul{
    list-style-type: none;
}
.off-screen-menu a{
    color: white;
    text-decoration: none;
}
.off-screen-menu li{
    transition: .3s ease-in-out;
}
.off-screen-menu li:hover {
    color: rgb(217, 217, 217);
    transform: scale(1.1);
}
.ham-menu {
    height: 62px;
    width: 62px;
    margin-left: auto;
    position: relative;
    z-index: 9;
}
.ham-menu span {
    height: 5px;
    width: 100%;
    background-color: #f2f1df;
    border-radius: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .3s ease;
    z-index: 9;
}
.ham-menu span:nth-child(1) {
    top: 25%;
}
.ham-menu span:nth-child(3) {
    top: 75%;
}
.ham-menu.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}
.ham-menu.active span:nth-child(2) {
    opacity: 0;
}
.ham-menu.active span:nth-child(3) {
    top: 40%;
    transform: translate(-50%, 50%) rotate(-45deg);
}
/* Nav Bar */
nav{
    display: grid;
    grid-template-columns: 1.5fr 2fr 4fr 0.5fr;
    padding: 0.5rem;
    background-color: #6d8a55;
}
div.hero {
    background-image: url("../images/herocow1600.webp");
    object-fit: cover;
    width: 100%;
    height: 300px;
}
#logo-container {
    grid-column-start: 1;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
}
.logo-bg {
    background: #ffffff80;
    border-radius: 50%;
    padding: 10px;
}
#buttons-container{
    grid-column-start: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: center;
}
#buttons-container a{
    color: black;
    text-decoration: none;
    font-family: 'Nunito', 'sans-serif';
}
#buttons-container div {
    background: #f2f1df;
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: 5px 5px 5px;
    transition: 0.3s;
}
#buttons-container div:hover {
    transform: scale(1.1);
    background: gray;
    cursor: pointer;
}

div.cta-button {
    background: #f2f1df;
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: 5px 5px 5px;
    transition: 0.3s;
}
div.cta-button:hover {
    cursor: pointer;
    transform: scale(1.1);
    background-color: gray;
}
div.cta-button a{
    color: black;
    text-decoration: none;
    font-family: 'Nunito', 'sans-serif';
}
.logo-bg img{
    height: 62px;
    width: 62px;
}
/* Background Image */
div.background-image {
    height: 100vh;
    /* max-height: 600px; */
    position: fixed;
    top: 0;
    z-index: -1;
    overflow: hidden;
   
}
div.background-image img{
    width: 100%;
    height: 100vh;
    position: fixed;  
    object-fit: cover;
    object-position: center top;   
}
div.overlay{
    min-height: 100%;
  width: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
div.overlay h2{
    color: white;
    font-size: 3rem;
    font-family: 'Merriweather';
    font-weight: bold;
}
div.overlay h3 {
    color: white;
    font-family: 'Merriweather';
}
div.overlay h2.narro-text {
    margin-top: 5%;
}
div.overlay.narrow {
    justify-content: start !important;
    height: fit-content !important;
    min-height: 35%;
    padding-bottom: 3rem;
}
div.overlay p i, div.overlay p{
    font-family: 'Nunito';
    color: white;
    font-size: 1.2rem;
}
div.overlay h2.large{
    font-size: 3.2rem;
    font-family: 'Merriweather';
}

/* Search */
div.search-bar{
    display: flex;
    justify-content: center;
    gap: 2rem;
    background: #f2f1dfa5;
    padding: 1rem;
    border-radius: 12px;
}
div.search-bar label{
    font-size: 2rem;
    color: rgb(50, 48, 48);
    font-family: 'Nunito';
    
}
div.search-bar input[type=search] {
    width: 300px;
    height: 2.5rem;
    
}
div.search-bar input[type=submit] {
    font-size: 1.4rem;
    background: #f2f1df;
    font-family: 'Nunito';
    transition: 0.3s;
    box-shadow: 3px 3px 5px black;
}
div.search-bar input[type=submit]:hover {
    background-color: gray;
    cursor: pointer;
}
/* View items grid layout */
div.view-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
/* Footer */

footer{
    
    width: 100%;
    background-color: #6d8a55;
    color: white;
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    align-items: center;
    padding-left: 2rem;
    font-family: 'Merriweather';
}
footer a, footer p{
    text-decoration: none;
    color: black;
    transition: 0.3s;
}
footer a:hover{
    color: white;
}
footer svg.footer-icons {
    transform: scale(1.2);
    transition: 0.3s;
}
footer svg.footer-icons:hover {
    transform: scale(1.3);
    fill: white;
}
/*table*/

.standard-table {
    
    border-collapse: collapse;
    font-size: 1.3rem;
    width: 75%; 
    margin-right: auto; 
    margin-left: auto; 
    border: 2px #000000 solid; 
    padding: 1rem;
}
.standard-table th{
    background-color: green;
    padding: 2px;
    color: white;
    
}
.standard-table tr:nth-child(odd){
    background-color: rgb(117, 117, 117);
}
.standard-table tr:nth-child(even){
    background-color: rgb(196, 196, 196);
}
.standard-table th, .standard-table td {
    border: 1px solid white;
    padding: 0.9rem;
}
.standard-form input[type=submit] {
    background: #f2f1df;
    color: black;
    font-family: 'Nunito', 'sans-serif';
    font-size: 1.3rem;
    padding: 0.75rem;
    transition: 0.3s;
}

.standard-form input[type=submit]:hover {
    background: gray;
    cursor: pointer;
    transform: scale(1.1);
}
.standard-form {
    width: 75%;
    min-height: 50%;
    margin-right: auto;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.821);
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-top: 2rem;
    text-align: center;
}
form.standard-form h2 {
    color: rgb(0, 0, 0);
    font-family: 'Merriweather';
}
td.button-a a{
    text-decoration: none;
    background: #f2f1df;
    font-family: 'Nunito';
    color: black;
    padding: 0.3rem;
    font-size: 0.9rem;
    border-radius: 12px;
    box-shadow: 3px 3px 3px black;
    transition: 0.3s;
}
td.button-a a:hover {
    background: gray;
}
/* Delete button */
input[type=submit].btn-delete{
    padding: 0.5rem;
    padding: 0.25rem;
    font-family: 'Nunito';
    background-color: red;
    color: white;
}
/* error div */
div.error-div h2{
    background: white;
    color: black;
    padding: 4px;
    text-align: center;
}
div.error-div p {
    background: white;
    color: red;
    padding: 4px;
    text-align: center;
}
div.error-div a {
    text-decoration:underline;
    color: black;
    transition: 0.3s;
    
}
div.error-div a:hover {
    color: rgb(202, 0, 0);
}
div.error-div h2.success, div.error-div p.success {
    background: white;
    color: green;
}
/* Warning Div*/
div.warning-box{
    margin-top: 3rem;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #6d8a55;
    padding: 0.5rem;
}
div.warning-box span{
    color: white;
    font-family: 'Merriweather';
    padding: 3px;
    display: inline-flex;
    align-items: center;  /* Vertical centering */
    gap: 0.5rem;

}
/* Index Step by Step guide */
div.images-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
div.images-steps > *:only-child {
  grid-column: 1 / -1;       
  justify-self: center;      
}
div.images-steps img{
    width: 350px;
    height: 350px;
}
/*collapsible styling */
.collapsible-toggle {
    margin-top: 1.5rem;
    cursor: pointer;
    user-select: none;
    
}
h2.collapsible-toggle:hover {
    color: #0077cc;
}
.collapsible-toggle::after {
  content: ' ▼';
  font-size: 0.9em;
}
.collapsible-toggle.active::after {
  content: ' ▲';
}
div.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
/* text content */
div.text-content {
    display: flex;
    justify-content:space-between;
    background-color: rgba(0,0,0,0.5);
    width: 100%;
    padding-bottom: 3rem;
    
}


div.text-content > div {
    text-align: center;
    background: rgba(255, 255, 255, 0.821);
    width: 75%;
    margin-right: auto;
    margin-left: auto;
    padding: 2rem;
    
}
div.text-content > div h2, div.text-content > div p {
    color: rgb(69, 69, 69);
}
div.text-content > div p {
    font-size: 1.1rem;
}
div.text-content > div h2 {
    font-size: 2.2rem;
}
div.buttons-container {
    display: flex;
    justify-content:center;
    gap: 1rem;
}

@media only screen and (max-width: 480px) {
    .logo-bg {
        height: 100px;
        width: 100px;
    }
    #buttons-container {
        display: none;
    }
    .ham-menu {
        grid-column-start: 3;
    }
    .off-screen-menu {
        font-size: 2rem;
    }
    .standard-form input[type=submit] {
        font-size: 0.8rem;
    }
    .standard-table {
        font-size: 0.6rem;
        width: 90%;
    }
    form .standard-table tr {
        display: grid;
        grid-template-columns: 1fr;
    }
    div.text-content > div {
        width: 100%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    td.button-a a {
        font-size: 0.6rem;
    }
    div.search-bar label {
        font-size: 1rem;
    }
    div.search-bar input[type=submit] {
        margin-top: 0.5rem;
    }
    div.images-steps {
    display: grid;
    grid-template-columns: 1fr;
}
}
