.clickable {
  pointer-events: auto;
}
.overlay-dark-40 {
    position: absolute;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}
.overlay-modern {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    background-color: rgba(214, 208, 203, 1);
    inset: 0;
    /* Fix iOS scroll issues */
    pointer-events: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100 * var(--vh));
    }
.overlay-modern button,
.overlay-modern [onclick] {
    -webkit-user-select: auto;
    user-select: auto;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1); /* Visual feedback */
}
/* Allow selection within scrollable areas */
.overlay-modern,
.overlay-modern * {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

.overlay-modern .gallery {
    display: grid;
    /* Add these to make grid work with scrollable parent: */
    grid-auto-rows: min-content; /* Or your specific row height */
    align-content: start; /* Prevents grid from stretching to fill container */
}

/* Ensure fixed buttons in #gui are clickable */
#gui > button,
#gui > .button,
#gui > [role="button"] {
    pointer-events: auto;
}

.position-center-center{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.position-temp{
    position: absolute;
    top: 44%;
    right: 32%;
}
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.button-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: invert(1);
}
.button-round {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
    justify-content: center;
    cursor: pointer;
    transition: var(--anim-transform-generic);
    box-shadow: 0 14px 16px rgba(0, 0, 0, 0.1);
}
.button-fill-1 {
    background-color: var(--color-accent);
}

.button-fill-2 {
    background-color: var(--color-accent);
}
@media (pointer:fine) {
  .button-round:hover,
  .button-rect:hover {
      transform: scale(1.1);
      background-color: #fff;
      color: black;
  }
  /*.button-round:hover{
      background-color: #ffffff7e;
      color: black;
  }*/
  .button-rect:hover svg .fill{ 
    fill:   #000; 
  }
  .button-edit-group:hover {
    transform: scale(1.1);
  }
}
.button-edit-group {
  display: none;
}
.button-edit-group.visible {
  display: flex;
}
.button-edit-group .action-close {
  background: rgba(255, 255, 255, 0.5);
	align-items: center;
	min-width: 40px;
  padding: 0;
	justify-content: center;
  border-width: 0;
  border-radius: 100px;
  border-top-left-radius: 0;
  border-top-right-radius: 100px;
  border-bottom-right-radius: 100px;
  border-bottom-left-radius: 0;
  backdrop-filter: blur(10px);
  border-left: 1px solid var(--color-accent);
}
.button-edit-group .action-close .img {
  display: block;
  width: 16px;
  height: 100%;
  margin: 0 12px 0 8px;
  background-image: url('../img/icon_delete.svg');
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 100%;
  filter: invert(0.8);
}
@media (pointer:fine) {
  .button-edit:focus + .action-close .img {
      filter: invert(0);
  }
}
.button-edit.closable {
  padding-right: 8px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
@media (pointer:fine) {
  .button-edit:focus + .action-close {
    background: var(--color-accent);
    color: var(--color-light-theme);
    border-left: 1px solid var(--color-light-theme);
  }
}
.button-rect {
  border-radius: 100px;
  background-color: var(--color-accent);
  transition: var(--anim-transform-generic);
  color: var(--color-light-theme);
  font-size: 1rem;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 16px;
  padding-right: 16px;
  border: 0;
  display: flex;
  align-items: center;
  gap:6px;
}
.button-rect.disabled {
  background-color: grey;
  pointer-events: visible;
  cursor: not-allowed;
  opacity: 0.5;
}
@media (pointer:fine) {
  .button-rect.disabled:hover {
    transform: none;
    background-color: grey;
    color: var(--color-light-theme);
  }
  .button-rect.disabled:hover svg .fill{ 
    fill: var(--color-light-theme);
  }
}
.button-edit {
  position: relative;
  display: inline-block;  
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.5);
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 16px;
  padding-right: 16px;
  border: 0;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(10px);
  transition: var(--anim-transform-generic);
}
.button-edit span {
  position: relative;
  color: #000;
  opacity: 1;
  font-size: 1rem;
  pointer-events: none;
}
.button-text {
    margin-top: 8px;
    font-size: 1.5rem;
    font-weight: 500;
}
@media (pointer:fine) {
  .button-edit:focus {
    background: var(--color-accent);
  }
  .button-edit:focus span  {
    color: var(--color-light-theme);
  }
}
button {
  cursor: pointer;
}
.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 40px;
  padding: 56px;
  box-sizing: border-box;
  align-self: center;
}
.menu.scroll {
  overflow-y: scroll;
  scrollbar-width: none;
}
.menu.size-1.scroll {
  max-height: 100%;
}
.menu.scroll .menu-item .image {
  height: 200px;
}

