/* FALLBACK COMPATIBILITY */

@supports not (aspect-ratio: 1/1) { 
	.failAR11::before {
		float: left;
		padding-top: 100%;
		content: '';
		}
	.failAR11::after {
		display: block;
		content: '';
		clear: both;
  		}
	}

@supports not (aspect-ratio: 5/4) { 
	.failAR54::before {
		float: left;
		padding-top: 80%;
		content: '';
		}
	.failAR54::after {
		display: block;
		content: '';
		clear: both;
  		}
	}
@supports not (aspect-ratio: 4/5) { 
	.failAR54::before {
		float: left;
		padding-top: 120%;
		content: '';
		}
	.failAR54::after {
		display: block;
		content: '';
		clear: both;
  		}
	}

@supports not (aspect-ratio: 4/3) { 
	.failAR43::before {
		float: left;
		padding-top: 75.00%;
		content: '';
		}
	.failAR43::after {
    		display: block;
    		content: '';
    		clear: both;
  		}
	}
@supports not (aspect-ratio: 3/4) { 
	.failAR34::before {
		float: left;
		padding-top: 133.33%;
		content: '';
		}
	.failAR34::after {
    		display: block;
    		content: '';
    		clear: both;
  		}
	}

@supports not (aspect-ratio: 5/7) { 
	.failAR57::before {
		float: left;
		padding-top: 140.00%;
		content: '';
		}
	.failAR57::after {
		display: block;
		content: '';
		clear: both;
  		}
	}

@supports not (aspect-ratio: 7/5) { 
	.failAR75::before {
		float: left;
		padding-top: 71.43%;
		content: '';
		}
	.failAR75::after {
		display: block;
		content: '';
		clear: both;
		}
	}

/* GLOBAL SETTINGS AND VARIABLES */
    :root {
        --gutter: 3.5vw;
        --spacer: 15vw;
        --lineHeight: 2rem;
        --trackWidth: 100%;
        --formWidth: min(85%, 420px);
        --colorBackground: #fff;
        --colorFade: #a9a9aa;
        --colorFont: #1b1b1c;
    }

    * {
        /*overscroll-behavior: auto;*/
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        text-decoration: none;
        list-style: none;
    }
    
