.main-content{
    display: flex;
    width: 100%;
    flex-direction: column;
    margin-bottom: 40px;
}

#planet-and-buttons-container{
    display: flex;
    flex-direction: row;
}

#planet-grid{
    display: flex;
    td{
        font-size: 0px;
        width: 10px;
        height: 10px;
        max-width: 10px;
        min-width: 10px;
        max-height: 10px;
        min-height: 10px;
    }
}


#button-container{
    display: inline-block;
}

.planet-button{
    padding: 0;
    margin-right: 10px;
    background-color: black;
    width: 100px;
    height: 100px;
    background-size: contain;
}
.jupiter-button{
    background-image: url('/assets/pfp_generator/pfp_icon_jupiter.png');
}

.saturn-button{
    background-image: url('/assets/pfp_generator/pfp_icon_saturn.png');
}

.uranus-button{
    background-image: url('/assets/pfp_generator/pfp_icon_uranus.png');
}

.slidecontainer{
    padding: 0px;
    margin: 0px;
    margin-bottom: -30px;
    width: 100%;
}
#stripe_slider{
    width: 80%;
    margin-top: -30px;
}

table{
    display: inline-block;
    border-spacing: 0;
    padding: 10px;
}


#color_buttons{
    padding-top: 10px;
    display: flex;
    justify-content: space-around;
}

#color-picker{
    width: 200px;
}

.h3-button{
    h3{
        line-height: .8;
        margin: 17px 2px
    }
    line-height:1.5;
}



    #key-and-pattern{
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    #key-grid{
        min-width: 915px;
        text-align: center;
        table-layout:fixed;
        td{
            line-height: 0;
            border: 1px solid grey;
            width: 15px;
            height: 15px;
        }
        tr td:nth-child(10n) {  
        border-right: 2px solid black;
        }
        tr:nth-child(10n) td{  
        border-bottom: 2px solid black;
        }
    }

    #key{
        display: inline-block;
        padding-top: 10px;
        td{
            border: 1px solid grey;
            border-spacing: 0;
            padding: 3px;
        }
    }
.sym_cell{
    text-align: center;
}

#planet_buttons{
    display: flex;
    flex-wrap: wrap;
}

#stripe_buttons{
    display: flex;
    flex-wrap: wrap;
}

.stripe_button{
    border: 5px solid;
    padding: 3px 4px;
    margin: 1px;
    border-radius: 5px;
}



.button-label{
    line-height: 0;
    padding-top: 0%;
    padding-bottom: 0%;
    margin-top: 30px;
    margin-bottom: 30px;
}

.unused{
    display: none;
}

.description{
    padding-left: 10px;
    padding-right: 10px;
}


/* slider to toggle swinging */
.toggle_container{
    position: relative;
    text-align: right;
    margin-top: 10px;
    margin-right: 1%;

}


.toggle_label{
    border-radius: 10px;
    padding: 0px 5px;
    display: inline-block;
    line-height: 0;
    height: 34px;
}


/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  top:-8px;
  width: 58px;
  height: 32px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: lightgrey;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: rgb(39, 23, 23);
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked{
  background-color: teal;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
  background-color: red;
}

input:checked + .slider{
  background-color: var(--yellow);
}

#dim-container{
    margin: auto;
    display: flex;
    border: 1px solid black;
}

#dimensions{
    margin: auto;
    width: 100%;
    td{
        padding-left: 14px;
    }
    tr:nth-child(even){
        background-color: lightgrey;

    }
}

.dimension-text{
    max-width: 45%;
    margin: auto;
    padding-right: 10px;
}

.centered{
    text-align: center;
}
.no-desktop{
        display: none;
}

/*marginally smaller desktops*/
@media only screen and (max-width: 1200px){
    #key-and-pattern{
        flex-direction: column;
    }

}


/*Smaller desktops */
@media only screen and (max-width: 1080px){

    body{
        width: 90%;
        margin: auto;
        padding: 5%;
    }

    .main-content{
        width: 100%;
        padding: 10px;
    }
    #planet-grid{
        display: flex;
        td{
            width: 6px;
            height: 6px;
            max-width: 6px;
            min-width: 6px;
            max-height: 6px;
            min-height: 6px;
        }
    }

    #key-grid{
        min-width: unset;
        td{
            font-size: smaller;
            width: 12px;
            height: 12px;
        }
    }
}


@media only screen and (max-width: 860px) {
    .no-desktop{
        display: revert;
    }
    .no-mobile{
        display: none;
    }
    
    body{
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    h1{
        padding-bottom: 15px;
    }

    .main-content{
        margin-left: -10px;
        margin-right: 0px;
        max-width: 100%;
        width: 100%;
        padding: 10px;
        border-radius: 20px;
    }
    
    #planet-and-buttons-container{
        flex-direction: column;
    }
    

    #planet-grid{
        margin: auto;
        padding: unset;
        td{
            width: 5px;
            height: 5px;
            max-width: 5px;
            min-width: 5px;
            max-height: 5px;
            min-height: 5px;
        }
    }

    #button-container{
        display: flex;
        flex-direction: column;
    }

     #planet_buttons{
        padding-top: 5px;
        width: 100%;
        text-align: center;
        margin: auto;
    }

    .planet-button{
        display: block;
        width: 30%;
        height: 60px;
        margin-right: unset;
        margin: auto;
        background-size: contain;
        background-repeat: no-repeat;
         background-position: center;
    }
    .planet-button:hover{
        background-color: black;
    }

    .planet-label-and-buttons{
        display: flex;
        flex-direction: row;
        width: 100%;
    }

    .button-label{
        line-height: 1;
        height:50px;
        margin: 23px 15px 0px 5px;
    }

    .planet-style-label{

    }

   

    .slidecontainer{
        text-align: center;
        display: flex;
        flex-direction: column;
        padding: 15px;
        margin: auto;
        margin-bottom: unset;
        width: 100%;
    }

    .centered{
        margin: 0;
        padding: 0;
    }

    #stripe_buttons{
        margin-bottom: -5px;
        padding-left: 10px;

    }

    #stripe_slider{
        width: 70%;
        margin-top: unset;
    }

    .stripe_button{
        width: 30%;
        border: 10px solid;
        padding: 6px 0px;
        margin: 3px;
        border-radius: 5px;
    }

    #color_buttons{
        flex-direction: column;
        justify-content: flex-end;

    }

    #color-picker-container{
        display: flex;
        justify-content: space-around;
        height: 55px;
        margin: auto;
        padding-bottom: 20px;

    }

    .color-picker-label{
        margin: 10px;
        margin-top: 15px;
    }

    #color-picker{
        width: 150px;
        display: block;
        height:58px;
        margin-right: -1px;
        margin-top: -1px;
        padding-bottom: 2px;
        border: 1px solid black;
    }

    .calculate-dmc{
        margin: auto;

    }

    .toggle_container{
        margin-right: 5%;
    }

    #dim-container{
        margin-right: 20px;
        margin-left: 15px;
    }

    .description{
        padding-left: 20px;
        padding-right: 20px;
    }

    #key-and-pattern{
        padding: 0px;
        margin: 0px;
    }

    #key-grid{
        margin-left: -6px;
        min-width: unset;
        td{
            font-size: 0;
            width: 6px;
            height: 6px;
        }
    }

    .sym_cell{
        font-size: 0;
    }


}