.scroll-y {
  overflow-y: scroll;
  scrollbar-width: none;
}
  /* Bred skærm (landscape) */
@media (min-aspect-ratio: 16/9) {
    .menu.size-1 {
        max-height: unset;
        max-width: 40%;
    }
  }
  
  /* Mellemting – mere kvadratisk (fx 4:3 eller 1:1) */
  @media (min-aspect-ratio: 4/3) and (max-aspect-ratio: 16/9) {
    .menu.size-1 {
        max-height: unset;
        max-width: 40%;
    }
  }
  
  /* Høj skærm (portrait) */
  @media (max-aspect-ratio: 4/3) {
    .menu.size-1 {
        max-height: 100%;
        max-width: 50%;
    }
  }
    /* Høj skærm (portrait) specific target */
    @media (max-aspect-ratio: 4/3) and (max-width:768px) {
        .menu.size-1 {
            max-height: 90%;
            max-width: 100%;
        }
      }
.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    width: 100%;
    flex-grow: 1;
    aspect-ratio: 1 / 1;
    transition: var(--anim-transform-generic);
}
@media (pointer:fine) {
  .menu-item:hover {
      transform: scale(1.05);
      cursor: pointer;
  }
}
.menu-item.disabled {
	filter: grayscale(1) brightness(0.8);
}
.menu-item .image {
  background-color: rgb(100, 100, 100);
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
  border-top-left-radius:  var(--border-rad);
  border-top-right-radius: var(--border-rad);
  border-bottom-left-radius: 0;   
  border-bottom-right-radius: 0;
  width: 100%;
  height: 100%;
}
.menu-item .description {
  background-color: #fff;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: var(--border-rad);  
  border-bottom-right-radius: var(--border-rad);
  width: 100%;
  padding: .5rem;
  text-align: center;
}
.menu-item .text {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    z-index: 2;
    color: black;
}

.gallery {
  padding-left: 64px;
  padding-right: 64px;
  padding-top: 64px;
  padding-bottom: 16px;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  overflow-y: auto;
  min-height: 0;
}
.gallery.container-add-accessories {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: auto;
   align-content: start; 
}
.card {
  aspect-ratio: 1 / 1; 
  border-radius: 0.75rem; 
  overflow: hidden;
  background: #eee;
}
.card.disabled .description {
  color:rgb(198, 198, 198);
}
.container-add-accessories .card {
  aspect-ratio: 16 / 9; 
  overflow: unset;
}
@media (max-width: 1200px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
    min-height: 100dvh;
    place-content: center; 
    justify-items: center;
  }
  .menu-item {
    width: 300px;
  }
}

@media (max-width: 400px) {
.gallery {
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 64px;
  padding-bottom: 64px;
  width: 100%;
  }

  .menu-item {
    width: 100%;
  }
}

.shadow-1 {
    box-shadow: 15px 15px 30px 0px #00000040;
    z-index: 1;
}
.shadow-2 {
    box-shadow: 16px 16px 16px 0px #00000008;
    z-index: 1;
}

.position-top-left {
    position: absolute;
    top: 16px;
    left: 16px;
}
.position-top-right {
    position: absolute;
    top: 16px;
    right: 16px;
}
.position-bottom-right {
    position: absolute;
    bottom: 32px;
    right: 24px;
}
.icon-size-32 {
    width: 32px;
    height: 32px;
}
.icon-size-40 {
    width: 40px;
    height: 40px;
}

.flexrow {
    display:flex;
    gap: 10px;
    align-items: center;
}
.flexcol {
    display:flex;
    flex-direction: column;
}

.flexend {
    align-items: end;
}
.opa-07{
    opacity: 0.7;
}
.txt-1 {
    font-size: 0.75rem;
}
.txt-2 {
    font-size: 0.6rem;
}
.txt-center {
    text-align: center;
}
.txt-line-t {
  text-decoration: line-through;
}
.txt-line-u {
  text-decoration: underline;
}

.txt-color-dark {
    color: #000;
}
.txt-color-gray {
  color: #858585;
}

