﻿/* TOGGLE CHECKBOX */

iframe {
	padding-bottom: 1.5em;
}
 
iframe,
iframe::before,
iframe::after 
{
  	box-sizing: unset; 
}

.toggle-switch {
    float: right;
    position: relative;
    display: flex;
    width: 40px;
    height: 24px;
    margin: 10px 100px;
}

.toggle-switch .toggle-input {
    display: none;
}

.toggle-switch .toggle-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 24px;
    background-color: #cad5df;
    border-radius: 34px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#toggleText { 
    width: 200px;
    font-size: 1.3em;
    align-items: center;
    justify-content: center;
    padding-left: 50px;
    padding-top: 2px
}

.toggle-switch .toggle-label::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    background-color: #fff;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}



.toggle-switch .toggle-input:checked+.toggle-label {
    background-color: #4CAF50;
}

.toggle-switch .toggle-input:checked+.toggle-label::before {
    transform: translateX(16px);
}

/* Light theme */
.toggle-switch.light .toggle-label {
    background-color: #BEBEBE;
}

.toggle-switch.light .toggle-input:checked+.toggle-label {
    background-color: #9B9B9B;
}

.toggle-switch.light .toggle-input:checked+.toggle-label::before {
    transform: translateX(6px);
}

/* Dark theme */
.toggle-switch.dark .toggle-label {
    background-color: #4B4B4B;
}

.toggle-switch.dark .toggle-input:checked+.toggle-label {
    background-color: #717171;
}

.toggle-switch.dark .toggle-input:checked+.toggle-label::before {
    transform: translateX(16px);
}

/*==========================================*/

/* ZOOM CONTAINER */

.mm-image-container img {
    border: 1px solid hsl(0, 0%, 90%);
    max-width: 640px;
    max-height: 360px;
    display: block;
    transition: transform 0.3s ease;
    
    /* Smooth transition for transform effect */
}

.mm-image-container img:hover {
    cursor: zoom-in;
}

.mm-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    /* Start with a transparent background */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.5s ease;
    /* Transition for background fade-in */
}

:root {
    --scale-factor: 1.5;
}

.mm-overlay img {
    max-width: 85vw;
    max-height: 85vh;
    cursor: zoom-out;
    border-radius: 10px;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 1;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Enlarge small images */

.mm-overlay img {
    /* Minimum size for enlargment */
    min-width: calc(300px * var(--scale-factor));
    min-height: calc(300px * var(--scale-factor));
}

.mm-overlay img[src$="imagem-pequena.jpg"] {
    width: calc(300px * var(--scale-factor));
    height: auto;
}

.mm-overlay-content {
    position: relative; /* Adiciona posição relativa ao contêiner do conteúdo */
}

/* Close Button*/

.mm-close-btn {
    overflow: hidden;
    position: absolute;
    top: 0vh;
    right: 0vh;
    border: none;
    padding: 0;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    font: inherit;
    text-indent: 100%;
    cursor: pointer;
}

.mm-close-btn:focus {
    outline: solid 0 transparent;
    box-shadow: 0 0 0 2px #ffffff;
}

.mm-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mm-close-btn:before,
.mm-close-btn:after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: .125em;
    height: 70%;
    border-radius: .125em;
    background: currentcolor;
    content: '';
    transform-origin: center;
}

.mm-close-btn:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mm-close-btn:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}


@media (max-width: 768px) {
    .mm-close-btn {
        top: 10px;
        right: 10px;
        width: 1.5em;
        height: 1.5em;
    }
}


/*NOTE DIV*/
.multimedia-note {
    display: none;
    background-color: #ffffcc;
    border-left: 6px solid #ffeb3b;
    margin-bottom: 15px;
    padding: 6px 12px;
}


/*GIF CONTAINER*/

.container {
    padding: 0 !important;
    position: relative;
    display: inline-block;
}
.replay-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 1;
}
.replay-button i {
    margin-right: 5px;
}
.gif {
    display: block;
}


/* HOTSPOTS CONTAINER */

#mm-hotspot-image-container {
    position: relative;
  }
  #mm-hotspot-image-container img {
    display: block; /* This ensures there's no gap under the image */
    width: auto; /* Set to auto or a fixed width as needed */
    height: auto; /* Set to auto or a fixed height as needed */
    border: none;
  }
  .hotspot {
    position: absolute;
    border: 2px solid #c00000;
    z-index: 99;
  }
  .tooltip {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 5px;
    z-index: 100;
    pointer-events: none;
    white-space: nowrap;
  }
  .hotspot:hover + .tooltip {
    display: block;
  }