/* #region everything */
body {
    margin: 0;
    background-color: white;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: black;
}

main {
    min-height: 100vh;
    margin: 0 auto;
    margin-top: 80px; 
    width: 90%;
}

html, body {
  overflow-x: hidden;
}

html {
  scrollbar-gutter: stable;
}

main h1 {
    font-size: 24px;
}

main h2 {
    font-size: 21px;
}

a {
    text-decoration: none;
    cursor: pointer;
    color: inherit;
}

.about-contact-advertise-explicit-links {
    color: navy;
    text-decoration: underline;
    font-weight: bold;
}

.about-contact-advertise-explicit-links:hover {
    color: rgb(2, 131, 141); 
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    color: inherit;
    background: none;
}

article img {
    max-width: 100%;
    aspect-ratio: 900 / 600; 
    height: auto; 
    display: block;
    object-fit: cover;
    object-position: 50% 50%;
    border-radius: 5%;
}

article h1 {
    font-size: 28px;
}

article ul {
    list-style-type: disc;
}

article table {
    border-collapse: collapse; 
    width: 100%; 
    border: 1px solid black;
}

article table th {
    border: 1px solid black; 
    padding: 1%; 
    text-align: center;
}

article table td {
    border: 1px solid black; 
    padding: 1%; 
    text-align: center;
}

article .sticky-notes {
    padding: 5%; 
    border: 1px solid gray; 
    background-color: #e7e7e7;
}

.no-indent {
    padding-left: 5%;
    list-style-position: outside; 
    list-style-type: decimal;
}

.no-indent li h2 {
    display: block;
}

.bolded-list-style-type li::marker {
    font-weight: bold;
    font-size: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* #endregion */

/* #region header-part */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 2.5%;
    padding-right: 2.5%;
    background-color: navy;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;  
    z-index: 100000;
}

header button:hover, header a:hover {
    color: orange;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
}

.header-centre {
    display: none;
}

.header-centre a {
    font-weight: bold;
    text-align: center;
}

.hamburger button {
    font-size: x-large;
    border: none;
    margin-right: 0.3em;
}

.header-logo a {
    font-size: x-large;
    font-weight: bold;
}

.search-box button {
    border: none;
}

.header-subscribe button {
    border-radius: 30%;
    border: 2px solid white; 
    background-color: transparent; 
    font-size: small;
    margin-left: 0.5em;
}

.header-subscribe button:hover {
    border-color: orange;
}
/* #endregion */

/* #region subscribe-popup */
.modal {
    display: none; 
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.5);
}

.modal-popup {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.modal-content {
    background: #dde9fc;
    border-radius: 5%; 
    position: relative;
    width: 80%;
}

.actual-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    text-align: center;
    padding-top: 30px;
    padding-left: 1%;
    padding-right: 1%;
}

.actual-modal-content form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.actual-modal-content h3 {
    font-size: x-large;
    margin-bottom: 0;
}

.actual-modal-content .subscription-form-caption {
    margin-top: 10px;
    font-size: large;
    margin-bottom: 30px;
}

.modal-content .close {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: black;
    background-color: rgb(2, 131, 141);
    border: 2px solid black;
    border-top: none;
    border-right: none;
    border-top-right-radius: 50%;
    position: absolute;
    top: 0;
    right: 0;
    height: 50px;
}

.actual-modal-content #loading-spinner {
    display: none;
    margin-top: 10px;
}

.actual-modal-content .spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid navy;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    animation: spin 1s linear infinite;
    margin: auto;
}

.actual-modal-content input {
    width: 80%;
    padding: 10px;
    border: 2px solid black;
    margin-bottom: 25px;
    font-size: medium; 
}

.actual-modal-content #submit-subscribe {
    background-color: rgb(2, 131, 141);
    color: black;
    font-weight: bold;
    font-size: large;
    width: 50%;
    padding-top: 10px;
    padding-bottom: 10px;
    border: 2px solid black; 
    border-radius: 10%;
}

