:root {
    --dk-color:#504e80;
    --mid-color:#E4E6C3;
    --lt-color:#F7F7F2;
    --dkest-color:#261C15;
    --accent:#4b7ed7;
    --bg-color:#366D4B;
    --hover-color:#F7F7F2;
    --triangle-blue:#4b7ed7; /* || */
    --triangle-yellow: #d9b056; /* ||| */
    --triangle-darkblue: #425bb2;
    --triangle-brown: #896456; /* | */
    --triangle-tan: #cb9e71; /* |||| */
    --triangle-pink: #d2706b;
    --triangle-green: #319b74; 
    --triangle-dark-green: #1d6c43; 
    --triangle-coneflower: #5763b7; /* | */
    --triangle-orange: #ff7a38; /* faa43d */ /* | */
    --triangle-burgundy: #912e50; /* | */
    --triangle-teal : #57a8ca; /* || */
    --triangle-slate : #566c90; /* | */
    --triangle-purple : #8544c9; /* | */
    --triangle-lime : #6dc759; /* || */

    --blue:#4b7ed7;
    --yellow: #d9b056;
    --darkblue: #425bb2;
    --brown: #896456; 
    --tan: #cb9e71; 
    --pink: #d2706b;
    --green: #319b74; 
    --dark-green: #1d6c43; 
    --coneflower: #5763b7; 
    --orange: #ff7a38; 
    --burgundy: #912e50; 
    --teal : #57a8ca; 
    --slate : #566c90; 
    --purple : #8544c9; 
    --lime : #6dc759; 
}

 @font-face {
  font-family: optixal;
  src: url(/fonts/Optixal.ttf);
}

 @font-face {
  font-family: astalemtim;
  src: url(/fonts/Astalemtim.ttf);
 }

h1{
    font-family: astalemtim;
    font-size: xxx-large;
    font-weight: 100;
    font-smooth: never;
    padding: 0px;
    margin-bottom: 0%;
}

h3{
    font-family: optixal;
    font-size: 36px;
    font-weight: 100;
    font-smooth: never;
    line-height: 1;
    margin: 0px;
}

 header{
    margin: auto;
    line-height: 1.6;
    a{
        color: var(--dkest-color);
        padding: 1px;
        border-radius: 5px;
    }

    a:hover{
        background-color: var(--hover-color);
    }
 }

body{
    margin: auto;
    width: 90%;
    background-image: url(/fabric_tile.png);
    background-size: 1000px;
    background-position: 0%;
}

.leading_container{
    padding-bottom: 10px;
    height: fit-content;
}

.details{
    width: 30%;
    float: left;
    h3{
            margin-top: -13px;
        }
    a{
        color: var(--dkest-color);
        border: 2px solid var(--dkest-color);
        padding: 1px;
        border-radius: 5px;
    }

    a:hover{
        background-color: var(--hover-color);
    }
    }

#detail_fill_in p, li {
        font-size: medium;
    }


.photo_box{
    margin: auto;
    max-width: 40%;
}
.main_image{
    width: 90%;
    border: 2px solid rgb(40, 40, 55);
    box-shadow: 3px 3px 0px black;
    border-radius: 5px;
}

.right-sidebar{
    float: right;
    width:30%;
    display: flex;
    flex-direction: column;
}

.grid-container {
    width: 90%;
    height: fit-content;
    display: grid;
    padding-top: 10px;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 2px;
    .pattern {
        margin: 0rem 0rem 0rem 0rem;
        display: inline-block;
        padding: 1px;
        border-radius: 5px;
        transition: all .25s ease-in-out;

        &:hover {
        transform: scale(1.05);
        };
    img {
       width: 100%;
       border-radius: 5px;
       transition: all 1s ease-in-out;
    }
   }
}

#related-patterns-label{
    padding-top: 5px;
    padding-bottom: 10px;
    font-family: optixal;
    font-size: 36px;
    font-smooth: never;
}

#related-imgs{ /*the full panel of related images*/
    background-color:  rgba(255,255,255,0.8);
    padding: 5px;
    margin-bottom: 5px;
}

.related-set{ /*a set of related images and their category label*/
    white-space: nowrap;
    height: fit-content;
    overflow-x: scroll;
    overflow-y: hidden;
    margin: 5px;
    border: 1px solid black
}

.clickable-related-img{ /*the actual hyperlinked images*/
    width: 120px;
    padding: 3px 3px;
    
}
.clickable-related-img:hover{
    animation: shine 14s infinite -3.5s ease;

}

.related-label{
    height: 120px;
    display: inline-block;
    text-align: center;
    padding: 0px;
    margin: 0px;
    font-family: optixal;
    font-size: 24px;
    font-smooth: never;
    writing-mode: tb-rl;
    transform: rotate(-180deg);
    border-left: 2px solid black;
}

/*This set is for the previous and next images*/
/* Those divs also reuse stuff from the 'related image' set*/
#next-prev-container{ /*the full panel of related images*/
    background-color:  rgba(255,255,255,0.8);
    padding: 5px;
    margin-bottom: 5px;
}

