* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}



::-webkit-input-placeholder {
    color: rgba(0, 0, 0, 0.4);
}

@media only screen
  and (orientation: portrait) {
    :root {
        --main-color: #81d4a4;
    }
}

@media only screen
  and (orientation: landscape) {
    :root {
        --main-color: #81d4a4;
    } 
}

html {
    -ms-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    -webkit-touch-callout: none;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: auto;
    -ms-overflow-style: none; 
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
    scrollbar-width: none; 
    background: var(--main-color);
}

body {
    -ms-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    -webkit-overflow-scrolling: auto;
    -ms-touch-action: none;
    overscroll-behavior: none;
    touch-action: none;
    margin: 0;
    position: fixed;
    width: 100%;
    height: 100%;
}

header {
    position: fixed;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    border: none;
    background: var(--main-color);
}

main {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;  
    background: #81d4a4;
    overflow-x: hidden;
    overflow-y: scroll;
}

main::-webkit-scrollbar {
    display: none;
}

.scroll-window::-webkit-scrollbar {
    display: none;
}

#image-viewer {
    z-index: 999;
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;  
    background: #000000;
    overflow: scroll;
    touch-action: pinch-zoom;
}

#image-viewer::-webkit-scrollbar {
    display: none;
}

#information-frame {
    z-index: 999;
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: auto;
    background: #4ba06e;
}

#information-window {
    z-index: 999;
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    top: 0;
    width: 90%;
    height: 60px;
    margin-top: 10px;
    padding: 5px;
    border-radius: 10px;
    background: #4ba06e;
    box-shadow: 0px 0px 2px #00000033;
}

#strain-viewer-frame {
    opacity: 0;
    z-index: 900;
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;

}

#strain-viewer {
    z-index: 900;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 96%;
    height: 90%;
    margin-top: 20px;
    border-radius: 10px;
    border: none;
    overflow: hidden;
}

#close-strain-viewer {
    z-index:900;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    color: #ffffff;
    width: 30px;
    height: 30px;
    margin: 5px;
}

#information-text {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 12px;
}

#information-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

#timeline {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 20%;
}

#timeline-label {
    width: auto;
    height: auto;
    font-size: 10px;
    text-align: center;
}

#timeline-circle-attention {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    border: 2px solid #000000;
    outline: 1px solid #000000;
    background-color: #a30000;
}

#timeline-circle-active {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    border: 2px solid #000000;
    outline: 1px solid #000000;
    background-color: #00a300;
}

#timeline-circle {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    border: 2px solid #000000;
}

#timeline-pin {
    width: 2px;
    height: 6px;
    background-color: #000000;
}

#timeline-line {
    width: 6px;
    height: 2px;
    background-color: #000000;
}

#box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: auto;
    height: auto;
}

#box-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    width: auto;
    height: auto;
}

#box-max {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    height: auto;
}

#box-centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
}

#box-max-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    height: auto;
}

#date-box {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 16px;
    width: 100%;
    height: auto;
    text-decoration: underline;
    font-weight: bold;
}

#text-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 12px;
    width: 100%;
    height: auto;
}

#margin-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 10px;
    width: auto;
    height: auto;
}

#margin-box-max {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 10px;
    width: 100%;
    height: auto;
}

#margin-box-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin: 10px;
    width: auto;
    height: auto;
}

#ferti-box {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    width: 90%;
    height: auto;
    font-size: 12px;
}

#entry-box {
    z-index: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
    padding: 5px;
    line-break: normal;
    font-size: 14px;
    background: #00000011;
}

#entry-images {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    width: 90%;
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
    padding: 5px;
    line-break: normal;
    font-size: 14px;
    background: #c2ffdb;
    box-shadow: 0px 5px 10px #00000033;
}

#watering-observer {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 46px;
    background-color: #ffffff22;
    border-radius: 10px;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 2px 2px 2px #00000044;
}

#close-state-information-window {
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: #000000;
    width: 30px;
    height: 30px;    
}

#project-selector {
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    width: 100%;
    height: auto;
    border: none;
    font-size: 12px;
    font-weight: bold;
    background: transparent;
    color: #000000;
    padding: 0;
    margin: 0;
    outline: none;
}

#plant-box {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 24%;
    height: auto;
    font-size: 10px;
    margin-bottom: 5px;
    text-align: center;
}

#menu-view {
    cursor: pointer;
    font-size: 28px;
}

#user-pref {
    cursor: pointer;
    font-size: 24px;
    margin-right: 15px;
}

#menu-box {
    position: fixed;
    background: #81d4a4;
    top: 40px;
    left: 0;
    display: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

#add-new-project {
    cursor: pointer;
    font-size: 20px;
}

#project-preferences {
    cursor: pointer;
    font-size: 20px;
}

#add-new-entry {
    cursor: pointer;
    font-size: 20px;
}

#log-view {
    cursor: pointer;
    font-size: 20px;
}

#add-fertilizer {
    cursor: pointer;
    font-size: 12px;
    background: #96d4b1;
    border: 1px solid #283f31;
    border-radius: 5px;
    padding: 3px;
}

#remove-fertilizer {
    cursor: pointer;
    font-size: 12px;
    background: #96d4b1;
    border: 1px solid #283f31;
    border-radius: 5px;
    padding: 3px;
}