.actual-modal-content #thank-you-message {
    display: none; 
    color: navy; 
    font-weight: bolder;
    font-size: x-large;
    margin-bottom: 40px;
    margin-top: 0;
}

.actual-modal-content #thank-you-message:focus {
    outline: none;
}

.actual-modal-content #already-subscribed {
    display: none; 
    color: navy; 
    font-weight: bolder;
    font-size: x-large;
    margin-bottom: 40px;
    margin-top: 0;
}

.actual-modal-content #already-subscribed:focus {
    outline: none;
}

.actual-modal-content #email-error {
    display: none; 
    color: red;
    font-size: small;
    margin-top: -15px;
    margin-bottom: 20px;
}

.actual-modal-content .privacy-important-caption {
    margin-bottom: 30px;
}

.actual-modal-content #submit-subscribe:hover {
    border-color: navy;
    background-color: navy;
    color: white;
}

.modal-content .close:hover {
    border-color: navy;
    background-color: navy;
    color: white;
}

body.modal-open {
  overflow: hidden;
  height: 100vh;
}
/* #endregion */

/* #region hamburger-menu */
.hamburger-menu {
    position: fixed;
    left: -100%; 
    width: 100%;
    height: 100%;
    background-color: #dde9fc;
    z-index: 999;
    overflow-y: auto;     
    overflow-x: hidden;
    transition: left 0.3s ease;
}

.hamburger-menu.active {
    left: 0; 
}

.hamburger-menu a {
    margin-left: 5%;
    margin-right: 5%;
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.hamburger-menu a:hover {
    color: rgb(2, 131, 141);
}

.hamburger-menu hr { 
    border: none; 
    height: 1px; 
    background-color: rgb(180, 180, 180);
}

.hamburger-menu .search-bar {
    display: flex;
}

.hamburger-menu .search-bar input {
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 5px;
    flex-grow: 1;
    height: 20px;
    margin-left: 5%;
    font-size: medium;
}

.hamburger-menu .search-bar button {
    margin-top: 30px;
    margin-bottom: 20px;
    height: 34px;
    width: 20%;
    margin-right: 5%;
    background-color: rgb(2, 131, 141);
    border: 2px solid black;
    font-size: medium;
}

.hamburger-menu .search-bar button:hover {
    background-color: navy;
    color: white;
    border-color: navy;
}

#suggestions-container-menu {
    position: absolute; 
    width: 80%; 
    display: none;
    overflow-y: auto;
    border: 1px solid #ccc;
    background-color: white;
    z-index: 10;
    border-radius: 1%;
    margin-top: -15px;
    margin-left: 5%;
}