#total-price,
#product-price,
.total-price-group,
.product-price-group {
  font-weight: 600;
}
#totalprice-discount-group,
#total-price-discount,
#productprice-discount-group,
#product-price-discount {
  display: none;
}
#totalprice-discount-group.visible,
#total-price-discount.visible,
#productprice-discount-group.visible,
#product-price-discount.visible {
  display: inline;
}
.total-price-group,
.product-price-group {
  display: flex;
}
#total-price-discount,
#product-price-discount {
  margin-left: 0.3em;
}
#top-row {
    top: 0;
    left: 0;
	flex-wrap: wrap;
}
#bottom-row {
    bottom: 0;
    left: 0;
}
#bottom-row.edit {
    position: absolute;
    width: 100%;
}
.row {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    padding: 16px;
}
.row.end {
  justify-content: end;
}
.row.center {
    justify-content: center;
}
.end {
    align-items: end;
}
#selection-row-container {
	width: 100%;
	justify-content: center;
	flex-direction: column;
	align-items: end;
	margin-top: 10px;
}
#selection-icon-container {
	display: flex;
	gap: 10px;
	flex-direction: column;
	position: relative;
	right: 0;
	pointer-events: none;
}
#selection-icon-container.hide {
	animation-name: selection-icon-hide;
	animation-duration: 0.2s;
	animation-timing-function: ease-in;
	animation-iteration-count: 1;
	right: -72px;
	pointer-events: all;
}
@keyframes selection-icon-hide {
	0% {
		right: 0;
	}
	100% {
		right: -72px;
	}
}
#selection-icon-container.show {
	animation-name: selection-icon-show;
	animation-duration: 0.2s;
	animation-timing-function: ease-out;
	animation-iteration-count: 1;
	right: 0;
	pointer-events: all;
}
@keyframes selection-icon-show {
	0% {
		right: -72px;
	}
	100% {
		right: 0;
	}
}
.edit-mode {
    box-shadow: inset 0 0 0 10px var(--color-accent);
    padding: 20px;
    height: 100%;
}
.price-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 16px;
    align-items: end;
    padding-bottom: 0;
    color: black;
}
.edit-row-container {
    width: 100%;
    overflow-x: auto; /* Enable horizontal scrolling */
    white-space: nowrap; /* Prevent wrapping of menu items */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
    user-select: none;
}
.edit-row-container::-webkit-scrollbar {
    display: none;
}
.edit-row {
    display: inline-flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 16px;
    
}
/* #edit-row-container .button-edit {
	display: none;
}
#edit-row-container .button-edit.visible {
	display: inline-block;
} */
.width-80 {
    max-width: 80%;
}
.inline {
    display: inline-block;
}

/* Sub menu styling start
*/
.submenu-context-menu {
    position: fixed;
    bottom: 80px;
    left: 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    color: black;
    max-height: 60vh;
    max-width: 80vw;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    z-index: 50;
    display: flex;
    flex-direction: column;
  }
  
  .submenu-context-menu.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
  
  .submenu-tabs {
    display: flex;
    flex-shrink: 0;
    background: var(--color-accent);
    border-radius: 8px 8px 0 0;
  }
  .submenu-tabs.has-multiple {
    display: flex; 
  }
  .submenu-tab {
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    color: rgba(255, 255, 255, 0.5);
    cursor: default;
    transition: background 0.2s;
    font-size: 0.9rem;
    flex-grow: 1;
  }
  
  .submenu-tab.active {
    /*box-shadow: inset 0 -2px 0 white;*/
    
    color: rgba(255, 255, 255, 1);
  }
  
  .submenu-content {
    overflow-y: auto;
    flex-grow: 1;
    font-size: 1rem;
    
    position: relative;
    max-height: 100%;
    
    -webkit-mask-image: none;
    mask-image: none;
    
  }


  
  .submenu-section {
    display: none;
  }
  
  .submenu-section.active {
    display: block;
  }
  
  .submenu-item {
    padding: 8px 24px;
    padding-right: 32px;
    cursor: pointer;
    transition: all 0.2s;
    color: black;
    margin: 2px 0;
    position: relative;
  }
  .submenu-item.remove {
    color: rgb(79, 79, 79);
    font-size: 0.8rem;
  }
  .submenu-item.thumb-color,
  .submenu-item.thumb-img {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .submenu-item.thumb-color:before ,
  .submenu-item.thumb-img:before {
    content: "";
    width: 24px;
    height: 24px;
    display: inline-block;
    border-radius: 5px;
    border: 1px solid #ccc; 
}

/* HEX farve */
.submenu-item.thumb-color::before {
    background-color: var(--thumb-color, transparent);
}

/* Billede */
.submenu-item.thumb-img::before {
    background-size: cover;
    background-position: center;
    background-image: var(--thumb-img, none);
}
@media (pointer:fine) {
  .submenu-item:hover,
  .submenu-item:focus/*,
  .submenu-item.active */{
    background: var(--color-accent);
    color: white;
  }
  .submenu-item.active:hover {
    color: black;
  }
}
.submenu-item.active {
  cursor: default;
  background-color: #fff;
}
.submenu-item.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 32px;
    background-image: url('../img/icon_accept.svg');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50%;
    filter: invert(1);
    transition: all 0.2s;
  }
  /*.submenu-item.active:hover::after {
    filter: invert(0);
  }*/
  .submenu-item.disabled {
    /* cursor: default; */
    color: grey;
    /*background-color: #fff;*/
  }