/* PAGE SETTINGS AND FONTS */
    @font-face {
        font-family: PTSansN;
        src: url("../fonts/PTN57F.ttf");
    }
    @font-face {
        font-family: PTSansNBold;
        src: url("../fonts/PTN77F.ttf");
    }
    @font-face {
        font-family: PapyrusCondensed;
        src: url("../fonts/PapyrusCondensed.ttf");
    }
    html {
        font-family: PTSansN, PapyrusCondensed;
        font-size: 16px;
        letter-spacing: 0.45px;
        -webkit-font-smoothing: subpixel-antialiased;
        color: var(--colorFont);
        image-rendering: pixelated;
        scroll-behavior: smooth;
        background-color: var(--colorBackground);
        overflow-x: hidden;
        background: #000;
    }
    a {
        color: var(--colorFont);
        cursor: pointer;
    }
    h1 {                                    /* LARGE HEADINGS FEATURES & PAGE TITLES */
        font-size: 1.7rem;
    }
    h2 {                             /* MENUS */
        font-size: 1.45rem;
        line-height: var(--lineHeight);
        letter-spacing: 0.05rem;
    }
    h3, details, summary, select, input, label {                           /* SUB HEADINGS */
        font-family: inherit;
        font-size: 1.18rem;
        font-weight: bold;
        line-height: var(--lineHeight);
    }
    details {
        position: relative;
        width: 100%;
        cursor: pointer;
    }
    details::before {
        position: absolute;
        right: 1rem;
        font-size: 0.6rem;
        color: var(--colorFont);
        line-height: 3rem;
        content: "▼";
        z-index: 0;
    }
    details[open]::before {
        content: "▲";
    }
    details p {
        font-weight: normal;
    }
    summary {
        width: 100%;
        line-height: 3rem;
    }
    h4, .notes {                            /* FOOTER TEXT, SHOPPING CART NUMBER */
        font-size: 0.9rem;
    }
    p {                                    /* PARAGRAPH */
        font-size: 1.2rem;
        margin: 1rem 0;
    }
    u {
        text-decoration: underline;
    }
    button {
        font-family: PTSansN;
        font-size: 1.1rem;
        font-weight: bold;
        border: 0;
        background-color: #ffffff00;
    }
    select, select:focus, input {
        position: relative;
        -webkit-appearance: none;
        appearance: none;
        outline: none;
        border: solid 0.1rem var(--colorFont);
        border-radius: 0;
        padding: 0 0.5rem;
        font-weight: normal;
        color: var(--colorFont);
        line-height: 2.2rem;
        background: transparent;
        outline: none;
        cursor: pointer;
        z-index: 1;
    }
    input:-webkit-autofill {
        -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    }
    select, select:focus {
        border: none;
    }
    .selectArrow {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .selectArrow::after {
        position: absolute;
        right: 1rem;
        font-size: 0.6rem;
        content: "▼";
        z-index: 0;
    }
    img {
        -webkit-user-drag: none;
    }
    
/* MAIN GRID AND FLEX LAYOUTS */
    body {
        height: 100vh;
        height: 100svh;
        width: 100vw;
        display: grid;
        overflow-x: hidden;
        background: var(--colorBackground);
    }
    
@media (max-aspect-ratio: 5/4) {
    body {
        grid-template-columns: 100vw;
        grid-template-rows: 30% 70%;
    }
}
@media (min-aspect-ratio: 5/4) and (max-width: 1280px) {
    body {
        grid-template-columns: 40vw 60vw;
        grid-template-rows: 100%;
    }
}
    main {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
        width: 100%;
        padding: 0 var(--gutter);
    }
    main > section, main > aside {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: fit-content;
        width: var(--trackWidth);
    }
    
/* BUTTONS */
    button {
        height: var(--lineHeight);
        text-align: center;
        cursor: pointer;
    }
    .scrollArrows {
        position: absolute;
        display: none;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        width: 100vw;
        pointer-events: none;
        z-index: 1;
    }
    .scrollArrows button{
        font-size: 2rem;
        width: 5rem;
        color: var(--colorFont);
        background: var(--colorBackground);
        pointer-events: all;
    }
    button.submit, button.addToCart {
        height: 2.5rem;
        width: 100%;
        border: 0;
        color: var(--colorBackground);
        background-color: var(--colorFont);
        font-weight: narrow;
    }
    button.favBtn {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 3rem;
        border: 0;
        padding: 0.5rem;
        z-index: 1;
    }
    button.favBtn > img {
        height: 100%;
    }
/* PAGEBAR ELEMENT */
    section.pagebar {
        display: flex;
        width: 100%;
        padding: 0 var(--gutter);
        flex-direction: row;
        justify-content: space-between;
        }
    button.pagebarPrev, button.pagebarNext {
        display: flex;
        align-items: center;
        justify-content: center;
        visibility: hidden;
        background-color: var(--colorBackground);
        line-height: 2rem;
        width: 70px;
        text-align: center;
    }
        
/* POPUP ELEMENT */
    #popupCtr {
        position: fixed;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100vw;
        background: #aaaaaa88;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s;
        z-index: 10;
    }
    #popupCtr .popup {
        display: flex;
        align-items: center;
        justify-content: center;
        height: min(600px, 45vh);
        width: min(800px, 60vw);
        padding: var(--gutter);
        background: var(--colorBackground);
    }
    
@media only screen and (min-width: 480px) { /* large phone or tablet */
    :root {
        --trackWidth: min(100%, 480px);
    }
@media (min-aspect-ratio: 5/4) {
    main {
        margin-top: var(--gutter);
    }
    .scrollArrows {
        width: 100%;
    }
}
}

@media only screen and (min-width: 768px) {
    :root {
        --trackWidth: 550px;
    }    
    .scrollArrows {
        display: flex;
    }
}

@media only screen and (min-width: 1281px) { /* laptop desktop */
    :root {
        --trackWidth: 600px;
        --spacer: 5vw;
    }
    body {
            grid-template-columns: 25vw 50vw 25vw;
            grid-template-rows: 100%;
    }
@keyframes dropdownAnim {
    0% {opacity: 0;}
    100% {opacity: 1;}
}
}