.suggestion-item-menu {
    padding: 15px 3%;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item-menu:hover {
    background-color: #f0f0f0;
}

.hamburger-menu .about-contact-advertise-hamburger {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-left: 5%;
    margin-right: 5%;
    column-gap: 5%;
    row-gap: 20px;
    margin-top: 30px;
    margin-bottom: 5px;
}

.hamburger-menu .about-contact-advertise-hamburger a {
    font-weight: normal;
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;            
    justify-content: center;   
    align-items: center;
}

.hamburger-menu .follow-us-on-hamburger {
    margin-bottom: 50px;
    margin-top: 30px;
    background-color: rgb(2, 131, 141);
}

.hamburger-menu .follow-us-on-hamburger p {
    text-align: center;
    font-weight: bold;
    padding-top: 20px;
}

.hamburger-menu .follow-us-on-hamburger-icons {
    display: flex;
    flex-wrap: wrap;
    min-height: 100px; 
}

.hamburger-menu .follow-us-on-hamburger-icons a {
    font-size: x-large;
    color: black;
    transition: all 0.3s ease;
}

.hamburger-menu .follow-us-on-hamburger-icons a:hover {
    color: orange;
    transform: scale(1.15);
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
}
/* #endregion */

/* #region in-article-toc */
.in-article-toc details {
    border: 1px solid #ddd;
    border-radius: 5%;
    background-color: #f2f7ff;
    padding-top: 1%;
    padding-bottom: 1%;
    padding-left: 2.5%; 
    padding-right: 8%;
}

.in-article-toc summary {
    list-style: none;
    cursor: pointer;
    font-size: large;
    font-weight: bold;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.in-article-toc summary:hover {
  color: rgb(2, 131, 141);
}

.in-article-toc summary::-webkit-details-marker, .in-article-toc summary::marker {
  display: none;
}

.in-article-toc summary::before {
    order: 2; 
    flex-shrink: 0; 
    font-size: xx-large;
    text-align: right;
    content: '+'; 
}

.in-article-toc details[open] summary::before {
  content: '-';
}

.in-article-toc ul {
  margin-top: 10px;
}

.in-article-toc a {
    display: block; 
    margin-bottom: 15px; 
    color: blue;
    text-decoration: none;
}

.in-article-toc a:hover {
  text-decoration: underline;
}
/* #endregion */

/* #region subscribe-article */
.modal-article {
    background-color: #dde9fc;
    border-radius: 5%; 
    margin-top: 20px;
    margin-bottom: 50px;
    display: flex;
    align-items: center; 
    justify-content: center;
    text-align: center;
}

.actual-modal-content-article {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    text-align: center;
    padding-top: 15px;
    padding-left: 3%;
    padding-right: 3%;  
}

.actual-modal-content-article form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.actual-modal-content-article h3 {
    font-size: x-large;
    margin-bottom: 0;
}

.actual-modal-content-article .subscription-form-caption-article {
    margin-top: 10px;
    font-size: large;
    margin-bottom: 30px;
}

.actual-modal-content-article #loading-spinner-article {
    display: none;
    margin-top: 10px;
}

.actual-modal-content-article .spinner-article {
    border: 3px solid #f3f3f3;
    border-top: 3px solid navy;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    animation: spin 1s linear infinite;
    margin: auto;
}

.actual-modal-content-article input {
    width: 80%;
    padding: 10px;
    margin-bottom: 25px;
    border: 2px solid black;
}

.actual-modal-content-article #submit-subscribe-article {
    background-color: rgb(2, 131, 141);
    color: black;
    font-weight: bold;
    font-size: large;
    width: 50%;
    padding-top: 10px;
    padding-bottom: 10px;
    border: 2px solid black; 
    border-radius: 10%;
}

.actual-modal-content-article #thank-you-message-article {
    display:none; 
    color:navy; 
    font-weight: bolder;
    font-size: x-large;
    margin-bottom: 40px;
    margin-top: 0;
}

.actual-modal-content-article #thank-you-message-article:focus {
    outline: none;
}

.actual-modal-content-article #already-subscribed-article {
    display:none; 
    color:navy; 
    font-weight: bolder;
    font-size: x-large;
    margin-bottom: 40px;
    margin-top: 0;
}

.actual-modal-content-article #already-subscribed-article:focus {
    outline: none;
}

.actual-modal-content-article #email-error-article {
    display: none; 
    color: red;
    font-size: small;
    margin-top: -15px;
    margin-bottom: 20px;
}

.actual-modal-content-article .privacy-important-caption-article {
    margin-bottom: 30px;
}

.actual-modal-content-article #submit-subscribe-article:hover {
    border-color: navy;
    background-color: navy;
    color: white;
}
/* #endregion */

/* #region search-results */
.main-search-container {
    display: flex;
    align-items: center;
    border: 2px solid grey;
    border-radius: 5%;
    padding: 5px;
    margin-top: 20px;
}

.main-search-container:hover {
    border: 3px solid rgb(2, 131, 141);
}

.main-search-container input {
    flex-grow: 1;
    font-size: medium;
    padding: 5px;
    border: none;
    outline: none;
    height: 20px;
}

#clear-search-btn {
    color: grey; 
    height: 35px;
    border: none;
    margin-right: 2%;
    margin-left: 1.5%;
    width: fit-content;
    font-size: large;
}

#clear-search-btn:hover {
    color: navy;
}

#main-go-btn {
    background-color: rgb(2, 131, 141);
    border-radius: 10%;
    height: 35px;
    width: 15%;
    font-size: large;
    border: 2px solid black;
}

