* {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    box-sizing: border-box;
    color: #1A1A1A;
   
}

body{
    background-color: #FEFAF6;
}

/* hiding skip to main, and styling it when shown */
.skip-to-content {
    position: absolute;
    top: -400px;
    text-decoration: none;
    font-size: small;
    padding: 10px;
    color: white;
    background-color: #14544E;
    border: 4px solid;
    border-radius: 10px;
  }
  
/* skip to main shown*/
  .skip-to-content:focus {
    position: relative;
    top: 0;
  }


h1, h2, h3 {
    font-family: "Playfair Display", serif;
    
}

h1{
    font-size: 42px;
    color: #702500;
    font-weight: 800;
}

/*underlining current page*/
#underlined{
    text-decoration: underline;
}

/* navigation CSS help from w3schools and stacks overflow*/
nav {
    background-color: #FEFAF6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    margin-left: 50px;
    margin-right: 50px;

}


footer a{
    color: #F2F2F2;
}

footer a:hover{
    color: #ffffff;
}

footer p{
    font-size: 14px;
    color: #FEFAF6;
    margin-left: 35px;
    margin-right: 35px;
    margin-bottom: 0;
}

#footer_c{
    font-size: 12px;
    color: #F0F0EF;
}
#logo {
    width: 30%;
}

#learnmore{

    margin-top: 64px;
}
#learnmore a{
    text-decoration: none;
    padding: 14px;
    padding-left: 40px;
    padding-right: 40px;
    color: white;
    background-color: #14544E;
    border-radius: 5px;
    box-shadow: 2px 2px #1A1A1A;
    
}

#learnmore a:hover{
    background-color: #1b756c;
}

ul[role="menubar"] a:hover {
    color:#14544E;
    text-decoration: underline;

}

ul[role="menubar"] {
    display: flex;

}

ul[role="menubar"] li {
    margin-right: 20px;
    overflow: hidden;
}

ul[role="menubar"] a {
    text-decoration: none;
    color: black;
    display: flex;
    font-size: large;
}

.material-symbols-outlined {
    margin-top: -3px;
}

ul[role="menu"] a:hover {
    color: white;
    text-decoration: underline;
}
ul[role="menu"] {
    display: none;
    position: absolute;
    background-color: #14544E;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 10px 0 10px 0;
    border-radius: 3px;
}

ul[role="menu"] li {
    display: block;
    padding: 10px 0;
}

ul[role="menu"] a {
    padding: 10px;
    text-decoration: none;
    color: white;
}

ul[role="menubar"] li:hover ul[role="menu"] {
    display: block;   
}

.dropdown:hover ul[role="menu"],
.dropdown:focus-within ul[role="menu"] {
    display: block;
}

/* centering paragraphs and headings*/
.text_box{
    text-align: left;
    margin: 100px auto ;
    width: 55%;
}

.text_box_main{
    text-align: center;
    margin: 100px auto ;
    width: 55%;
}

.text_box_main p{
    margin-top: 25px;
    font-size: 18px;
}

.text_box p{
    margin-top: 25px;
    font-size: 18px;
}

/* centering video and images*/
.img_cen{
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

video, audio{
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 55%;
}

footer{
    background-color: #5B7365;
    padding: 32px;
    margin-top: 80px;
}

.media-box h2{
    margin-bottom: 14px;
}

footer p{
    color: white;
    text-align: center;
    padding: 4px;
}

/*form inspired from previous work*/
form{
    display: flex;
    flex-direction: column;
    width: 18em;
  }

/*grid inspired from previous work*/
.grid_container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
  }

  .grid_item {
    margin-bottom: 30px;
    text-align: center;
    
  }


  .grid_container img {
    max-width: 100%;
    height: auto;
    margin-top: 16px;
    margin-bottom: 14px;
  }

  .grid_container p {
    width: 40%;
    margin: auto;
    text-align: left;
  }

  .flex_contact {
    display: flex;
    justify-content: center;
  }


  .flex_contact p{
    margin:5px auto 20px;
  }

  .left,
  .right {
    margin: 10px auto;
  }

  /* styling social media icons*/
  .social-icon {
    display: inline-block;
    margin-right: 15px;
}

