.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #CCCCCC; /* Uppdaterad grå färg */
    color: #000000;
    padding: 10px;
    text-align: center;
    display: none;
    z-index: 999; /* Använd ett högt z-index-värde */
}

#accept-cookies {
    background-color: #660000;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
  height: 3vh;
  width: 3vh;
}

/* Style for the search icon */
.search-input {
    padding-right: 30px; /* Make space for the icon */
    width: 100%; /* Ensure the input takes full width */
}

/* CSS for the input field */
input[type="text"],
input[type="password"] {
    border: 1px solid #ccc; /* Thin grey border */
    border-radius: 5px; /* Rounded corners */
    padding: 5px;
    transition: border-width 0.3s; /* Smooth transition for border width */
    font-size: 3.5vh;
}

input[type="number"] {
    min-height: 4vh;
    font-size: 3.5vh;
    margin: 5px;
    max-width: 10vw;

}

/* CSS for the active (focused) state */
input[type="text"]:focus {
    border-width: 2px; /* Thicker border when active */
}

.wide-input {
    width: 30vw; /* You can adjust the width as needed */
}

/* Left menu styling */
.menu {
    max-height: 82vh;
    width: 25vw;
    padding-right: 10px;
    font-size: 3vh;
}

.menu-title {
    font-family: 'Montserrat', sans-serif;
    color: #660000;
}

.menu-scrollable {
    max-height: 75vh;
    height: auto;
    overflow: auto;
    font-family: 'Lora', serif;
}

.menu ul {
        list-style: none;
        padding-left: 20px; /* Adjust the indentation as needed */
    }

.menu ul li {
    margin-bottom: 5px; /* Add space between items if needed */
}

.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 18vh;
    height: auto;
    text-align: center;
    font-size: 2.7vh;
    background-color: #f0f0f0; /* Very light grey color */
}

.footer a {
    text-decoration: underline;
    color: #660000; /* Change the color to your desired value */
}

.footer a:hover {
    cursor: pointer;
    opacity: 0.8;
}

.header {
    text-align: center;
}

/* CSS for centering the image horizontally above the text input field */
.image-container {
    position: absolute;
    left: 50%; /* Center horizontally */
    top: 2%; /* Position at the top of the parent container */
    transform: translateX(-50%); /* Center horizontally within the parent container */
}

/* CSS for setting the image size relative to the viewport height */
.relative-size {
    max-height: 40vh; /* Adjust the height as needed */
    max-width: 40vw;
    height: auto;
    width: auto;
}

.sweden-container {
    position: absolute;
    left: 90%;
    top: 2%;
    transform: translateX(-10%);
}

/* CSS for setting the image size relative to the viewport height */
.sweden-relative-size {
    max-height: 24vh; /* Adjust the height as needed */
    max-width: 20vw; /* Adjust the height as needed */
    height: auto;
    width: auto;
}

.info-container {
    position: absolute;
    left: 95%;
    bottom: 7%;
    transform: translateX(-5%);
}

/* CSS for setting the image size relative to the viewport height */
.info-relative-size {
    max-height: 6vh; /* Adjust the height as needed */
    max-width: 6vw; /* Adjust the height as needed */
    height: auto;
    width: auto;
}

/* CSS for setting the image size relative to the viewport height */
.sweden-relative-size2 {
    max-height: 55vh; /* Adjust the height as needed */
    max-width: 30vw; /* Adjust the height as needed */
    height: auto;
    width: auto;
}

/* CSS for centering the image horizontally above the text input field */
.textinput-container {
    position: absolute;
    left: 25%;
    top: 50%; /* Center vertically in the viewport */
    transform: translateY(-50%);
    width: 68vw;
    margin-left: 30px;
    margin-right: 30px;
}

.url-container {
    position: absolute;
    left: 15%;
    top: 55%; /* Center vertically in the viewport */
    transform: translateY(-45%);
    width: 68vw;
    margin-left: 30px;
    margin-right: 30px;
}

.login {
    position: absolute;
    left: 15%;
    top: 55%; /* Center vertically in the viewport */
    transform: translateY(-45%);
    text-align: right;
}

/* Styla den nya högersidiga kolumnen */
.right-column {
    position: fixed;
    top: 0;
    right: 0;
    width: 30%; /* Justera bredden efter behov */
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Lora', serif;
}

/* Styla små texter inuti kolumnen */
.right-column small {
    color: gray;
}

