html {
    box-sizing: border-box;
    font-family: 'Inter', Helvetica, sans-serif;
    font-size: 10px;
}

.museum-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;

}

.app-title {
    font-family: 'ZIGZAG';
    font-size: 3rem;
    font-feature-settings: 'clig' 1;
    text-transform: uppercase;
    text-align: center;
}

body {
    background: white;
    margin: 0;
    width: 100vw;
    height: 100vh;
}

@supports (height: 100dvh) {
    body {
      height: 100dvh;
    }
}

@font-face {
font-family: ZIGZAG;
src: url(zigzag-rounded.woff2);
}


.tag {
    font-size: 1.3rem;
    font-size: 130%;
    margin-bottom: 8%;
    margin-right: 6%;
}

.tag-body {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    text-decoration-line: underline;
    text-decoration-thickness: 1.5px;
}

.container {
    display: grid;
    height: 100%;
    grid-template-areas: "input-column museum-column museum-column museum-column";
    grid-template-columns: 25% 25% 25% 25%;
    grid-template-rows: 1fr;
}

.header {
    margin: auto;
    display: grid;
}

.input-column {
    display: grid;
    grid-template-areas: "header"
                         "tabcontent" 
                         "tool-box";
    grid-template-columns: 100%;
    grid-template-rows: 15% 55% 30%;
}

.museum-column {
    display: grid;
    grid-template-areas: "header"
                         "img-box"
                         "info-box";
    grid-template-columns: 100%;
    grid-template-rows: 15% 1fr auto;
    border-left: 2px solid black; 
}


.tabcontent {
    display: none;
    height: 100%;
    width: 100%;
    display: grid;
}

.canvas-wrapper {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center; /* center horizontally */ 
	align-items: center; /* center vertically */ 
    }

canvas {
    cursor: pointer;
    height: 85%;
    width: 85%;
}

.tool-box {
    display: none;
    margin: auto;
}

.img-box {
    max-height: 100%;
}

/* .img-box:hover {
    transform:scale(1.5);
} */

.upload-img, .match-img {
    overflow: visible;
    background-image: url("");
    background-size: contain;
    background-repeat: no-repeat;
    background-origin: content-box;
    background-position: 50% 50%;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    height: 100%;
    width: 100%;
    padding: 10%;

}

.img-placeholder-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: center; /* adjusted */

}

.img-placeholder {
    display: block;
    background-color: #f3f2f2;
    /* TODO double check img upload */
    height: 100%;
    width: 100%; 
}

 .info-box { 
    display: grid;
    margin: 8%;
}

.tags_wrapper {
    display: grid;
    /* grid-template-columns: 1fr auto 8% 1fr auto; */
    grid-template-columns: minmax(0,1fr) auto 8% minmax(0,1fr) auto;
    grid-template-rows: repeat(6,  auto);
}

.query-title {
    grid-row: 1;
    grid-column: 1 / 3;
    font-size: 150%;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 12%;
}

.img-title {
    grid-row: 1;
    grid-column: 4 / -1;
    font-size: 150%;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 12%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
}

.tags-box-query {
    padding: 10%;
    border-right: 2px solid black;
}

.tags-box-match {
    padding: 10%;
}

.tool-options {
    margin: auto;
}

/* TODO make responsive */
.tablinks {
    cursor: pointer;
    color: black;
    background: white;
    font-size: 200%;
    font-weight: 600;
    border: none;
    margin-left: 50px;
    margin-right: 50px;  
    align-self: start;
} 

.tool-wrapper {
    display: grid;
    grid-template-rows: 1fr 0fr; 
    padding: 8%;
}

.tool-box {
    height: 100%;
    width: 100%;
}


.toolbar-wrapper {
    margin: auto;
    height: 100%;
    width: 100%;
}

