@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
  }

body {
    text-align: center;
    font-family: Poppins, 'Segoe UI', sans-serif;
    background: whitesmoke;
}

a {
    text-decoration: none;
}

h2{
    font-weight: 500;
}

select {
    min-height: 40px;
}

/* Style the nav bar*/
.navbar {
    /* make it stick */
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    /* in front of all other elements */
    /* set background */
    background-color: whitesmoke;
    border-bottom: 2px solid #e3e3e3;
    padding: 10px 5%;

    /* define flex */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu a{
    text-decoration: none;
    color: #929292;
    margin: 0 20px;
  }

.navbar a:hover{
    color: black;
}

.navbar a.active{
    color: black;
}

.logo-image {
    display: block;
    height: 48px;
}

.nav-menu {
    margin: 0;
    padding: 0;
    list-style-type: none;
    list-style-image: none;
}

.menu-item {
    display: inline-block;
    margin-left: 20px;
}

.bar {
    width: 20px;
    height: 3px;
    background-color: black;
    margin: 4px auto;
}

.menu-icon {
    display: none;
}

.loginbtn {    
    color: white;
    border: none;
    background: linear-gradient(to right,#D786FF, #722CFF);
    font-weight: 600;
    padding: 0.4em 1.5em;
    border-radius: 3em;
    cursor: pointer;
}

.loginbtn:hover {
    color: black;
}

/* style the modal dialog window*/
dialog{
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    float: center;
    border: none;
    overflow: hidden;
    border-radius: 1.5%;
}

/* Style the nav bar on mobile view*/
@media only screen and (max-width: 750px) {
    .navbar {
        flex-direction: column;
    }

    .logo-container {
        width: 100%;
    }

    .mylogin {
        position: absolute;
        margin-top: 10px;
    }

    .nav-menu {
        display: none;
        margin-top: 10px;
        width: 90%;
        background-color: #E5E5E5;
        border-radius: 5px;
    }

    .menu-item {
        display: block;
        width: 90%;
        padding: 5px 0;
        text-align: end;
    }

    .menu-icon {
        display: block;
        position: absolute;
        top: 20px;
        right: 5%;
    }

    .menu-icon:hover .bar {
        background-color: darkcyan;
    }

    .nav-menu {
        display: none;
        width: 100%;
    }
    
    .active {
        display: block;
    }
}

/* Style the nav bar logo on small mobile view*/
@media only screen and (max-width: 520px){
    .logo-image {
    width: 30%;
    }
}


/* Style the footer*/
footer{
    margin-top: 2%;
    font-size: 0.8rem;
    padding: 1%;
    background-color: whitesmoke;
    border-top: 2px solid #c4c1c1;
}
  
.footerIcon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 1%;
}
  
.footerImg {
    font-size: 30px;
    color: rgb(106, 105, 105);
}

.info {
    display: flex;
    align-items: center;
    justify-content: center;    
    padding: 1%;
    gap: 35px;
}

.infoItem {
    font-size: 1rem;
}


/* Create the flex containers*/
.productContainer{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filterContainer{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
}

/* Create one flex items*/
.oneItem{  
    width: 80%;
    max-width: 1340px;
    box-sizing: border-box;
    height: auto;
    margin-bottom: 2%;
    text-align: left;
}

.oneItem2{  
    width: 80%;
    max-width: 1340px;
    box-sizing: border-box;
    border-radius: 10px;
    display: flex;
    height: auto;
    margin-bottom: 2%;
    text-align: left;
    background: white;
}

/* Create two flex items with different width*/
.imgItem {
    width: 30%;
    box-sizing: border-box;
    height: auto;
    border-radius: 10px;
}

.contentItem {
    width: 60%;
    box-sizing: border-box;
    height: auto;
    text-align: left;
    padding: 10px;
    margin-left: 20px;
}

.contentItem p {
    color: gray;
}

.contentItem h3 {
    color: black;
    font-weight: 500;
}

.oneItem2:hover .contentItem h3{
    color: blue;
}

/* Create two flex items with equal width*/
.twoItem{
    width: calc(40%-20px);
    max-width: 600px;
    display: flex;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: white;
    margin-bottom: 2%;    
}

/* Create four flex items with equal width*/
.fourItem{
    width: calc(20%-60px);
    max-width: 320px;
    box-sizing: border-box;
    border-radius: 10px;
    text-align: left;
    min-width: 0;
}

.fourItemText {
    padding: 2%;
}

.fourItem p {
    color: black;
}

/* Style the event flex items */
.eventItems {
    width: calc(40% - 20px);
    max-width: 660px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 2%;
    margin-top: 3%;
    background-color: white;
    border-radius: 10px;
}

.eventContent {
    height: auto;
}

.eventImg {
    width: 50%;
    height: 50%;
    border-radius: 10px;
    margin-bottom: 2%;
}

.eventItems h4, p {
    color: black;
    text-decoration: none;
}

.eventItems:hover h4{
    color: blue;
}

.eventItems {
    display: none;
}
.eventItems.visible {
    display: flex;
}

/* Style the author section */
.authorSection {    
    width: 80%;
    max-width: 1340px;
    display: flex;
    box-sizing: border-box;
    padding: 2%;
    margin-bottom: 2%;
    border-top: 2px solid #c4c1c1;
    border-bottom: 2px solid #c4c1c1;
    text-align: left;
    align-items: flex-start;
}

.authorImg {
    width: 100px;
}

.authorContent {
    margin-left: 5%;
}

.authorLink {
    margin-left: 10px;
    font-size: 30px;
}

/* Style the search bar */
.search-wrapper{
    display: flex;
    width: min(450px, 100%);
    justify-content: left;
    align-items: center;
    border: 1px solid lightgray;
    border-radius: 25px;
    padding: 10px;
    background: white;
}

.searchBar {
    border: none;
    font-size: 14px;
    margin-left: 10px;
    width: min(550px, 100%)
}

.searchBar:focus {
    outline: none;

}

/* Style the drop down box 
.formItem {
    width: min(450px, 100%);
    box-sizing: border-box;
    align-items: center;
    text-align: left;
}

.textBox {
    width: 100%;
    padding: 12px 20px;
    box-sizing: border-box;
    border: 1px solid lightgray;
    border-radius: 5px;
}*/

/* Style the section heading */
.sectionHeading{
    text-align: left;
    font-size: 25px;
    border-bottom: 1px solid gray;
    padding-bottom: 10px;
}

.banner {
    width: 100%;
    border-radius: 10px;
}

/* Style the blog and whitepaper item spans */
.right {
    margin-left: 20%;
}

.hidden {
    display: none;
}

/* Style the filter button on event page*/
.FilterBtn{
    margin-bottom: 10px;
}
  
.btn {
    border: grey;
    outline: none;
    padding: 12px 16px;
    background-color: lightgrey;
    cursor: pointer;
    margin-right: 2%;
}
  
.btn:hover {
    background-color: gray;
    color: white;
}
  
.btn.highlight {
    background-color: gray;
    color: white;
}

/* style the modal dialog window*/
dialog{
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    float: center;
    border: none;
    overflow: hidden;
    border-radius: 1.5%;
}
  
/* style the modal window content*/
.modal-content{
    width: 100%;
    height: 100%;  
}

/* style the button */
.open-modal{
    border: none;
    display: inline-block;
    background: linear-gradient(to right,#00a2ed, blue);
    color: white;
    border-radius: 20px;
    padding: 8px 10px;
    font-weight: 600;    
}

.open-modal:hover{
    cursor: pointer;
}

.more {
    color: blue;
    font-weight: 600;
}

/* style the button to close modal window #00a2ed */
.close-modal{
    float: right;
    color: white;
    background: #0071ff;
    border: none;
    font-weight: bold;
    font-size: 1.5rem;
    padding: 0.2% 0.6% ;
    border-radius: 50%;
    cursor:pointer;
}
  
/* Add hover on button to close modal window*/
.close-modal:hover{
    cursor: pointer;
}

/* Style the Input form design for Registration*/
.inputForm {
    margin: 0 auto;
    width: 80%;
    background: white;
    padding: 2%;
    border-radius: 10px;
}

.formHeading{
    text-align: left;
    border-bottom: 1px solid gray;
    padding-bottom: 5px;
}

.formItem {
    width: 40%;
    box-sizing: border-box;
    align-items: center;
    text-align: left;
}

.textBox {
    width: 100%;
    padding: 12px 20px;
    box-sizing: border-box;
    border: 1px solid lightgray;
    border-radius: 5px;
}

/* Style the spinner*/
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: none;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Create the pagination */
.pagination {
      margin-top: 20px;
      text-align: center;
}
.pageButton {
    padding: 8px 12px;
    margin: 0 5px;
    cursor: pointer;
    border: none;
    background-color: lightgrey;
    border-radius: 5px;
}
.pageButton:hover {
    color: white;
    background-color: gray;
}
.pageButton:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}


/* Style all items width for mobile view*/
@media only screen and (max-width: 750px) {
    .oneItem {
      width: 90%;
   }
   .oneItem2 {
      width: 90%;
      flex-direction: column;
   }
   .twoItem {
    width: 90%;
   }
   .eventItems {
    width: 90%;
   }
   .imgItem {
    width: 100%;
    margin-bottom: 5px;    
   }
   .contentItem {
    width: 90%;
    padding: 3px;
    margin-bottom: 20px;
   }
   .search-wrapper {
    width: 87%;
   }
   .formItem {
    width: 90%;
   }
   .open-modal {
    margin-bottom: 2%;
   }
   .info {
    margin-left: 2%;
    flex-direction: column;
    gap: 10px;
  }
}