/* Styla menu-title */
.interactive-title {
    height: 8em; /* Set a fixed height for four rows */
}

.main {
    width: 75vw;
    text-align: center;
    margin: auto;
    padding: 30px; /* Add your desired padding value here */
    padding-bottom: 1px; /* Additional padding for the bottom */
    font-size: 3vh;
}

.main a {
    color: #660000; /* Change the color to your desired value */
    text-decoration: underline;
}

.main a:hover {
    cursor: pointer;
    opacity: 0.8;
}

table {
    border-collapse: collapse; /* Optional: This is for border-spacing */
    font-family: 'Lora', serif;
    font-size: 3vh;
    padding: 5px;
}

table td {
    padding: 8px;
}

.button-style {
    min-width: 7vw;
    min-height: 4vh;
    font-size: 3vh;
    background-color: #660000;
    color: #fff;
    margin: 20px;
}

.button-style:hover {
    cursor: pointer;
    opacity: 0.8;
}

.title {
font-family: 'Montserrat', sans-serif;
font-size: 3vh;
color: #660000;
}

.text {
font-family: 'Lora', serif;
}

.expl-text-container {
    position: absolute;
    top: 75%; /* Center vertically in the viewport */
    left: 15%;
    transform: translateY(-20%);
    width: 68vw;
    margin-left: 30px;
    margin-right: 30px;
}

.inloggningsinfo {
    position: absolute;
    bottom: 0;
    left: 0;
    max-height: 20vh;
    text-align: left;
    font-size: 2vh;
    margin: 3px;
}

.fraga-lista {
    width: 80vw;
}
/* Add this CSS code to your styles.css file */
/* Add this CSS code to your styles.css file */
.remove-button {
  background-color: darkred;
  color: white;
  border: none;
  padding: 0px;
  margin-left: 5px;
  cursor: pointer;
  max-height: 3vh;
  height: auto;
  line-height: 1;
}

/* Style the button container */
div button-container {
  display: inline-block;
  vertical-align: middle; /* Adjust alignment as needed */
}

.loading-dots {
  display: inline-block;
}

.dot {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background-color: black;
  animation: dot-pulse 1.5s ease-in-out infinite;
}

.dot:nth-child(1) {
  animation-delay: 0s;
}

.dot:nth-child(2) {
  animation-delay: 0.5s;
}

.dot:nth-child(3) {
  animation-delay: 1.0s;
}

.dots.paused {
  animation-play-state: paused;
}

@keyframes dot-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1.1);
  }
}

.highlight {
            color: blue;
            font-weight: bold;
}

.emoji {
        cursor: pointer;
        opacity: 0.8;
    }

.play-links {
    font-size: 1.5em;
}

/* 🔴 Apply to mic icon when recording */
.blinking {
    animation: blink 1s infinite ease-in-out;
    transition: color 0.3s ease;
}

/* 🔁 Simple blink animation */
@keyframes blink {
    50% {
        opacity: 0.3;
    }
}

.mobile-only {display:none;}
.desktop-only {display:block;}