.toolbar {
    width: 100%;
    height: 100%;
    justify-self: center;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.button {
    align-self: center;
    margin: auto;
    display: block;
    /* width:94%;
    height: 24%; */
    width: 100px;
    height: 40px;
    border: 2px solid black;
    cursor: pointer;
    color: black;
    background: white;
    font-weight: 700;
    font-size: 1.3em;
    border-radius: 20px;
}

.popup-container {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    width: 40%; 
    height: 80%;
    background:white;
    border: 2px solid black; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.popup-close-button {
    position: absolute;
    right: 0;
    padding: 5%;
    cursor: pointer;
    color: black;
    background: transparent;
    font-size: 150%;
    font-weight: 600;
    border: none;
}

.popup-box{
    width: 100%;
    height: 100%;
    padding:10%;
    background: white;
}

input[type="file"] {
    display: none;
}

.custom-file-upload_wrapper {
    align-self: center;
    width: 100px;
    height: 40px;
    border: 2px solid black;
}

.custom-file-upload {
    align-self: center; 
    margin: auto;
    width: 100px;
    height: 100px;
    border: 2px solid black;
    border-radius: 20px;
    cursor: pointer;
    color: black;
    background: white;
    font-size: 13px;
    font-weight: bold;
    margin-right: 5px;
    padding: 9.5px 17.2px 10px 17.2px;
    position: relative;
    bottom:0.5px;
}

.lazyload {
    height: 100%;
    width: 100%;
    display: none;
}

.error-sign {
    height: 100%;
    width: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.error-sign-wrapper {
    text-align: center;
}

.error-message-wrapper {
    padding: 10%;
    text-align: center;
}

.mobile-error-container {
    position: fixed;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1;
    padding: 10%;
    display: none;
    justify-content: center;
    align-items: center;
}

.mobile-error-box {
    background: white;
    text-align: center;
    vertical-align: middle;
}


/* https://dev.to/afif/i-made-100-css-loaders-for-your-next-project-4eje*/
.spinner-1 {
    width: 40px;
    height: 40px;
    border-radius:50%;
    border:3px solid;
    border-color: black;
    border-bottom-color: transparent;
    animation:s1 1s infinite linear;
    margin: auto;
  }

  @keyframes s1 {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  .material-icons {
  font-family: 'Material Icons';
  font-weight: bold;
  font-style: normal;
  font-size: 15px;  /* Preferred icon size */
  display: inline-block;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;

  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;

  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;

  /* Support for IE. */
  font-feature-settings: 'liga';

  position: relative;
  top: 2.2px;

}

.material-icons.error {
    font-size: 600%;
    margin: auto;
    font-weight: normal;
    justify-self: center;
}


@media screen and (max-width: 1179px) {
    .button {
        width: 68px;
        height: 38px;
    }

}

@media screen and (min-width: 1180px) {
    .button {
        width: 78px;
        height: 38px;
    }

}
  
@media screen and (max-width: 1279px) {
    /* .button {
        width: 68px;
        height: 38px;
    } */

    .app-title {
        font-size: 270%
    }

    .museum-title {
        font-size: 170%
    }

    .tablinks {
        font-size: 170%;
        padding-bottom: 2%
    }  

    .about-body {
        font-size: 140%;
    }

    .tag {
        font-size: 110%;
    }

    .query-title {
        font-size: 130%
    }

    .img-title {
        font-size: 130%;
    }

    .material-icons {
        font-size: 100%;
    }

    .material-icons.close {
        font-size: 120%;
    }

    .button {
        font-size: 120%;
    }

    p {
        font-size: 110%;
    }
}

@media screen and (min-width: 1280px) {
    /* .button {
        width: 80px;
        height: 40px;
    } */

    .app-title {
        font-size: 300%
    }

    .museum-title {
        font-size: 200%
    }

    .tablinks {
        font-size: 200%;
        padding-bottom: 3%
    }

    .about-body {
        font-size: 160%;
    }

    .tag {
        font-size: 130%
    }

    .query-title {
        font-size: 150%
    }

    .img-title {
        font-size: 150%
    }

    .material-icons {
        font-size: 100%;
    }

    .material-icons.close {
        font-size: 130%;
    }

    p {
        font-size: 130%;
    }
  }

@media screen and (min-width: 1366px) {
    .button {
        width: 90px;
        height: 40px;
    }
}

@media screen and (min-width: 1500px) {
    .button {
        width: 100px;
        height: 40px;
    }
}
  
@media screen and (max-width: 767px) {
    .mobile-error-container {
        display: flex;
    }
}
