/* css/style.css */

@tailwind base;
@tailwind components;
@tailwind utilities;

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    background-color: #01689b;
    color: white;
    padding: 4rem 0;
}

.audio-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1rem;
}

.audio-container button {
    margin-bottom: 0.5rem;
}

.audio-container audio {
    width: 100%;
}

.source-foldout {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    margin-bottom: 10px;
}

.source-header {
    background-color: #f7fafc;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.source-content {
    padding: 10px;
    display: none;
    background-color: #fff;
}

.source-content.active {
    display: block;
}

.expand-icon {
    transition: transform 0.3s ease;
}

.expand-icon.active {
    transform: rotate(180deg);
}

.switch {
    position: relative;
    display: inline-block;
    width: 2em;
    height: 1em;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .2s;
    border-radius: 1em;
}

.slider:before {
    position: absolute;
    content: "";
    height: 0.8em;
    width: 0.8em;
    left: 0.1em;
    bottom: 0.1em;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #39870c;
}

input:focus+.slider {
    box-shadow: 0 0 0 1px rgba(33, 150, 243, 0.3);
}

input:checked+.slider:before {
    transform: translateX(1em);
}

/* Remove default focus styles */
.switch input:focus {
    outline: none;
}@font-face {
    font-family: 'RO Sans';
    src: url('../fonts/RO Sans Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'RO Sans';
    src: url('../fonts/RO SansWebText Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'RO Serif';
    src: url('../fonts/RO Serif Web Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'RO Serif';
    src: url('../fonts/RO Serif Web Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

html,
body {
    font-family: 'RO Sans', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f3f3f3;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0;
    }

    10%,
    90% {
        opacity: 1;
    }
}

.context-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.context-container:not(.hidden) {
    max-height: 500px; /* Adjust as needed */
}
.scrollable-transcription {
    overflow-y: none;
    width: 100%;
    height: clamp(10em, 20em, 20em);
    max-width: 100%;
    min-width: 100%;
    border: 1px solid #f3f3f3;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;

}

.rijksoverheid-header {
    background-color: white;
    border-bottom: 1px solid #f3f3f3;
}

.video-container {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.rijksoverheid-logo {
    height: 125px;
    width: auto;
}

.rijksoverheid-nav {
    background-color: #01689b;
    color: white;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.rijksoverheid-nav p {
    font-size: 1.6rem;
}

.content-wrapper {
    background-color: #f3f3f3;
}

.editableelement:last-of-type {
    margin-bottom: 10vh;
}

#scrollToBottomBtn {
    position: fixed;
    bottom: 1em;
    right: 1em;
    z-index: 99;
    font-size: 1em;
    border: none;
    outline: none;
    background-color: #01689b;
    color: white;
    cursor: pointer;
    padding: 1em;
    border-radius: 50%;
    transition: opacity 0.3s, visibility 0.3s;
    opacity: 1;
    visibility: visible;
    width: 3em;
    height: 3em;
    display: flex;
    justify-content: center;
    align-items: center;

}

#scrollToBottomBtn:hover {
    background-color: #154273;
}

#scrollToBottomBtn.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }


  .content-wrapper {
    background-color: #f3f3f3;
}

.dropzone-area {
    border: 2px dashed #e2e8f0;
    transition: all 0.3s ease;
}

.dropzone-area:hover,
.dropzone--over {
    border-color: #01689b;
    background-color: #e6f7ff;
}

.file-upload-icon svg {
    width: 48px;
    height: 48px;
}

a:hover {
    text-decoration: underline;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    position: relative; /* Add this */
}
.close {
    color: #aaa;
    position: absolute;
    top: .0;
    right: 0em;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