#upload-image {
    cursor: pointer;
    font-size: 20px;
    color: #ffffff;
}

.action-button {
    cursor: pointer;
    font-size: 14px;
    color: #000000;
    background: #9ddab7aa;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    padding: 5px;
    outline: none;
}

.action-pref-button {
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 32px;
    font-size: 14px;
    color: #000000;
    background: #9ddab7aa;
    border-radius: 5px;
    font-weight: bold;
    padding: 5px;
}

.menu-button {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 46px;
    background-color: #ffffff22;
    border-radius: 10px;
    width: 49%;
    height: 160px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 2px 2px 2px #00000044;
}

.menu-button-full {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 46px;
    background-color: #ffffff22;
    border-radius: 10px;
    width: 100%;
    height: 160px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 2px 2px 2px #00000044;
}

#view-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 46px;
    background-color: #ffffff22;
    border-radius: 10px;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 2px 2px 2px #00000044;
}

.user-pref-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 46px;
    border-radius: 10px;
    width: 100%;
    height: 160px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0px 0px 4px #00000044;
}

#user-preferences {
    z-index: 999;
    position: fixed;
    top: 45px;
    right: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    width: 200px;
    height: auto;
}

#delete-entry {
    cursor: pointer;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    border-radius: 15px;
    color: #a3000099;
    width: auto;
    height: 30px;
}

.show-up-box {
    display: none;
}

#close-image-viewer {
    cursor: pointer;
    position: fixed;
    top: 0;
    right: 0;
    margin: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    color: #ffffff;
    width: 30px;
    height: 30px;
}

#list-mode {
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: #000000;
    width: 20px;
    height: 20px;
}

#typing-mode {
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: #000000;
    width: 20px;
    height: 20px;
}

#reset-app {
    cursor: pointer;
    font-size: 20px;
    margin-left: 5px;
    margin-right: 5px;
}

#spacer {
    display: flex;
    width: auto;
    min-height: 50px;
}

#input-box-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 5px;
    width: 100%;
    height: auto;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background: #00000011;
    margin-bottom: 1px;
}

#input-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 5px;
    width: 100%;
    height: auto;
    background: #00000011;
    margin-bottom: 1px;
}

#input-box-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 5px;
    width: 100%;
    height: auto;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    background: #00000011;
}

#input-box-single {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-radius: 5px;
    padding: 5px;
    width: 100%;
    height: auto;
    background: #00000011;
    margin-bottom: 1px;
}

.input-f20-max {
    cursor: text;
    color: #000000;
    border: none;
    border-bottom: 2px solid #00000033;
    background-color: transparent;
    font-size: 14px;
    width: 100%;
    height: 30px;
    outline: none;
    border-radius: 0;
}

.inputs {
    cursor: text;
    color: #000000;
    border: none;
    border-bottom: 2px solid #00000033;
    background-color: transparent;
    font-size: 14px;
    width: 100%;
    height: 30px;
    outline: none;
    border-radius: 0;
}

#strain-state:disabled {
    opacity: 0.5;
} 

#strain-state:enabled {
    opacity: 1;
} 

.hidden-input {
    visibility: hidden;
}

#template {
    cursor: text;
    color: #000000;
    border: none;
    border-bottom: 2px solid #00000033;
    background-color: transparent;
    font-size: 14px;
    width: 100%;
    height: 30px;
    outline: none;
    border-radius: 0;
}

#section-title {
    font-size: 20px;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    border-radius: 10px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    border-bottom: 1px solid #00a30044;
    width: 100%;
    padding: 10px;
    background: #e6fff1;
    box-shadow: 2px 0px 2px #00000044; 
}

#project-image {
    font-size: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    border-top-left-radius: 10px;
    background-color: #00000033;
    width: 60px;
    height: 60px;
    margin-right: 10px;
    overflow: hidden;
    box-shadow: 0px 0px 10px #00000044;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    box-shadow: 0px 0px 2px #00000033;
}

.plant-overview {
    font-size: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    border-radius: 15px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom: 1px solid #00a30044;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 5px;
    background: #d2ffe5;
    box-shadow: 2px 2px 2px #00000044; 
}

.header-img {
    width: 30px;
    height: auto;
}

.entry-img {
    z-index: 999;
    cursor: pointer;
    width: 50px;
    height: 50px;
    margin-left: 5px;
    margin-right: 5px;
    margin-bottom: 3px;
    border-radius: 15px;
}

.observer-img {
    z-index: 999;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    box-shadow: 0px 0px 4px #000000ac;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #00a30044;
}

.div-img {
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    cursor: pointer;
    width: 40px;
    height: 40px;
    margin-left: 5px;
    margin-right: 5px;
    margin-bottom: 3px;
    border-radius: 15px;
    font-size: 10px;
    background-color: #00000011;
    border: 1px solid #00000066;
}

.viewer-img {
    width: auto;
    height: auto;
}

.small-img {
    width: 20px;
    height: auto;
}

.loading-circle {
    border: 3px solid #00000044;
    border-top: 3px solid #caffe0;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    animation: spin 1s linear infinite;
}

.return-loading-circle {
    border: 3px solid #00000044;
    border-top: 3px solid #caffe0;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    animation: spin 1s linear infinite;
}

.strain-picture-frame {
    z-index: 900;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 200px;
    font-size: 26px;
    border: none;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    background-color: #000000;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