@media (pointer:fine) {
  .submenu-item.disabled:hover {
    color: lightgrey;
  }
}
  .submenu-item.disabled::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 32px;
    background-image: url('../img/icon_unavailable.svg');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50%;
    filter: invert(0.4);
    transition: all 0.2s;
  }
@media (pointer:fine) {
  .submenu-item.disabled:hover::after {
    filter: invert(0.2);
  }
  .submenu-item.remove:hover,
  .submenu-item.remove:focus {
    background: var(--color-danger);
    color: white;
  }
}
.submenu-item.remove.active {
    background: var(--color-danger);
    color: white;
}
  /* Scrollbar styling */
  .submenu-content::-webkit-scrollbar {
    width: 16px;
  }
  
  .submenu-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);

  }
  
  .submenu-content::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 100px;
  }
 
  

/* Sub menu styling end*/

/* Main menu styling start*/

.mainmenu-context-menu {
    position: fixed;
    top: 72px;
    right: 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    color: black;
    max-height: 60vh;
    opacity: 0;
    max-width: 80vw;
    transform: translateY(-100%);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    z-index: 50;
    display: flex;
    flex-direction: column;
  }
  .mainmenu-context-menu.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
  
  .mainmenu-content {
    overflow-y: auto;
    flex-grow: 1;
    font-size: 1rem;
    
    position: relative;
    max-height: 100%;
    
    -webkit-mask-image: none;
    mask-image: none;
    padding-top: 5px;
    padding-bottom: 5px;
    
  }

  .mainmenu-item {
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
    color: black;
    margin: 2px 0;
    text-align: end;
  }
@media (pointer:fine) {
  .mainmenu-item:hover,
  .mainmenu-item:focus {
    background: var(--color-accent);
    color: white;
  }
}
.mainmenu-item.active {
  background: var(--color-accent);
  color: white;
}
  .mainmenu-item-spacer {
    height: 2px;
    background-color: var(--color-light-theme);
    opacity: 0.5;
  }

/* Main menu styling end*/
/* Lad os style Modal! start*/

.modal-overlay {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    left: 50%;
    z-index: 100;
    background-color: var(--color-accent);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
}

.modal-content{
    padding: 32px;
    font-size: 1rem;
}

.modal-content p:not(:last-child) {
    padding-bottom: 1rem;
}
.modal-content .code {
    user-select: all;
    padding: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    display: inline-block;
}
.modal-content .code img {
    width: 16px;
    height: auto;
    display: inline-block;
    transform: translateY(-50%);
    cursor: pointer;
}
.modal-header{
    display: flex;
    align-items: center;
    gap:16px;
    border-bottom: 1px solid #ccc; 
    padding: 8px;
}
.modal-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
}
.modal-footer {
    padding-left: 32px;
    padding-right: 32px;
    padding-bottom: 32px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}