#main-go-btn:hover {
    background-color: navy;
    color: white;
    border-color: navy;
}

.search-status {
    text-align: center;
}

.result-card {
    background-color: #f2f7ff;
    border: 1px solid grey;
    padding-left: 3%;
    padding-top: 1%;
    padding-bottom: 1%;
    border-radius: 5%;
    margin-bottom: 20px;
}

.result-card:hover {
    border: 3px solid black;
}

.result-card-description {
    color: grey;
}

.result-card-title {
    font-weight: normal;
    color: rgb(2, 131, 141);
}

mark {
    font-weight: bolder;
    background: none;
}

#suggestions-container {
    position: absolute; 
    width: 90%; 
    display: none;
    overflow-y: auto;
    border: 1px solid #ccc;
    background-color: white;
    z-index: 10;
    border-radius: 1%;
    margin-top: 5px;
}

.suggestion-item {
    padding: 15px 3%;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}
/* #endregion */

/* #region share-this-article */
.share-this-article {
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    margin-left: 5%;
    margin-bottom: 40px;
}

.share-this-article p {
    font-weight: bold;
    margin-right: 10px;
}

.share-this-article button:hover {
    color: rgb(2, 131, 141);
    transform: scale(1.15);
}

.share-this-article button {
    background: none;
    border: none;
}

.copied {
    margin-top: 12px;
    font-size: small;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copied.show {
    opacity: 1;
}
/* #endregion */

/* #region faq-section */
.faq-section details {
    border: 0.1px solid grey;
    border-radius: 10%;
    background-color: #f2f7ff;
    padding-top: 3%;
    padding-bottom: 3%;
    padding-left: 4%; 
    padding-right: 5%;
    margin-bottom: 15px;
}

.faq-section summary {
  list-style: none;
  cursor: pointer;
  font-size: large;
  font-weight: bold;
  display: flex;
  justify-content: space-between; 
  align-items: center;
}

.faq-section summary:hover {
  color: rgb(2, 131, 141);
}

.faq-section summary::-webkit-details-marker, .faq-section summary::marker {
  display: none;
}

.faq-section summary::before {
  order: 2; 
  flex-shrink: 0; 
  font-size: x-large;
  text-align: right;
  content: '+'; 
}

.faq-section details[open] summary::before {
  content: '-';
}
/* #endregion */

/* #region recommended */
.recommended hr {
    height: 1px;
    background-color: black;
    margin-top: -15px;
    margin-bottom: 10px;
}

.recommended {
    margin-top: 20px;
}

.recommended .recommended-completes {
    display: grid;
    grid-template-columns: 1fr;
}

.recommended .recommended-completes figure {
    margin-left: 0;
    margin-right: 0;
    background-color: #dde9fc;
    border-radius: 5%;
}

.recommended .recommended-completes figure img {
    max-width: 100%;
    aspect-ratio: 900 / 600; 
    height: auto; 
    display: block;
    object-fit: cover;
    object-position: 50% 50%;
    border-radius: 5% 5% 0 0;
}

.recommended .recommended-completes figure img:hover {
    opacity: 0.75;
}

.recommended .recommended-completes figure div {
    padding-left: 2.5%;
    margin-top: -4px;
    margin-bottom: 20px;
    padding-top: 0.5px;
    padding-bottom: 0;
}

.recommended .recommended-completes figure div h2:hover {
    color: rgb(2, 131, 141);
}
/* #endregion */

/* #region sources-list */
.sources {
    margin-top: 30px;
    margin-bottom: 50px;
}

.sources details {
    border: 1px solid #ddd;
    border-radius: 7.5%;
    background-color: #f2f7ff;
    padding-top: 1.5%;
    padding-bottom: 1.5%;
    padding-left: 4%; 
    padding-right: 5%;
}

.sources details ul {
    list-style-type: decimal;
}

.sources summary {
    list-style: none;
    cursor: pointer;
    font-size: large;
    font-weight: bold;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.sources summary:hover {
  color: rgb(2, 131, 141);
}

.sources summary::-webkit-details-marker, .sources summary::marker {
    display: none; 
}

.sources summary::before {
    font-size: x-large;
    order: 2; 
    flex-shrink: 0; 
    text-align: right;
    content: '+'; 
}

.sources details[open] summary::before {
    content: '-';
}

.sources a {
    display: block; 
    margin-bottom: 15px; 
    color: blue;
    text-decoration: none;
}

.sources a:hover {
    text-decoration: underline;
}
/* #endregion */

/* #region how-we-reviewed */
.how-we-reviewed {
    margin-left: 5%;
    margin-right: 5%;
    padding-bottom: 10px;
}

.how-we-reviewed .how-we-reviewed-notes {
    margin-top: -12.5px;
}

.how-we-reviewed .actual-name {
    font-weight: bold;
    font-size: small;
}

.how-we-reviewed .written-by {
    margin-top: 25px;
}

.how-we-reviewed h3 {
    margin-top: 25px;
}

.how-we-reviewed div {
    margin-left: 10%;
    margin-bottom: 25px;
}
/* #endregion */

/* #region follow-us-on */
.follow-us-on {
    background-color: rgb(2, 131, 141);
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 5%;
    padding-right: 5%; 
    margin-top: 40px;  
}

.follow-us-on p {
    text-align: center;
    font-weight: bold;
}

.follow-us-on-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10%;
}

.follow-us-on-icons a {
    font-size: x-large;
    transition: all 0.3s ease;
}

.follow-us-on-icons a:hover {
    color: orange;
    transform: scale(1.15);
}
/* #endregion */

/* #region footer */
footer {
    background-color: navy;
    color: white;
    padding-top: 30px;
    padding-bottom: 50px;
}

footer a:hover {
    color: orange;
}

footer .footer-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: x-large;
    font-weight: bold;
    margin-bottom: 35px;
}

