
/* Insights library (aka BoxFile) */


#insightsLibrarySearch { width: 100%; }
#insightsLibrarySearch .libraryRow { height: fit-content; width: 100%; display: grid; grid-template-columns: 100%; align-items: flex-start; justify-content: flex-start; gap: 20px; padding: 0 0 20px 0; }
#insightsLibrarySearch .optionBox { box-sizing: border-box; width: 100%; min-width: 200px; max-width: 300px; padding: 0 10px; float: left; margin: 0 auto; }
#insightsLibrarySearch .optionBox h2 { font-size: 1.3em; }
#insightsLibrarySearch .optionBox select { display: none; }
#insightsLibrarySearch .optionBox img { width: 36px; margin: 0 auto; clear: left; float: left; }
#insightsLibrarySearch .libraryRow .columns { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 5px; }
#insightsLibrarySearch .libraryRow .columns .row { width: 100%; display: flex; flex-direction: row; align-items: center; justify-content: center; margin: 0; gap: 8px; }


input[type="radio"] { width: 15px; height: 15px; margin: 5px; float: left; clear: both; }
.radLabel { float: left; width: 100px; margin: 3.5px; font-size: 1.1em; }

#ctl00_ContentPlaceHolder_ddlDocumentTypes, #ctl00_ContentPlaceHolder_ddlEvents, #ctl00_ContentPlaceHolder_ddlWhenYear, #ctl00_ContentPlaceHolder_txtKeyword
  { clear: both; margin-top: 5px; border: 1px solid #d0d0d0; padding: 8px 8px; display: inline-block; width: 100%; overflow: hidden; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1); -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; height: 36px; }

.whenLabel { float: left; width: 15%; box-sizing: border-box; text-align: right; margin: 0 0 10px 2%; clear: both; }

.permanentLabel { float: left; }
.permanentGroup { width: 50%; float: left; display: none; }

.selectize-dropdown-content { max-height: 600px; }

#resultsDocs .results { margin-left: 0; }
#resultsDocs h3 { margin-bottom: 20px; color: #757575; }

#resultsDocs { overflow: hidden; font-size: 1.1em; }
#resultsDocs .single { height: 330px; width: 22%; box-sizing: border-box; margin: 0px 4% 40px 0; padding: 0; border: none; }
#resultsDocs .single:nth-child(4n) { margin-right: 0; }
#resultsDocs .single .resultNumber { position: static; width: 100%; float: left; height: 22px; color: black; font-size: 1.1em; padding: 2px; text-align: right; font-weight: bold; }
#resultsDocs .single .documentTitle { clear: both; width: 100%; background-color: #58585a; color: white; overflow: hidden; padding: 5px; text-align: center; height: 3.2em; }
#resultsDocs .single .documentType { clear: both; width: 100%; background-color: #1f8bcb; color: white; overflow: hidden; padding: 5px; text-align: center; min-height: 1em; position: relative; z-index: 1; }
#resultsDocs .single .publicationDate { clear: both; width: 100%; background-color: white; color: #000; overflow: hidden; padding: 5px; text-align: center; min-height: 1em; position: relative; z-index: 1; }

#resultsDocs .single .moreInfo { background-color: #58585a; text-align: center; color: white; padding: 5px; min-height: 1em; position: relative; }
#resultsDocs .single .moreInfo a { color: white; text-decoration: none; }
#resultsDocs .single .moreInfo a:hover { color: #dddddd; }

#resultsDocs .single .thumbnail { position: relative; top: 0; }
#resultsDocs .single .thumbnail > img { position: absolute; right: 50px; right: calc(50% - 90px); bottom: 10px; height: 23px; cursor: pointer; }
#resultsDocs .single .thumbnail > a { display: flex; height: 100%; width: 100%; }
#resultsDocs .single .thumbnail > a > img { position: relative; width: 100%; margin-top: -31px; margin-bottom: -31px; object-fit: cover; object-position: center center; z-index: 0; }

  #resultsDocs .getMoreResults { display: none; clear: both; color: #1f8bcb; font-weight: bold; cursor: pointer; padding: 5px 0px 10px 0px; text-align: center; font-size: 1.2em; margin: 40px auto 80px auto; }

.selectize-dropdown-header { cursor: pointer; }


#searching { background: rgba(0,0,0,0.4); }
#searching div { height: 230px; }

.membersOnlyIcon {
  position: absolute; /* Position icon relative to image-container */
  bottom: 0px; /* Distance from bottom */
  right: 0px; /* Distance from right */
  width: 72px; /* Icon size */
  height: 72px;
  color: #fff; /* Icon color (for SVG stroke) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px; /* Space around icon */
  background-image: url('/assets/POPAI/V2024/images/search-engines/Members-Only-Ribbon_green.png')
}



#footerBar { z-index: 2; background-color: #5b5b5b; color: #ffffff; font-size: 1.2em; height: fit-content; position: fixed; bottom: 0; left: 0; right: 0; text-align: center; padding: 8.5px; display: flex; flex-direction: column; align-items: center; justify-content: space-around; gap: 10px; }
  #tips { cursor: pointer; display: inline-block; width: 80px; background-color: #111111; float: right; margin-right: 0; margin-left: 0; padding: 5px 15px;}
#shareTheseResults { display: none; cursor: pointer; visibility: hidden; background-color: #111111; float: left; margin-left: 0; padding: 5px 15px; }

/* Share overlay styling */
    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    .overlay.active {
      display: flex;
    }

    /* Text box styling */
    .text-box {
      background: #fff;
      border-radius: 8px;
      padding: 15px 20px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      width: fit-content;
      max-width: 80%;
      position: relative;
      display: flex;
      flex-direction: column; /* Stack lorem ipsum and copyable text vertically */
      gap: 10px; /* Space between lorem ipsum and copyable text */
    }

    .text-box .heading {font-size: 24px; font-weight: bold; color: #333333; text-align: center;}

    /* Lorem Ipsum text styling */
    .lorem-text {
      font-family: Arial, sans-serif;
      font-size: 16px;
      color: #666;
      line-height: 1.5;
      max-width: 400px; /* Limit width for readability */
    }

    /* Copyable text container */
    .copyable-container {
      display: flex;
      align-items: center;
      width: fit-content;
      background-color: #eaeaea;
      padding: 5px 10px;
    }

    /* Copyable text styling */
    .txtShareThisLink {
      font-family: Arial, sans-serif;
      font-size: 16px;
      color: #333;
      margin-right: 10px;
      white-space: nowrap;
    }

    /* Copy button styling */
    .copy-btn {
      background: none;
      border: none;
      cursor: pointer;
      padding: 5px;
      display: flex;
      align-items: center;
      transition: transform 0.2s ease;
    }

    .copy-btn:hover {
      transform: scale(1.1);
    }

    /* Copy icon styling */
    .copy-icon {
      stroke: #555;
      transition: stroke 0.2s ease;
    }

    .copy-btn:hover .copy-icon {
      stroke: #007bff;
    }

    .copy-btn.copied .copy-icon {
      stroke: #28a745;
    }

    /* Close button styling */
    .close-btn {
      position: absolute;
      top: -10px;
      right: -10px;
      background: #fff;
      border: none;
      border-radius: 50%;
      width: 24px;
      height: 24px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .close-btn:hover {
      background: #f0f0f0;
    }

    /* Trigger button styling */
    .trigger-btn {
      padding: 10px 20px;
      font-size: 16px;
      background: #007bff;
      color: #fff;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }

    .trigger-btn:hover {background: #0056b3; }



  #resultsDocs .results { display: grid; grid-template-columns: 100%; gap: 10px; }
  #resultsDocs .results .single { margin: 0; padding: 0; width: 100%; height: fit-content; }


@media (min-width: 300px) {
  #resultsDocs .single .thumbnail > a > img { margin-top: -35px; margin-bottom: -35px; }
}

@media (min-width: 350px) {
  #resultsDocs .single .thumbnail > a > img { margin-top: -40px; margin-bottom: -40px; }
}

@media (min-width: 400px) {
  #resultsDocs .single .thumbnail > a > img { margin-top: -45px; margin-bottom: -45px; }
}

@media (min-width: 450px) {
  #resultsDocs .single .thumbnail > a > img { margin-top: -50px; margin-bottom: -50px; }
}


@media (min-width: 500px) {
  #resultsDocs .results { grid-template-columns: repeat(2, calc((100% - 20px) / 2)); column-gap: 20px; }
  #resultsDocs .single .thumbnail > a > img { margin-top: -30px; margin-bottom: -30px; }
  #footerBar { flex-direction: row; }
}


@media (min-width: 555px) {
  #insightsLibrarySearch .libraryRow { grid-template-columns: repeat(2, calc((100% - 20px) / 2)); }
  #resultsDocs .single .thumbnail > a > img { margin-top: -35px; margin-bottom: -35px; }
}

@media (min-width: 650px) {
  #resultsDocs .single .thumbnail > a > img { margin-top: -45px; margin-bottom: -45px; }
}

  @media (min-width: 700px) {
    #resultsDocs .results { grid-template-columns: repeat(3, calc((100% - 40px) / 3)); }
    #resultsDocs .single .thumbnail > a > img { margin-top: -30px; margin-bottom: -30px; }
  }

  @media (min-width: 800px) {
    #insightsLibrarySearch .libraryRow { grid-template-columns: repeat(3, calc((100% - 40px) / 3)); }
    #resultsDocs .single .thumbnail > a > img { margin-top: -40px; margin-bottom: -40px; }
  }
  @media (min-width: 1000px) {
    #resultsDocs .results { max-width: 1200px; margin: 0 auto; grid-template-columns: repeat(4, calc((100% - 60px) / 4)); }
  }


  @media (min-width: 1055px) {
    #insightsLibrarySearch .libraryRow { grid-template-columns: repeat(4, calc((100% - 60px) / 4)); }
  }
