:root {
    --bulma-primary-h: 213deg;
    --bulma-primary-s: 90%;
    --bulma-primary-l: 79%;
    --bulma-link-h: 213deg;
    --bulma-link-s: 64%;
    --bulma-link-l: 53%;
    --bulma-family-primary: Lato,SF Pro,Segoe UI,Roboto,Oxygen,Ubuntu,Helvetica Neue,Helvetica,Arial,sans-serif;
    --bulma-family-secondary: Lato,SF Pro,Segoe UI,Roboto,Oxygen,Ubuntu,Helvetica Neue,Helvetica,Arial,sans-serif;
    --bulma-body-family: Lato,SF Pro,Segoe UI,Roboto,Oxygen,Ubuntu,Helvetica Neue,Helvetica,Arial,sans-serif;
}

html {
scroll-behavior: smooth;
}

p a, span a {
    text-decoration: underline;
}

#ruler-svg {
    padding-top: calc(-30px + 100vh);
    height: 30px;
    box-sizing: content-box;
    border-right: 1px solid white;
    width: calc(100vw - 1px);
    margin-left: -1px;
}

#ruler-width-text {
    color: white;
    position: absolute;
    right: 10px;
    margin-top: -7px;
    top: 6px;
    font-size: 0.9em;
}

#ruler-width-text-edit {
    position: absolute;
    top: 0px;
    right: 6px;
    width: 80px;
    height: 24px;
    text-align: center;
    display: none;
}

a.navbar-item:hover {
    background-color: #ffffff40;
}

#ruler {
    background-color: #202124; 
    width: 100vw; 
    height: 100vh;
    overflow: hidden;
}

/** Ruler quarters **/
div#ruler-quarters {
    width: calc(-2px + 100vw);
    box-sizing: content-box;
    overflow: hidden;
    border-right: 1px solid white;
    padding-top: calc(-30px + 100vh);
}
#ruler-quarters .quarter {
    width: 25vw;
    height: 20px;
    float: left;
    border-right: 1px solid white;
    margin-top: 10px;
    box-sizing: border-box;
}
#ruler-quarters .quarter:nth-child(2) {
    height: 30px;
    margin-top: 0px;
}


/** Ruler thirds **/
div#ruler-thirds {
    width: calc(-2px + 100vw);
    box-sizing: content-box;
    overflow: hidden;
    border-right: 1px solid white;
    padding-top: calc(-30px + 100vh);
}
#ruler-thirds .third {
    width: 33.3333vw;
    height: 30px;
    float: left;
    border-right: 1px solid white;
    margin-top: 0px;
    box-sizing: content-box;
}

/** Buttons **/
.circle-btn {
    position: fixed;
    width: 24px;
    height: 24px;
    bottom: 6px;
    right: 9px;
    background-size: cover;
    background-position: center;
    opacity: .7;
    transition: opacity .25s;
}

.circle-btn:hover {
    opacity: 1;
}

div#calibrate-btn {
    bottom: unset;
    top: 0px;
    right: 65px;
    width: 20px;
    height: 20px;
}

/* Tooltip text */
#calibrate-btn .tooltiptext {
    visibility: hidden;
    background-color: black;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 0px 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    right: 22px;
    width: 140px;
}
  
  /* Show the tooltip text when you mouse over the tooltip container */
  #calibrate-btn:hover .tooltiptext {
    visibility: visible;
  }


/** Vertical ruler **/
.vertical-ruler svg#ruler-svg {
    rotate: 90deg;
    width: calc(-2px + 100vh);
}

.vertical-ruler #ruler-width-text {
    bottom: 7px;
    top: unset;
}

.vertical-ruler #ruler-width-text-edit {
    top: unset;
    bottom: 6px;
}

.vertical-ruler #rotate-btn {
    bottom: 38px;
}

.vertical-ruler #change-ruler-btn {
    bottom: 38px;
}

/** Ruler thirds **/
.vertical-ruler div#ruler-thirds {
    border-right: 0px;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    height: calc(-2px + 100vh);
    padding-top: 0px;
}

.vertical-ruler div#ruler-thirds .third {
    height: 33.333vh;
    border-right: 0px;
    border-bottom: 1px solid white;
    width: 30px;
    float: none;
}

/** Ruler quarters **/
.vertical-ruler div#ruler-quarters {
    border-right: 0px;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    height: calc(-2px + 100vh);
    padding-top: 0px;
}

.vertical-ruler div#ruler-quarters .quarter {
    height: 25vh;
    border-right: 0px;
    border-bottom: 1px solid white;
    width: 20px;
    float: none;
    margin-top: 0px;
}

.vertical-ruler div#ruler-quarters .quarter:nth-child(2) {
    width: 30px;
    margin-top: 0px;
}


@media all and (display-mode: picture-in-picture) {
    body {
      margin: 0;
      background-color: #202124; 
    }
    body::-webkit-scrollbar {
        display: none;
    }
  }




/** Homepage **/

#ruler-preview {
    width: 100%;
    max-width: 850px;
    display: block;
    margin: 0 auto;
    margin-bottom: -90px;
    margin-top: -50px;
}

#incompatible-message {
    display: none;
}

.incompatible-browser button#pipButton {
    opacity: .95;
    color: #c5c4d3;
    background: #eeeeee;
    cursor: not-allowed;
    border: 0px solid white;
}

.incompatible-browser #incompatible-message {
    display: block;
}