.social-icon img {
    width: 50px; 
    height: 50px;
}

#sub_but{
    padding: 8px;
    margin-top: 12px;
    color: white;
    background-color: #14544E;
    border-style: none;
    border-radius: 5px;
    
}



.social-icon img:hover{
    transform: scale(1.2);
}
  

h2{
    font-size: 30px;
    color: #481801;
}

#roast_text{
    margin-top: 12px;
    font-size: 19px;
}

/* styling table*/
table {
    width: 55%; 
    border-collapse: collapse;
    margin: auto;
  }

  th, td {
    border: 1px solid #14544E;
    padding: 16px;
  }

  th {
    background-color: #14544E;
    border: 1px solid white;
    color: white;
    font-weight: bold;
    text-transform:uppercase;
}

#img_roast{
    margin-top: 24px;
    width: 50%;
}

#roast_box{
    text-align: center;
    margin: 100px auto 36px auto ;
    width: 55%;
    border-radius: 20px;
    margin-bottom: 16px;
}

/* styling button, help from MDN and stackoverflow*/
 .expandable-button {
    border: 1px;
    border-radius: 5px;
    background-color: #5a220fe0;
    color: white;
    padding: 10px;
    cursor: pointer;
    display: block;
    margin: 10px auto auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.expandable-button:hover {
    background-color: #5A220F ;
}

.hidden-content {
  padding: 20px;
  display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
text-align: left;
}

.hidden-content p{
    margin: 10px;
}
.time_stamp{
    font-weight: bolder;
}

.media-box{
    text-align: left;
    margin: 100px auto 20px ;
    width: 55%;
}

.tran-end{
    font-weight:bolder;
    padding: 20px;
}


/*window styling inspired from GreatStack tutorial*/
#accept-btn{
    padding: 20px;
    width: 40%;
    border-radius: 20px;
    font-weight: bolder;
    font-size: larger;
}

.popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    display: none;
}

.pop-up {
    background: #fff;
    border-radius: 10px;
    position: absolute;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
    visibility: hidden;
    text-align: center;
    width: 50%;
    padding: 40px;
    margin-top: 60px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
    top: 50%;
    left: 50%;
}

.opened-popup {
    transform: translate(-50%, -50%) scale(1);
    visibility: visible;
    opacity: 1;
    top: 50%;
    background-image: linear-gradient(90deg, #14544E, #5B7365, #14544E);
}

.pop-up h3,
.pop-up p {
    color: white;
}

p{
    line-height: 27px;
}

.button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

.button:hover {
    background-color: #0056b3;
}
footer{
    background-color:#5B7365;
}

/* Media Query for screens with a max-width of 600px (was focused on web, forgot to begin with phone first)*/
@media (max-width: 600px) {
    #logo {
        display: none;
    }

    ul[role="menubar"] {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: auto;
    }

    ul[role="menubar"] a {
        padding: 10px 20px;
    }

    .text_box, #roast_box{
        text-align: center;
        width: 80%;
    }
    .text_box p, #roast_text{
        font-size: 16px;
    }
    h1{
        font-size: 24px;
    }

    h2{
        font-size: 20px;
    }

    h3{
        font-size: 18px;
    }

    p{
        font-size: 16px;
    }

    video, .img_cen, audio{
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    .grid_container {
        grid-template-columns: repeat(1, 1fr);
    }

    .grid_container img{
        width: 50%;
    }

    .grid_container p {
        width: auto;
    }

    #roast-table {
        font-size: 12px;

    }

    form {
        width: 90%; 
        margin-bottom: 50px;
    }

    .social-icon {
        margin-right: 0; 
        margin-bottom: 10px; 
    }
    .flex_contact {
        flex-direction: column; 
        align-items: center; 
    }

    .left,
    .right {
        width: 90%; 
    }
    .opened-popup {
        width: 80%;
    }
}