@import "./style.css";

body {
    scroll-behavior: smooth;
}

#sec1 .content.centered {
    height: 100%;
    justify-content: center !important;
    align-items: center !important;
}
.rect-button {
    width: fit-content;
}

.makerspace-nav {
    display: none;
}

#sec1 {
    background-image: url("./images/shop\ top\ view.HEIC");
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 100%;
    color: white;
}

#sec1 .content.centered {
    width: 100%;
    background-color: rgba(211, 211, 211, 0.635);
    color: black;
}
#sec2 {
    height: fit-content;
    min-height: 150%;
}
#sec2 .content {
    position: relative;
    display: block;
    top: 0px;
    width: 90%;
    height: fit-content;
}
#sec2 .mobile .title {
    margin-bottom: 0 !important;
}
#tool-dropdown-mobile-wrapper {
    position: relative;
    top: 2.5%;
    width: 100%;
    height: 50px;
    background-color: green;
    z-index: 3;
}
#selected-tool-wrapper {
    width: 100%;
    height: 100%;
}
#selected-tool-wrapper img {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 15px; 
    border-radius: 50%;
    background-color: green;
}
#tool-dropdown-mobile-wrapper .flex.row {
    justify-content: center;
    align-items: center;
    color: white
}

#tool-dropdown {
    width: 100%;
    height: 300px;
    background-color: green;
    overflow: scroll;
    display: none;
}
.flex.row.tool {
    width: 90%;
    height: 50px;
    margin: 0px 5%;
    border-bottom: 1px solid white;
}
.flex.row.tool.hidden {
    display: none;
}
#tool-dropdown.open {
    display: block !important;
}

.content.centered.mobile .flex.col.wrapper {
    min-height: fit-content;
    justify-content: space-between;
}

#tool-images-mobile {
    position: relative;
    margin-top: 20%;
    width: 100%;
    height: fit-content !important;
    min-height: 200px;
    z-index: 0;
}

.tool-image-wrapper, .tool-image-wrapper-desktop {
    position: relative;
    display: none;
    width: 100%;
    height: fit-content;
}
.tool-image-wrapper.displayed, .tool-info-wrapper.tool-text-wrapper.displayed {
    display: inline-block;
}
.tool-image.portrait {
    display: block;
    max-height: 480px;
    width: auto;
}
.tool-image.landscape {
    width: 100%;
    height: auto;
}
#tool-info-mobile {
    position: relative;
    top: 2.5%;
    width: 100%;
    height: fit-content;
}
#tool-info-mobile .tool-text-wrapper {
    position: relative;
    display: none;
    height: fit-content;
}
.tool-text-wrapper.displayed {
    display: block !important;
}
#tool-info-mobile {
    display: block;
}
.content.centered.large {
    display: none !important;
}

#sec3 .content {
    height: 100%;
    justify-content: flex-start;
    align-items: flex-start;
}
#pricing-wrapper {
    width: fit-content;
    height: 70%;
    overflow-x: scroll;
    scroll-behavior: smooth;
    
}
#pricing {
    position: relative;
    top: 0px;
    left: 0px;
    width: 300%;
    height: 80%;
}
.pricing-column {
    position: relative;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    flex-grow: 1;
}
.pricing-column .subtitle {
    text-align: center;
}
h2.centered {
    text-align: center;
}
.price {
    color: green;
    text-align: center;
}
#toggle-wrap {
    width: 80%;
    justify-content: space-between;
    align-items: center;
}
#dots-wrapper {
    width: 200px;
    height: 50px;
    justify-content: space-around;
    align-items: center;
}
.dot {
    width: 25px;
    height: 25px;
    background-color: lightgrey;
    border-radius: 50%;
}
.dot.selected {
    background-color: green;
}
.toggle-arrow {
    width: 25px !important;
    height: 25px !important;
}
#sec4 {
    height: 130%;
}
#sec4 .content.centered {
    flex-flow: column;
    justify-content: space-between;
    text-align: center;
}
@media screen and (max-width: 1000px) and (max-height: 450px) {
    #sec1 {
        background-size: 100%;
    }
    #sec2 .flex.col.wrapper {
        margin-top: 10%;
        height: fit-content;
        flex-flow: row;
    }
    #tool-info-mobile h2.centered {
        margin: 0;
        margin-left: 15px;
        text-align: left;
    }
    #tool-images-mobile {
        margin: 0;
    }
    .tool-image.portrait {
        width: 100%;
    }
    #tool-dropdown-mobile {
        height: 75px;
    }
    #tool-images-mobile {
        margin-top: 10%;
        width: 33%;
    }
    #tool-info-mobile {
        width: 60%;
    }
    #sec3 {
        height: 225%;
    }
    #sec4 {
        height: 300%;
    }
}