.modal-btn {
    border-radius: 100px;
    border: 1px solid var(--color-light-theme);
    background-color: transparent;
    color: var(--color-light-theme);
    font-weight: 500;
    font-size: 1rem;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 10px;
    padding-bottom:10px;
    cursor: pointer;
    min-width:100px;
}
@media (pointer:fine) {
  .modal-btn:hover {
      background-color: var(--color-light-theme);
      color: #000;
  }
}
.modal-content .code-wrapper {
  display: flex;
  width: fit-content;
  background-color: #fff;
  border-radius: var(--border-rad);
  color: #000;
}
.modal-content .code-wrapper pre {
  display: flex;
  align-items: center;
}
.modal-content .code-wrapper code {
  user-select: text;
  cursor: text;
  padding: 10px 30px;
  font-size: 1.2rem;
}
.modal-content .code-wrapper input {
  cursor: text;
  padding: 10px 30px;
  font-size: 1.2rem;
  font-family: monospace;
  border: 0;
  background-color: transparent;
	max-width: 145px;
}
@media (pointer:fine) {
  .modal-content .code-wrapper input:focus {
    outline: 0;
  }
}
.modal-content .code-wrapper input::placeholder {
  color: var(--color-accent-alpha);
}
.modal-content .code-wrapper .copy-btn {
	background-color: transparent;
	border: 0;
	background-color: var(--color-accent);
	margin: 10px;
  margin-left: 0;
	padding: 5px 10px;
	color: #fff;
	border-radius: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  outline: 0px solid #000;
  transform-origin: 100% 50%;
}
@media (pointer:fine) {
  .modal-content .code-wrapper .copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    outline-width: 1px;
    background-color: #fff;
    color: #000;
  }
}

/* Lad os style Modal! end*/

.loader {
    width: 25vw;
    height: auto;
    margin-bottom: 20px;
}
.loader svg {
    width: 100%;
    height: 100%;
}
  /*
    Set the color of the icon
  */
  /*svg path,
  svg rect {
    fill: var(--color-dark-theme);
  }*/

  /* arrow down */

.arrow {
	width: 0;
	height: 40px;
	border: 2px solid var(--color-light-theme);
	position: relative;
	animation: scroll 1.5s infinite;
	-webkit-animation: scroll 1.5s infinite;
}
.arrow::after {
	content: '';
    display: block;
    position: absolute;
    top: 100%;
    left: -8px;
    width: 1px;
    height: 10px;
		
    border-top: 12px solid var(--color-light-theme);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;

}

.styled-input {
    all: unset; /* Fjerner standard styles */
    display: block;
    width: 100%;
    font-size: 0.8rem;
    color: #f6f6f6; /* Mellemgrå */
    border-bottom: 1px solid white;
    padding-bottom: 4px;
    transition: all 0.3s ease;
  }
  
  .styled-input::placeholder {
    color: var(--color-light-theme);
    opacity: 0.5;
    transition: all 0.3s ease;
  }
  
@media (pointer:fine) {
  .styled-input:focus {
    font-size: 1rem;
    border-bottom: 2px solid white;
    color: var(--color-light-theme);
  }
  
  .styled-input:focus::placeholder {
    color: var(--color-light-theme);
    padding-bottom: 2rem;
  }
}

.target-arrow {
    transform: rotate(180deg);
    transition: transform 150ms linear;
}
.target-arrow.active {
    transform: rotate(0deg);
}

/* viewfinder */

