@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-italic.woff2') format('woff2');
}


body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background-color: #f4f4f4;
    color: #444;
}

a {
    color: #0072ff;
    text-decoration: none;
}

#cookieBanner {
    position: fixed;
    bottom: 40px;
    left: 40px;
    max-width: 450px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 20px;
    line-height: 1.66rem;
    z-index: 1000;
    display: none;
}

.cookieContent h2 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #333;
}

.cookieContent p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
}

.cookieButtons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#denyCookies {
    background: transparent;
    border: 2px solid #333;
    color: #444;
    padding: 16px;
    width: 50%;
    cursor: pointer;
}

#acceptCookies {
    background: #2563eb;
    border: none;
    color: white;
    padding: 16px;
    width: 50%;
    cursor: pointer;
}

#denyCookies:hover {
    background: #efefef;
}

#acceptCookies:hover {
    background: #1c1f36;
}

#cookieConsentLink {
    display: flex;
    justify-content: center;
    padding: 0 0 1% 0;
}

#cookieConsentLink:hover {
    cursor: pointer;
}

.header {
    background: url('https://dev.granelund.fi/ai/heroBG.webp');
    background-size: cover;
    padding: 100px 20px;
    text-align: center;
    color: white;
    background-position-y: -90%;
}

.header h1 {
    position: relative;
    font-size: 4rem;
    margin: auto;
    max-width: 50%;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    position: relative;
    font-size: 1.2rem;
    margin: 50px auto 0;
    max-width: 50%;
}

h1 {
    margin: 0;
    font-size: 2rem;
}

.underline-effect {
    text-decoration-line: underline;
    text-underline-offset: 6px;
    text-decoration-color: #ff6600;
    text-decoration-thickness: 3px;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 2rem 2rem 3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

input[type="text"] {
    flex: 1;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #c0c0c0;
    border-radius: 4px;
}

input[type="submit"] {
    padding: 0.75rem 1.5rem;
    background: #1c1f36;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
}

input[type="submit"]:hover {
    background-color: #2563eb;
    cursor: pointer;
}

label.labelText {
    margin: 0 0 0 20px;
    display: flex;
    font-size: 0.9em;
    color: #555;
}

label.left {
    float: left;
    position: relative;
    bottom: 15px;
}

label[for="submit"] {
    float: right;
    width: 135px;
    font-size: .75em;
    line-height: 1;
}

#buyMeACoffee {
    margin: 20px 0 0 0;
    zoom: 0.75;
    display: flex;
}

#scanHistory {
    padding: 10px 0 10px 10px;
    color: #c0c0c0;
    font-size: .8em;
    display: inline-flex;
    text-transform: uppercase;
}

span#clearScan {
    float: right;
    color: #c0c0c0;
    font-size: .9em;
    padding: 10px 10px 0 0;
}

span#clearScan:hover {
    cursor: pointer;
}

.historyElement {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    cursor: pointer;
    border-bottom: 1px solid rgb(240, 240, 240);
}

.historyImg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

#scanDropdown {
    display: none; 
    position: absolute; 
    background: #fff;
    border: 1px solid #ccc;
    z-index: 1000;
    max-height: 200px;
    overflow: scroll;
}

.score {
    padding: 8px 12px;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    display: inline-block;
}

.score {
    padding: 4px 8px;
    border-radius: 6px;
    color: #fff;
    font-weight: 400;
    display: inline-block;
    font-size: .7em;
    margin: 0 0 0 10px;
}

/* < 50: Light Red */
.scoreL50 {
    background-color: #f28b82; /* light red */
}

/* 50–59: Soft Orange */
.scoreL60 {
    background-color: #fbbc04; /* warm amber */
}

/* 60–69: Light Yellow */
.scoreL70 {
    background-color: #fff475; /* soft yellow */
    color: #333; /* better contrast */
}

/* 70–79: Pale Lime */
.scoreL80 {
    background-color: #ccff90; /* pale lime */
    color: #333;
}

/* 80–89: Light Green */
.scoreL90 {
    background-color: #a7ffeb; /* mint green */
    color: #333;
}

/* 90–100: Soft Green */
.scoreL100 {
    background-color: #81c995; /* soft green */
}

/* Fallback for invalid or out-of-range scores */
.scoreOther {
    background-color: #e0e0e0; /* neutral gray */
    color: #333;
}

#underFormContent {
    height: 30px;
}

#exampleContainer {
    display: inline-flex;
    font-size: .9em;
    color: #0072ff;
    margin: 0 0 0 10px;
    width: 70%;
}

#exampleContainer span:hover {
    cursor: pointer;
}

#examples {
    display: none;
    transition: max-height 0.5s ease-out;
    margin: 0 0 0 10px;
}

#examples.show {
    max-height: 50px; /* Adjust based on content height */
}

#examples a {
    color: #ffffff;
    background: #1c1f37;
    padding: 10px 20px;
    display: inline-flex;
    text-decoration: none;
    border-radius: 4px;
}

#examples a:hover {
    background: #2563eb;
}

#faviconContainer {
    display: none;
}

.result-item {
    display: flex;
    padding: 1rem 0;
    align-items: flex-start;
}

#resultItemContainer .result-item:first-of-type {
    padding: 0 0 1rem 0;
}

.result-item img {
    max-width: 100px;
    margin: 0 1.5rem .5rem 0;
    border-radius: 8px;
    border: 1px solid #c0c0c0;
    padding: 1%;
}

img.websiteThumbnail {
    width: 50%;
    border: 1px solid #c0c0c085;
}

.result-item div {
    padding: 5px 0 0 0;
}

span.toggleLink {
    color: #888;
    font-size: .9em;
    margin: 5px 0 0 0;
}