#next-prev-patterns{ /*a set of related images and their category label*/
    white-space: nowrap;
    height: fit-content;
    overflow-x: scroll;
    overflow-y: hidden;
    margin: 5px;
    border: 1px solid black
}

.next-label{
    border: unset;
    border-right: 2px solid black;
    margin-left: 4px;

}
/*end next/prev set*/

.description{
    margin-top: 10px;
    background-color: rgba(255,255,255,0.8);
    border-radius: 10px;
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    box-shadow: rgba(99, 99, 99, 0.5) 0px 2px 8px 0px;
    p{
        font-size: medium;
        margin: 5px;
    }
}

.video_container{
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    max-width: 1280px;
    margin: 0 auto;
}

.video_container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


footer{
    text-align: center;
    font-size: 12px;
}

.triangle {
    position: fixed;
    top: 80px;
    left: 0;
    z-index: -999;
    width: 0%;
    height: 9%;
    border-right: calc(100vw) solid transparent;
    border-top: calc(90vh) solid var(--triangle-blue)
}
.rectangle{
    position: fixed;
    top: 0px;
    left: 0;
    z-index: -999;
    background-color: #1d6c43;
    height: 80px;
    width: 100%;
}

.video{
    min-width: 50%;
    max-width: 100%;
}

table{
    width: 90%;
    font-size: small;
    border-collapse: collapse;
    margin-bottom: 10px;
}

td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
  font-size: small;
}

tr:nth-child(even) {
  background-color: #dddddd;
}

.links{
    display: flexbox;
    flex-direction: row;
    width: 90%;
    text-align: center;
    a{
        padding: 3px;
    }
}


#tumblr_link{
    display: inline-block;
    width: 43%;
    font-family: optixal;
    font-smooth: never;
    font-size: x-large;
    text-decoration: none;
}

.link-divider{
    display: inline-block;
    padding: 0px 5px 0px 5px;
    margin: 0px;
}

#shop_link{
    display: inline-block;
    width: 43%; 
    font-family: optixal;
    font-smooth: never;
    font-size: x-large;
    text-decoration: none;   
}


@keyframes shine{
    0% {
        -webkit-mask-image: linear-gradient(
            135deg, 
            rgba(0,0,0,1) 0%, 
            rgba(0,0,0,1) 49.5%, 
            rgba(0,0,0,0) 50%,
            rgba(0,0,0,.2) 50.2%, 
            rgba(0,0,0,1) 51%,
            rgba(0,0,0,1) 100%
            );
        -webkit-mask-size: 5000% 5000%;
        -webkit-mask-repeat: repeat;
        -webkit-mask-position: 100% 100%;
    }
    100%{-webkit-mask-image: linear-gradient(
            135deg, 
            rgba(0,0,0,1) 0%, 
            rgba(0,0,0,1) 49.5%, 
            rgba(0,0,0,0) 50%,
            rgba(0,0,0,.2) 50.2%, 
            rgba(0,0,0,1) 51%,
            rgba(0,0,0,1) 100%
            );
        -webkit-mask-size: 5000% 5000%;
        -webkit-mask-repeat: repeat;
        -webkit-mask-position: 0% 0%;}
}



@media only screen and (max-width: 1000px) {

#pattern_title{
    text-align: center;
}

header{
    margin-top: -15px;
    margin-bottom: -10px;
    text-align: center;
}

.leading_container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    
}
.photo_box{
    margin: 0%;
    max-width: none;
    padding-left: 20px; /*WHY DO I NEED THIS???*/
}

.main_image{
    max-height: calc(60vh);
}

.grid-container{
    max-height: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid black;

    .pattern {
        max-width: 15%;
    }
}
.details{
    float: unset;
    display: flex; /*NEEDS to be flex, not flexbox!*/
    flex-direction: column;
    text-align: center;
    order: 2;
    padding: 0px;
    margin-top: 5px;
    width: 95%;
    background-color: rgba(255,255,255,0.8);
    padding: 1px 10px;
    border-radius: 10px;
    box-shadow: rgba(99, 99, 99, 0.5) 0px 2px 8px 0px;
    text-align: center;
    h3{
        padding-top: 20px;
        order: 2;
        }
}

#detail_fill_in{
    order:3;
    width: fit-content;
    float: unset;
    display: block;
    margin: auto;

    ul{
        margin-left: -30px; /*to account for the empty space where the list dot would go*/
        display: flex;  
        flex-wrap: wrap;
    }
    li{
        list-style-type:none;
        padding: 10px;
        border-left: 2px solid black;
        
        }
        li:nth-child(3n-2){
            border: unset;

    }
}

#related-patterns-label{
    text-align: center;
}
.right-sidebar{
    order: 4;
    float: unset;
    background-color:  rgba(255,255,255,0.8);
    margin-top: 10px;
    border-radius: 10px;
    width: 98%;
    display: flex;
}

#related-imgs{
    background-color: unset;
}
.links{
    order: 4;
    font-size: small;
    text-align: center;
    margin: auto;
    padding: 10px 0px 15px;
}

.description{
    order: 3;
    width: 95%;
}
table{
    margin: 0 auto;
    margin-bottom: 10px;
}


}