.viewfinder {
    height: calc(100 * var(--vh));
    width: 100%;
    cursor: -webkit-grab;
    cursor: grab;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    padding-bottom: 66.6666667%;
  }
  .viewfinder::before {
    top: 50%;
    left: 50%;
    z-index: 1;
    content: "";
    width: 90%;
    height: 70%;
    border-radius: 3px;
    position: absolute;
    pointer-events: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transform-origin: center center;
    transform: translate(-50%, -50%);
    -webkit-clip-path: polygon(0 0, 20px 0, 20px 20px, calc(100% - 20px) 20px, calc(100% - 20px) 0, 100% 0, 100% 20px, calc(100% - 20px) 20px, calc(100% - 20px) calc(100% - 20px), 100% calc(100% - 20px), 100% 101%, calc(100% - 20px) 101%, calc(100% - 20px) calc(100% - 20px), 20px calc(100% - 20px), 20px 101%, 0 101%, 0% calc(100% - 20px), 20px calc(100% - 20px), 20px 20px, 0 20px);
            clip-path: polygon(0 0, 20px 0, 20px 20px, calc(100% - 20px) 20px, calc(100% - 20px) 0, 100% 0, 100% 20px, calc(100% - 20px) 20px, calc(100% - 20px) calc(100% - 20px), 100% calc(100% - 20px), 100% 101%, calc(100% - 20px) 101%, calc(100% - 20px) calc(100% - 20px), 20px calc(100% - 20px), 20px 101%, 0 101%, 0% calc(100% - 20px), 20px calc(100% - 20px), 20px 20px, 0 20px);
  }
  .viewfinder::after {
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 40px;
    content: "";
    height: 40px;
    position: absolute;
    border-radius: 666px;
    pointer-events: none;
    background-clip: content-box;
    transform: translate(-50%, -50%);
    border: 10px solid rgba(255, 255, 255, 0.6);
    background-image: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.05));
  }
  .viewfinder .glass {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(5px);
    position: absolute;
    box-shadow: inset 0 0 2000px rgba(255, 255, 255, 0.5);
  }
  .viewfinder .noise {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.08;
    position: absolute;
    pointer-events: none;
    background-image: url("../img/bignoise-min.png");
    background-size: 500px 500px;
    -webkit-animation: flip 0.3s steps(1) infinite;
            animation: flip 0.3s steps(1) infinite;
  }

  @-webkit-keyframes flip {
    0% {
      transform: scaleX(1) scaleY(1);
    }
    25% {
      transform: scaleX(1) scaleY(-1);
    }
    50% {
      transform: scaleX(-1) scaleY(-1);
    }
    75% {
      transform: scaleX(-1) scaleY(1);
    }
    100% {
      transform: scaleX(-1) scaleY(1);
    }
  }
  
  @keyframes flip {
    0% {
      transform: scaleX(1) scaleY(1);
    }
    25% {
      transform: scaleX(1) scaleY(-1);
    }
    50% {
      transform: scaleX(-1) scaleY(-1);
    }
    75% {
      transform: scaleX(-1) scaleY(1);
    }
    100% {
      transform: scaleX(-1) scaleY(1);
    }
  }
  /* viewfinder end */


@keyframes scroll {
	0% {
		height: 40px;
	}
	30% {
		height: 70px;
	}
	60% {
		height: 40px;
	}
}

@-webkit-keyframes scroll {
	0% {
		height: 40px;
	}
	30% {
		height: 70px;
	}
	60% {
		height: 40px;
	}
}

/* arrow down stop */


.selection-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  z-index: 1;
}
@media (pointer:fine) {
  .selection-icon:hover {
    transform: scale(1.1);
  }
}


.drag-hint{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  cursor:grab;
  user-select:none;
  transform-origin:left center;
  will-change:transform;
  opacity:.85;
}
.drag-hint .arrow{ display:inline-block; }

/* Wizard button states */
#wizard {
  transition: opacity 0.3s ease;
}

/* Active state - full opacity */
#wizard.wizard-active {
  opacity: 1;
}

/* Inactive state - 50% opacity */
#wizard.wizard-inactive {
  opacity: 0.5;
}

/* Optional: Add a subtle hover effect */
@media (pointer:fine) {
  #wizard:hover {
    opacity: 0.8;
  }

  #wizard.wizard-active:hover {
    opacity: 0.9;
  }
}

/* Respektér brugere med reduceret bevægelse */
@media (prefers-reduced-motion: reduce){
  .drag-hint{ transform:none !important; }
}



@media (max-width: 768px) {
    .submenu-content {
      -ms-overflow-style: none;  /* Hide scrollbar in IE and Edge */
      scrollbar-width: none;     /* Hide scrollbar in Firefox */
    }
  
    .submenu-content::-webkit-scrollbar {
      width: 0px;
      height: 0px;
      display: none;
    }
    
  }

  
@media (max-width: 400px) {
    .modal-btn {
        padding-left: 0;
        padding-right: 0;
    }
  }

/*Til meget små skærme, f.eks. Samsung S25 er dette et problem */
  @media (max-width: 350px) {
    .row {
        padding: 8px;
    }
    .icon-size-40 {
      width: 32px;
      height: 32px;
    }
    .button-rect {
      padding-top: 10px;
      padding-bottom: 10px;
      padding-left: 13px;
      padding-right: 13px;
      font-size: 0.8rem;
    }
    #top-row {
      font-size: 14px;
    }
  }