/* Adjust font size for smaller screens */
@media (max-width: 600px) {
    .desktop-only {display:none;}
    .mobile-only {display:block;}

    .main {
        width: 95vw;
        text-align: center;
        padding: 5px;
        margin: 0px;
        padding-bottom: 1px; /* Additional padding for the bottom */
        font-size: 3vh;
        height: auto;
        overflow: auto;
    }

    /* CSS for the input field */
    input[type="text"],
    input[type="password"] {
        border: 1px solid #ccc; /* Thin grey border */
        border-radius: 5px; /* Rounded corners */
        padding: 5px;
        transition: border-width 0.3s; /* Smooth transition for border width */
        font-size: 3.5vh;
    }
    
    input[type="number"] {
        min-height: 4vh;
        font-size: 3.5vh;
        margin: 5px;
        max-width: 10vw;
    
    }

    /* CSS for centering the image horizontally above the text input field */
    .textinput-container {
        position: absolute;
        left: 0%;
        top: 28%; /* Center vertically in the viewport */
        transform: translateY(-50%);
        width: 85vw;
        margin-left: 30px;
        margin-right: 30px;
    }

    .url-container {
        position: relative;
        left: 0%;
        top: 0%; /* Center vertically in the viewport */
        transform: translateX(0%);
        width: 88vw;
        margin-left: 0px;
        margin-right: 0px;
    }

    .login {
        position: absolute;
        left: 5%;
        top: 25%; /* Center vertically in the viewport */
        transform: translateX(0%);
        text-align: right;
    }

    .login2 {
        position: absolute;
        left: 5%;
        top: 25%; /* Center vertically in the viewport */
        transform: translateX(0%);
        text-align: left;
    }

    .wide-input {
        width: 60vw; /* You can adjust the width as needed */
    }

    /* CSS for centering the image horizontally above the text input field */
    .image-container {
        position: absolute;
        left: 50%; /* Center horizontally */
        top: 10%; /* Position at the top of the parent container */
        transform: translateX(-50%); /* Center horizontally within the parent container */
    }

    /* CSS for setting the image size relative to the viewport height */
    .relative-size {
        max-height: 25vh; /* Adjust the height as needed */
        max-width: 25vw;
        height: auto;
        width: auto;
    }

    .sweden-container {
        position: absolute;
        left: 72%;
        top: 3%;
        transform: translateX(-10%);
    }

    .sweden-container2 {
        position: absolute;
        left: 80%;
        top: 3%;
        transform: translateX(-10%);
    }

    /* CSS for setting the image size relative to the viewport height */
    .sweden-relative-size {
        max-height: 12vh; /* Adjust the height as needed */
        max-width: 10vw; /* Adjust the height as needed */
        height: auto;
        width: auto;
    }

    #choose-region {
        font-size: 2vh; /* Adjust as needed */
    }
    .footer {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 20vh;
        text-align: center;
        background-color: #f0f0f0; /* Very light grey color */
        font-size: 2vh;
    }

    .info-container {
        position: absolute;
        left: 92%;
        bottom: 65%;
        transform: translateX(-5%);
    }
    /* Left menu styling */
    .menu {
        position: absolute;
        left: 0%;
        top: 33%; /* Center vertically in the viewport */
        transform: translateY(0%);
        width: 85vw;
        margin-left: 30px;
        margin-right: 30px;
        font-size: 2.5vh;
    }

    .left-menu-title {
        position: absolute;
        left: 10%;
        top: 1%; /* Center vertically in the viewport */
        font-family: 'Montserrat', sans-serif;
        color: #660000;
    }

    .menu-scrollable {
        max-height: 45vh;
        font-size: 2.5vh;
    }

    /* Styla den nya högersidiga kolumnen */
    .right-column {
        position: absolute;
        left: 5%;
        top: 57%; /* Center vertically in the viewport */
        transform: translateX(0%);
        width: 85vw; /* Justera bredden efter behov */
        padding: 20px;
        font-family: 'Lora', serif;
    }

    .title {
    font-family: 'Montserrat', sans-serif;
    color: #660000;
    font-size: 2.5vh;
    margin: 0px;
    }

    .text {
    font-family: 'Lora', serif;
    font-size: 2.5vh;
    }

    .button-style {
        min-width: 7vw;
        min-height: 4vh;
        font-size: 3vh;
        background-color: #660000;
        color: #fff;
        margin: 20px;
    }

    /* Apply word-wrap and overflow-wrap for long links */
    a {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .expl-text-container {
        position: relative;
        top: 0%; /* Center vertically in the viewport */
        left: -5%;
        transform: translateY(0%);
        width: 80vw;
        margin-left: 30px;
        margin-right: 30px;
        text-align: center;
    }

    .inloggningsinfo {
        position: relative;
        bottom: 0;
        left: 0;
        max-height: 20vh;
        text-align: left;
        font-size: 2vh;
        margin: 3px;
    }

    .anyquiz-image {
        max-height: 95vh; /* Adjust the height as needed */
        max-width: 95vw;
        height: auto;
        width: auto;
    }

    .play-links {
        font-size: 1.0em;
    }
}

/* App grid overview (play.html) */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 20px auto;
    max-width: 900px;
    padding: 0 16px;
}

.app-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background-color: #fff;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}

.app-tile:hover {
    box-shadow: 0 4px 16px rgba(102, 0, 0, 0.15);
    transform: translateY(-2px);
}

.tile-lock {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 0.8rem;
    opacity: 0.5;
}

.app-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.app-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #660000;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.app-desc {
    font-family: 'Lora', serif;
    font-size: 0.75rem;
    color: #555;
}

@media (max-width: 600px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .app-desc {
        display: none;
    }
}