footer .footer-logo img {
    margin-bottom: 10px;
}

footer .about-contact-advertise-footer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-left: 5%;
    margin-right: 5%;
    column-gap: 5%;
    row-gap: 20px;
}

footer .about-contact-advertise-footer a {
    text-align: center;
    font-size: small;
}

footer .footer-medical-disclaimer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-left: 5%;
    margin-right: 5%;
}
/* #endregion */

@media screen and (min-width: 991px) {
    main {
        width: 60%;
        margin-left: 10%;
        margin-right: 30%;
        margin-top: 90px;
    }
    .no-indent {
        padding-left: 2.5%;
    }
    #suggestions-container {
        width: 50%; 
    }
    .modal-content {
        width: 50%;
    }
    .actual-modal-content input {
        font-size: large;
    }
    header {
        display: flex;
        align-items: center;
        justify-content: space-around;
    }
    .header-centre {
        display: flex;
        flex-grow: 1;
        align-items: center;
        justify-content: space-around;
    }
    .hamburger button {
        font-size: xx-large;
    }
    .header-logo a {
        font-size: xx-large;
    }
    .header-subscribe button {
        font-size: medium;
    }
    .hamburger-menu {
        width: 50%;
    }
    .hamburger-menu .search-bar input, .hamburger-menu .search-bar button {
        font-size: large;
    }
    .follow-us-on {
        padding-bottom: 30px; 
    }
    .follow-us-on-icons {
        display: flex;
        justify-content: center;
        gap: 5%;
    }   
    footer .about-contact-advertise-footer {
        grid-template-columns: repeat(6, 1fr);
        column-gap: 2.5%;
    }
    footer .about-contact-advertise-footer a {
        font-size: medium;
    }
    .modal-article {
        width: 50%;
        margin-left: auto;
        margin-right: auto;
    }
    .recommended .recommended-completes {
        column-gap: 5%;
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media screen and (max-width: 990px) {
    .follow-us-on-icons {
        min-height: 100px;
    }
    article table {
        display: block;    
        overflow-x: auto;  
    }
    article table th, article table td {
        white-space: nowrap; 
    }
}