@media screen and (min-width: 1100px) {
    #scroll-wrapper {
        position: relative;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 200%;
        overflow: scroll;
    }
    #sec1 {
        height: calc(100% - 150px);
        margin-bottom: 7.5px;
        background-size: 100% auto;
    }
    #sec1 .content.centered {
        width: 100%;
        background-color: transparent;
        font-style: bold;
        color: green;
    }
    #sec1 .textbox {
        background-color: rgba(211, 211, 211, 0.9);
        padding: 1.5%;
        color: black;
        text-align: center;
    }
    #sec1 .textbox h1 {
        margin-top: 0;
    }
    .makerspace-nav {
        position: sticky;
        display: block;
        width: 30%;
        height: 75px;
        top: 12.5px;
        background-color: white;
        z-index: 2;
    }
    .makerspace-nav.shadow {
        border-radius: 10px;
        box-shadow: 2px 2px 20px lightgrey;
    }
    .makerspace-nav .flex.row {
        width: 90%;
        height: 25px;
        justify-content: space-between;
    }
    .makerspace-nav-button {
        width: fit-content;
        text-align: center;
    }
    .makerspace-nav-button:hover {
        cursor: pointer;
        color: green;
    }
    .makerspace-nav-button.selected {
        color: green;
    }
    #line {
        position: relative;
        left: 20px;
        margin-top: 25px;
        width: 15px;
        height: 3px;
        background-color: green;
    }
    #sec2 {
        height: calc(100% - 75px);
        min-height: unset;
    }
    .content.centered.mobile {
        display: none !important;
    }
    .content.centered.large {
        display: flex !important;
        width: 100%;
        height: 100%;
        flex-flow: column !important;
        justify-content: space-around;
    }
    .content.centered.large .flex.row {
        position: relative;
        top: 5%;
        width: 100%;
        height: 550px;
        justify-content: space-between;
        align-items: flex-start;
    }
    .content.large .title {
        top: 25px; 
    }
    .flex.col.wrapper {
        flex-flow: column;
    }
    #tool-info {
        width: 50%;
        height: 550px;
        justify-content: space-between;
        align-items: flex-start;
    }
    #expansion-button-wrapper {
        top: 0px;
        position: relative;
        width: 100%;
        min-height: 50px;
        justify-content: center;
        align-items: center;
    }
    #expansion-button {
        display: none;
        color: green;
        margin-top: 0;
        width: 30px;
        height: 5px;
        padding: 10px;
        background-color: lightgrey;
        border-radius: 15px;
        font-size: 1em !important;
        line-height: 0;
    }
    #expansion-button:hover {
        cursor: pointer;
        background-color: rgb(240, 240, 240);
    }
    #expansion-button.visible {
        display: unset;
    }

    .tool-text-wrapper-desktop {
        display: none;
    }
    .specs-desktop {
        width: 100%;
        height: 250px;
        padding: 25px;
        overflow-y: hidden;
        scrollbar-color: rgb(32, 172, 32);
        scroll-behavior: smooth;
    }
    .specs-desktop.scrollable {
        overflow-y: scroll !important;
    }
    .tool-text-wrapper-desktop.displayed {
        width: 100%;
        display: block !important;
    }
    .tool-image-wrapper-desktop.displayed {
        display: block !important;
    }
    #tool-images {
        position: relative;
        width: 40%;
        height: 100%;
        min-height: 400px;
        justify-content: center;
        align-items: center;
    }
    #tool-image-wrapper {
        width: 100%;
        height: fit-content;
    }
    .tool-image-wrapper-desktop {
        position: absolute;
        top: 0px;
        right: 0px;
        width: fit-content;
        height: fit-content;
    }
    .tool-image-wrapper-desktop.landscape {
        height: 400px;
        top: 20%;
    }
    .tool-image.portrait {
        width: auto;
        height: 550px;
    }
    .tool-image.landscape {
        width: 500px !important;
        height: auto;
    }
    #tool-nav {
        width: 100%;
        height: 150px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .tool-button {
        width: fit-content;
        height: fit-content;
        padding: 5px 10px;
        border: 1px solid green;
        border-radius: 10px;
        margin-right: 10px;
        margin-bottom: 10px;
    }
    .tool-button:hover {
        cursor: pointer;
    }
    .tool-button:hover, .tool-button.selected {
        background-color: green;
        color: white;
    }
    
    #sec3 {
        height: calc(100% - 75px);
    }
    #sec3 .content {
        justify-content: space-around;
    }

    #pricing-wrapper {
        width: 100%;
    }
    #pricing {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
    .pricing-column {
        width: 25%;
        padding: 3%;
        border-right: 1px solid lightgrey;
    }
    .pricing-column:nth-child(3) {
        border: none;
    }
    #dots-wrapper, .toggle-arrow {
        display: none;
    }

    #sec3 {
        height: 125%;
        top: 100px;
    }
    #sec4 {
        height: 50%;
    }
    #sec4 .content.centered {
        flex-flow: row;
        justify-content: space-between;
    }
    #sec4 .text-area {
        width: 40%;
        padding: 5%;
        text-align: center;
    }
    #sec3 .title {
        color: green;
    }
    #sec4 {
        height: 75%;
    }
    #sec4 .content.centered {
        height: 100%;
    }
}