/* ===========================
   Global Styles
   =========================== */
body {
    margin: 0;
    font-family: Georgia, sans-serif !important;
    background-color: #f2f2f2;
    color: #333;
}

html, body {
    overflow-x: hidden;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    color: #333;
}

/* Utility classes for toggling visibility */
.visible {
    display: block !important;
}

.hidden {
    display: none !important;
}

.content {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Headings */
h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    text-align: left;
    margin-top: 10px;
}

input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 10px;
}

button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

button:hover {
    background-color: #218838;
}

p {
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-top: 10px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    margin-top: 15px;
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.contact-form button:hover {
    background-color: #004494;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger-menu .bar {
    height: 3px;
    width: 25px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s;
}

/* ===========================
   Navigation Bar Styles
   =========================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    height: 50px;
    box-sizing: border-box;
}

.navbar .logo {
    height: 30px;
}

.navbar .navbar-left a,
.navbar .navbar-center a,
.navbar .navbar-right a {
    color: #fff;
    text-decoration: none;
    margin: 10px 10px;
}

/* Search Form Styles */
.navbar .search-form {
    position: relative;
    display: inline-block;
    background: transparent;
    margin: 10px 0 0 0;
    padding: 0;
    border: none;
}

.search-form input[type="text"] {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 5px 40px 5px 10px;
    font-size: 14px;
    height: 20px;
    width: 200px;
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: #007BFF;
}

.search-form .search-icon {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    padding: 0;
}

.search-form .search-icon:focus {
    outline: none;
}

/* ===========================
   Dropdown Styles
   =========================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .dropbtn {
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    background-color: #007BFF;
    padding: 8px 15px;
    border: none;
    border-radius: 3px;
    font-family: Georgia, serif !important;
}

.dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    color: #333;
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 5px 0;
}

.dropdown .dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

.dropdown .dropdown-content a:hover {
    background-color: #f0f0f0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ===========================
   Authentication Buttons in Navbar
   =========================== */
.navbar .user-account {
    display: flex;
    gap: 10px;
    align-items: center;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.auth-btn {
    text-decoration: none;
    color: #fff;
    background-color: #007BFF;
    padding: 8px 15px;
    border-radius: 3px;
    font-size: 14px;
}

.auth-btn:hover {
    background-color: #0056b3;
}

.signup-btn {
    background-color: #28a745;
}

.signup-btn:hover {
    background-color: #218838;
}

/* ===========================
   Featured SPoL Section Styles
   =========================== */
.featured-spol {
    padding: 10px;
    background-color: #fff;
    margin: 20px;
}

.featured-spol h2 {
    text-align: center;
    margin-bottom: 20px;
}

.featured-spol .spol-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.featured-spol .spol-item {
    flex: 1 1 300px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    background-color: #333;
    color: #f9f9f9;
    box-sizing: border-box;
}

.spol-item-image {
    width: 200%;
    height: 200px;
    overflow: visible;
    margin-bottom: 0;
}

.spol-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.spol-item p {
    margin-top: 0;
    margin-bottom: 10px;
}

/* ===========================
   Countries Section Styles
   =========================== */
.countries {
    padding: 20px;
    background-color: #f5f5f5;
}

.countries h2 {
    text-align: left;
    margin-bottom: 20px;
    margin-left: 20px;
}

.countries .country-list {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 20px;
    text-align: left;
}

.countries .country-list li {
    margin: 5px 0;
}

.countries .country-list li a {
    text-decoration: none;
    color: #007BFF;
    font-size: 16px;
    padding: 0;
    margin: 0;
}

/* More Countries Dropdown */
.dropdown.more-countries {
    position: relative;
    display: inline-block;
    padding: 0 0 20px 20px;
    margin-bottom: 20px;
}

.dropdown.more-countries .dropbtn {
    cursor: pointer;
    font-size: 16px;
    color: #007BFF;
}

.dropdown.more-countries .dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    color: #333;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    top: 100%;
    left: 0;
}

.dropdown.more-countries:hover .dropdown-content {
    display: block;
}

.dropdown.more-countries .dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

.dropdown.more-countries .dropdown-content a:hover {
    background-color: #f0f0f0;
}

/* Back icon styling */
.back-icon a {
    font-size: 16px;
    color: #007BFF;
    text-decoration: none;
}
.back-icon a:hover {
    text-decoration: underline;
}

/* ===========================
   Embedded Media Styles
   =========================== */
.embed-media {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

.embed-media iframe,
.embed-media video,
.embed-media audio {
    width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   SPoL Detail Page Styles
   =========================== */
.spol-detail {
    padding: 20px;
    background-color: #fff;
    margin: 20px;
    position: relative;
}

.spol-detail h1 {
    margin-bottom: 20px;
}

.spol-item img {
    width: 50%;
    height: 150px;
    object-fit: cover;
}

.spol-detail img {
    width: 50%;
    max-height: 250px;
    object-fit: cover;
}

.img-container {
    width: 300px;
    height: calc(300px * 9 / 16);
    overflow: hidden;
    margin: 0 auto;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tags {
    margin-bottom: 20px;
}

.tag {
    background-color: #007BFF;
    color: #fff;
    padding: 5px 10px;
    margin-right: 5px;
    border-radius: 3px;
}

/* SPoL content container */
.spol-content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.native-text,
.translation-text {
    flex: 1;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 3px;
    background-color: #f9f9f9;
}

/* Translation Toggle Button */
.translation-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
}

.translation-toggle button {
    padding: 5px 10px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.translation-toggle button:hover {
    background-color: #218838;
}

/* Translation Container */
.translation-container {
    flex: 1;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 3px;
    background-color: #f9f9f9;
}

/* ===========================
   Form Styles (Login, Register, etc.)
   =========================== */
form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea,
form select {
    width: 90%;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

form button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

form button:hover {
    background-color: #0056b3;
}

/* Success and error messages */
.success {
    color: #28a745;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.error {
    color: #dc3545;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.error-messages p {
    margin: 0;
}

/* Padding for the SPoL list container */
.spol-list {
    padding: 20px;
}

/* Country explore heading */
.country-explore-heading {
    padding: 20px 0 10px 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
    text-align: left;
}

/* ===========================
   Home Hero Section Styles
   =========================== */
.home-hero {
    position: relative;
    background: url('/assets/images/landscape1.jpg') no-repeat center center;
    background-size: cover;
    padding: 60px 20px;
    text-align: center;
    color: #fff;
    min-height: 400px;
}

.home-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 1;
}

.home-hero .hero-content {
    position: relative;
    z-index: 2;
}

.home-hero .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
}

.home-hero .btn:hover {
    background-color: #218838;
}

/* ===========================
   About Varvese Section Styles
   =========================== */
/* About Varvese Section */
.about-varvese {
    padding: 40px 20px;
    background-color: #fff;
    margin: 20px;
    text-align: left;
    line-height: 1.6;
}

.about-varvese h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-varvese h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.about-varvese p {
    margin-bottom: 15px;
    font-size: 16px;
}

/* Initially hide the extra text by setting max-height to 0 */
.more-text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* When the checkbox is checked, show extra text */
.toggle-more:checked ~ .more-text {
    max-height: 300px; /* Adjust height as needed or use 'none' for variable content */
}

/* Read More / Read Less toggle label */
.read-more-label {
    display: block;  /* Ensure the label is on its own line */
    cursor: pointer;
    color: #007BFF;
    font-size: 16px;
    margin-top: 10px;
}

/* Default label text */
/*.read-more-label:after {*/
/*    content: "Read More";*/
/*}*/

/* When checkbox is checked, change label text to "Read Less" */
/*.toggle-more:checked + .read-more-label:after {*/
/*    content: "Read Less";*/
/*}*/

/* When checkbox is checked, change label text to an up arrow symbol */
.toggle-more:checked + .read-more-label:after {
    content: "▲";  /* or use "↑" or "−" or any other symbol */
}

/* Default label shows down arrow */
.read-more-label:after {
    content: "▼";  /* or use "↓" or "+" */
}
/* ===========================
   Footer Styles
   =========================== */
footer {
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
}

footer .footer-links {
    display: flex;
    justify-content: space-evenly;
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

footer .footer-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

footer .footer-links li a:hover {
    text-decoration: underline;
}

footer .footer-copy {
    font-size: 14px;
    margin: 0;
}

/* ===========================
   Responsive Styles
   =========================== */

/* Tablet devices (max-width: 768px) */
@media screen and (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }
    .content, .write-spol, .login, .register, .about-varvese {
        margin: 20px 10px;
        padding: 20px;
    }
    .navbar {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 10px;
    }
    .navbar .navbar-center, .navbar .navbar-right, .navbar .navbar-left {
        margin: 5px 0;
        text-align: center;
    }
    form {
        width: 100%;
    }
    .recorder-container {
        padding: 10px;
        margin-bottom: 15px;
    }
    .visualization {
        height: 50px;
    }
    .timer {
        font-size: 16px;
    }
    .controls {
        flex-wrap: wrap;
        gap: 5px;
    }
    .btn {
        padding: 6px 10px;
        font-size: 14px;
    }
}

/* Mobile devices (max-width: 480px) */
@media screen and (max-width: 480px) {
    body {
        font-size: 0.9rem;
    }
    .content, .write-spol, .login, .register, .about-varvese {
        margin: 10px;
        padding: 15px;
    }
    .navbar {
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
    }
    .navbar .navbar-left, .navbar .navbar-center, .navbar .navbar-right {
        margin: 5px 0;
    }
    form {
        padding: 10px;
    }
    .recorder-container {
        padding: 8px;
    }
    .visualization {
        height: 40px;
    }
    .timer {
        font-size: 14px;
    }
    .controls {
        flex-wrap: wrap;
        gap: 5px;
    }
    .btn {
        padding: 5px 8px;
        font-size: 13px;
    }
}

/* Audio Recorder Container */
.recorder-container {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    background-color: #333;
}

/* Recorder Title */
.recorder-title {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
    color: white;
}

/* Visualization */
.visualization {
    height: 60px;
    background-color: #f0f0f0;
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
}

/* Timer */
.timer {
    text-align: center;
    font-size: 18px;
    margin-bottom: 10px;
}

/* Playback Progress Bar */
.playback-progress {
    width: 100%;
    height: 5px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}
.progress-bar {
    width: 0;
    height: 100%;
    background-color: #4caf50;
    transition: width 0.25s ease;
}

/* Recorder Controls */
.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Button styles */
.btn {
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-toggle { background-color: #031cfc; color: white; }
.btn-toggle:hover { background-color: #388e3c; }

.btn-stop { background-color: #ba03fc; color: white; }
.btn-stop:hover { background-color: #388e3c; }

.btn-delete { background-color: #f44336; color: white; }
.btn-delete:hover { background-color: #388e3c; }

.btn-save { background-color: #2196f3; color: white; }
.btn-save:hover { background-color: #388e3c; }

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .controls { flex-wrap: wrap; }
    .btn { flex: 1 0 40%; margin: 5px; }
    .timer { font-size: 16px; }
    .visualization { height: 50px; }
}

@media screen and (max-width: 480px) {
    .btn { padding: 5px 8px; font-size: 14px; }
    .timer { font-size: 14px; }
    .visualization { height: 40px; }
}