#crawlableContent {
    margin: 10px 0 0 0
}

#crawlableContent .tooltip i.fa {
    font-size: 1.2em;
}

#crawlableContent .tooltip-content {
    top: 50%;
    font-size: 1em;
}

span.toggleLink:hover {
    cursor: pointer;
}

.moreInfo {
   font-size: .9em;
}

.moreInfo div {
    margin: 10px 0 15px 0;
}

#moreInfo span {
    font-size: 1em;
}

table#crawlContentInfo {
    text-align: left;
    border-collapse: collapse;
}

#crawlContentInfo {
    display: block;
    height: 200px;
    overflow: hidden;
}

#crawlContentInfo.expanded {
    height: auto;
    filter: none;
}

.show-more-link {
    display: inline-block;
    color: #0072ff;
    cursor: pointer;
    margin: 5px 0 0 5px;
}

div.showMoreDots {
    height: 75px;
    background: rgba(255, 255, 255, 0.33);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    top: -75px;
    margin-bottom: -75px;
}

span.scanLabel {
    margin: 1% 20px 1% 1.25%;
    display: flex;
}

span.scanValue {
    display: flex;
}

table#crawlContentInfo tr th:last-of-type {
    padding: 0;
}

table#crawlContentInfo tbody tr:nth-child(odd) {
    background: #efefef;
}

table#crawlContentInfo tbody {
    display: table;
    width: 100%;
}

table#crawlContentInfo tr th {
    padding: 1.25% 0 1.25% 1.25%;
    background: #0072ff;
    color: #fff;
    font-size: 1.1em;
}

div#featureLinks {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    text-decoration: none;
    border-top: 1px solid #c0c0c0;
    padding: 2% 0;
    margin: 2.5% 0;
}

a#shareLink {
    margin: 0 20px 0 0;
}

a#exportLink, a#shareLink {
    color: #0072ff;
    font-size: .9em;
    z-index: 1;
}

.fa-clone {
    color: #fff;
    font-size: 1.25em;
}

#shareLinkInput a {
    position: relative;
    right: 40px;
    top: 10px;
}

#shareLinkInput input[type="text"] {
    width: 350px;
    font-size: .9em;
    margin: 0 10px 0 0;
    background: #333;
    color: #fff;
    border: 0;
    padding: 0.75rem 2.5rem 0.75rem 0.75rem;
}

a#exportLink:hover, a#shareLink:hover, #shareLinkInput a:hover {
    cursor: pointer;
}

#copyMessage {
    display: none;
    margin: 10px 0 0 -12.5px;
    font-size: .9em;
}

#shareLinkInput {
    display: none;
    position: relative;
    top: -30px;
}

.status {
    font-weight: bold;
}

.status i.fa.fa-question-circle {
    color: #1c1f36;
    margin: 0 0 0 5px;
    font-size: 1.1em;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip span {
    text-decoration: underline;
}

.tooltip .tooltip-content {
    visibility: hidden;
    font-weight: 400;
    width: 220px;
    background-color: #1c1f36;
    color: #fff;
    text-align: left;
    padding: 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    top: 100%; /* adjust below the element */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: .9em;
}

.tooltip:hover .tooltip-content,
.tooltip .tooltip-content:hover {
    visibility: visible;
    opacity: 1;
}

.tooltip:focus .tooltip-content,
.tooltip .tooltip-content:focus {
    visibility: visible;
    opacity: 1;
}

.error {
    color: #dc2626;
    font-weight: bold;
}

.success {
    color: #16a34a;
    font-weight: bold;
}

#loader, #loaderExport {
    display: none;
    text-align: center;
    margin-top: 5rem;
}

.spinner, .spinnerExport {
    margin: 0 auto 0.5rem;
    width: 30px;
    height: 30px;
    border: 4px solid #ccc;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}


.success.inline {
    display: inline;
}

#resultCompatibleContainer {
    margin: 2.5% 0;
}

.accordion {
    background-color: #fff;
    cursor: pointer;
    padding: 1rem 0;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
    color: #444;
}

.panel {
    padding: 0 1rem;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-left: 2px solid #ccc;
}

.panel ul li ul li {
    line-height: 0;
}

ul#libraries li {
    line-height: 0;
}

.accordion::after {
    content: ""; /* arrow symbol */
    font-size: 0.9rem;
    float: right;
    transition: transform 0.3s ease;
    display: inline-block;
    width: 10px;
    height: 10px;
    border-style: solid;
    border-width: 2px 2px 0 0;
    border-color: #a8a8a8;
    transform: rotate(134deg);
    margin: 0 20px;
}

.accordion.active::after {
    transform: rotate(314deg); /* rotate arrow when open */
}

div#faq {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#faq div.panel ul li {
    margin: 30px 0 0 0;
}

#faq div.panel ul li p {
    margin: 5px 0 0 0;
}

div#creds {
    display: flex;
    justify-content: center;
    color: #555;
}

div#creds img {
    max-width: 20px;
    margin: 0 0 0 5px;
    position: relative;
    top: 2.5px;
}

@media screen and (max-width: 700px) {
    .header {
      padding: 100px 0px;
    }
    .header h1 {
        font-size: 3rem !important;
        max-width: 90% !important;
    }
    .header p {
        max-width: 75%;
    }
    #underFormContent {
        display: none;
    }
    #scanDropdown {
        width: 85% !important;
    }
    #featureLinks {
        justify-content: space-between !important;
        padding: 5% 0 5% 1% !important;
    }
    #shareLinkInput {
        top: 0;
        width: 100%;
    }
    #shareLinkInput input[type="text"] {
        margin: 0px 10px 50px 0;
    }
    #loaderExport {
        margin-top: 2.5rem;
        margin-bottom: 5rem;
    }
}