* {
    padding: 0;
    margin: 0;
    font-family: "Quicksand", sans-serif;
    font-weight: 400;
}

html {

}

body {
    width: 100vw;
    text-align: center;
    min-height: 100vh;
    overflow: hidden;
    background-image: linear-gradient(45deg, rgba(0,0,0,0.4),rgba(191,192,194,1), white,white,white,white);
}

/* Font Sizes */

h1, h2 {
    font-size: 1.8rem;
}

h3{
    font-size: 1.4rem;
}

h4, p, a, td, th, button, .close, input, label, .circ, select {
    font-size: 1.0rem;
}

button:hover {
    cursor: pointer;
}

.burg {color: rgb(144,0,32);}
.grey {color: rgb(191,193,194)}

.finePrint {
    font-size: 0.6rem;
}

.inventoryDetailCard {
    display: inline-block;
    width: 100%;
    /* margin-left: 2vw; */
    /* margin-right: 2vw; */
    .imgDiv {
	display: block;
	height: 50vw;
	background-size: contain;
	background-repeat: no-repeat;
	width: 100%;
	p {
	    color: red;
	    font-size: 4rem;
	    font-weight: 700;
	    height: 100%;
	    justify-content: center;
	    align-content: center;
	    margin-bottom: 0;
	    transform: rotate(-45deg);
            width: 100%;
	}
    }
    p {
        width: 100%;
        margin-bottom: 5vw;
    }
}

@media only screen and (min-width: 768px) {

    h1, h2 {
	font-size: 2.5rem;
    }

    h3{
	font-size: 2rem;
    }

    h4, p, a, td, th, button, .close, input, label, .circ, select {
	font-size: 1.5rem;
    }

    .finePrint {
	font-size: 0.75rem;
    }

}

/* General Elements */

a {
    cursor: pointer;
    color: black;
}

b {
    font-weight: 700;
}

#comparisonTable {
    tr {
	height: 3rem;
    }
}

.content {
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    width: 100vw;
    height: 100vh;
    -webkit-overflow-scrolling: touch;
}

.card {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    overflow: hidden;
    h1, h2 {
	width: 90%;
    }
    img {
	width: 95vw;
    }
    .rareAir {
	width: 25vw;
    }
    p {
	width: 90%;
    }
    table {
	width: 90%;
	border-collapse: collapse;
	border: none;
	margin-top: 5vw;
	margin-bottom: 5vw;
	thead, tbody {
	    tr {
		height: 16vw;
		td, th {
		    width: 25vw;
		}
		.conName {
		    text-align: right;
		    padding-right: 10px;
		}
		.conMail {
		    text-align: left;
		}
	    }
	    .gap {
		height: 2vw;
	    }
	    .solid {
		border: 3.5px solid black;
	    }
	}
    }
    .selectDiv {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-around;
	width: 100%;
	overflow-x: scroll;
	.btn {
	    display: flex;
	    flex-shrink: 0;
	    align-items: center;
	    justify-content: center;
	    width: 20vw;
	    height: 20vw;
	    border-radius: 50%;
	    border: 2px solid black;
	    font-weight: 700;
	    vertical-align: middle;
	    margin: 10px;
	    background-color: rgb(150,150,150);
	    opacity: 0.5;
	}
	.btn:hover {
	    background-color: rgb(80,80,80);
	    cursor: pointer;			      
	}
	.selected {
	    opacity: 1;
	}
    }
    #arrows {
	width: 5vw;
	position: relative;
	top: 30vw;
	cursor: pointer;
    }
    .bannerbox {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	gap: 5vw;
	margin-top: 4vw;
	p {
	    width: 90%;
	}
	img, a{
	    width: 30%;
	    opacity: 1;
	    transition: transform 4s 0.0s cubic-bezier(0,1,0.3,1),
			opacity 2s 0.0s ease-out;
	    will-change: transform, opacity;
	}
	img.is-visible {
	    opacity: 0.2;
	    transform: translateY(5em);
	}
	a {
	    img {
		width: 100%;
	    }
	}
	.box {
	    width: 90%;
	    margin: auto;
	    display: flex;
	    align-items: center;
	    justify-content: center;
	    img {
	    }
	    img, .circ {
		opacity: 1;
		transition: transform 4s 0.0s cubic-bezier(0,1,0.3,1),
			    opacity 2s 0.0s ease-out;
		will-change: transform, opacity;
	    }
	    img.is-visible, .circ.is-visible {
		opacity: 0.2;
		transform: translateY(-5em);
	    }
	    .polaroid1, .polaroid2 {
		width: 25vw;
		border: 5px solid white;
		box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.2);
	    }
	    .polaroid1 {
		transform: rotate(10deg);
	    }
	    .polaroid2 {
		margin-top: -5vw;
		margin-bottom: -5vw;
	    }
	    .circ {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 25vw;
		height: 25vw;
		border-radius: 50%;
		border: 5px solid rgb(144,0,32);
		margin: auto;
		margin-bottom: 10vw;
		font-weight: 700;
	    }
	}
    }
    .inventoryBox {
	width: 100vw;
	white-space: nowrap;
	overflow-y: scroll;
	padding-top: 5vw;
	background-image: linear-gradient(180deg,rgba(256,256,256,0),rgba(256,256,256,1),rgba(256,256,256,1),rgba(256,256,256,1),rgba(256,256,256,1),rgba(256,256,256,0));
	cursor: pointer;
	.inventoryCard {
	    display: inline-block;
	    width: 70%;
	    margin-left: 2vw;
	    margin-right: 2vw;
	    .imgDiv {
		display: block;
		height: 45vw;
		background-size: contain;
                background-repeat: no-repeat;
                background-position: center;
	    }
	    .imgDiv, p {
		width: 100%;
		margin-bottom: 5vw;
	    }
	}
    }
}

#firstBox {
    .box {
	width: 80%;
	display: block;
    }
    h1, h2 {
	margin-bottom: 5vw;
    }
    .hero {
	opacity: 1;
	will-change: transform, opacity;
    }
    #heading1 {
	transition: transform 4s 0.0s cubic-bezier(0,1,0.3,1),
		    opacity 2s 0.0s ease-out;
    }
    #heading2 {
	transition: transform 4s 0.2s cubic-bezier(0,1,0.3,1),
		    opacity 2s 0.2s ease-out;
    }
    #heading3 {
	transition: transform 4s 0.4s cubic-bezier(0,1,0.3,1),
		    opacity 2s 0.4s ease-out;
    }
    #heading4 {
	transition: transform 4s 0.6s cubic-bezier(0,1,0.3,1),
		    opacity 2s 0.6s ease-out;
    }
    #heading5 {
	transition: transform 4s 0.8s cubic-bezier(0,1,0.3,1),
		    opacity 2s 0.8s ease-out;
    }
    .hero.is-visible {
	opacity: 0.0;
	transform: translateY(3em);
    }
}

@media only screen and (min-width: 768px) {

    #firstBox {
	h1, h2 {
	    width: 70%;
	    margin-left: 15%;
	    margin-right: -15%;
	}
    }

    .card {
	.rareAir {
	    width: 15vw;
	}
	#arrows {
	    top: 18vh;
	}
	h2 {
	    margin-bottom: 3vw;
	}
	p {
	    width: 80%;
	}
	.inventoryBox {
	    margin-top: 5vw;
	    .inventoryCard {
		width: 30%;
		margin-left: 5vw;
		margin-right: 5vw;
		.imgDiv {
		    height: 20vw;
		}
		.imgDiv, p {
		    width: 100%;
		    margin-bottom: 5vw;
		}
	    }
	}
	table {	
	    margin-top: 1vw;
	    margin-bottom: 2vw;
	    width: 70%;
	    thead, tbody {
		tr {
		    height: 4vw;
		    td {
		    }
		}
	    }
	}
	.selectDiv {
	    width: 90vw;
	    .btn {
		width: 10vw;
		height: 10vw;
	    }
	}
	.bannerbox {
	    margin-top: 2vh;
	    margin-bottom: 3vh;
	    flex-direction: row;
	    gap: 0;
	    max-width: 1500px;
	    img, a {
		width: 20%;
	    }
	    h2 {
		width: 40%;
	    }
	    a {
		img {
		    width: 100%;
		}
	    }
	    .box {
		width: 50%;
		img.is-visible {
		    transform: translateX(-5em);
		}
		p {
		    margin-left: 5vw;
		    margin-right: 5vw;
		}
		.polaroid1, .polaroid2 {
		    width: 20vw;
		    border: 10px solid white;
		    box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.2);
		}
		.polaroid1 {
		    transform: rotate(10deg);
		}
		.polaroid2 {
		    margin-top: -5vw;
		    margin-bottom: -5vw;
		}
		.circ {
		    width: 12vw;
		    height: 12vw;
		    margin-bottom: 0;
		}
	    }
	    .polaroid {
		flex-direction: column;
	    }
	}
    }

    .inventoryDetailCard {
	display: inline-block;
	vertical-align: top;
	width: 50%;
	/* margin-left: 2vw; */
	/* margin-right: 2vw; */
	.imgDiv {
	    display: flex;
	    justify-content: center;
	    align-content: center;
	    height: 25vw;
	    background-size: contain;
	    background-repeat: no-repeat;
	    p {
		color: red;
		font-size: 4rem;
		font-weight: 700;
		height: 100%;
		justify-content: center;
		align-content: center;
		margin-bottom: 0;
		transform: rotate(-45deg);
	    }
	}
	.imgDiv, p {
	    width: 100% !important;
	    margin-bottom: 2vw;
	}
    }
    
    @media only screen and (min-width: 1280px) {

	button {
	    margin-top: 2vw;
	    margin-bottom: 0vw;
	}
	
	.card {
	    #arrows {
		top: 5vh;
	    }
	    .rareAir {
		width: 10vw;
	    }
	    .inventoryBox {
		margin-top: 5vw;
		.inventoryCard {
		    width: 30%;
		    margin-left: 5vw;
		    margin-right: 5vw;
		    .imgDiv {
			height: 20vw;
		    }
		    .imgDiv, p {
			width: 100%;
			margin-bottom: 5vw;
		    }
		}
	    }
	}

	.inventoryDetailCard {
	    width: 33.3%;
	    /* margin-left: 2vw; */
	    /* margin-right: 2vw; */
	    .imgDiv {
		height: 15vw;
		p {
		    font-size: 4rem;
		    height: 100%;
		}
	    }
	    .imgDiv, p {
		margin-bottom: 2vw;
	    }
	}
    }
}

/* Main two-column layout for the calculator section */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* Two equal columns */
    gap: 2rem;                       /* Space between left and right */
    margin-top: 2rem;
    align-items: start;              /* Align tops of columns */
}

.calculator-left {
    /* Inputs stay in single column for better usability */
}

.calculator-right {
    background: #f9f9f9;            /* Optional: subtle background for results */
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    min-height: 300px;               /* Prevents collapse if results are short */
    width: 80%;
    margin: auto;
    p {
        width: 100%;
        margin: auto;
    }
}

/* Make results headings and tables nicer */
.calculator-right .results-section {
    margin: 0;
}

.calculator-right .tableDiv {
    margin-bottom: 1rem;
}

/* Full-width elements inside left column */
#calculator-form .submit-row {
    margin-top: 1.5rem;
}

/* Responsive: Stack columns on tablets/mobile */
@media (max-width: 1024px) {
    .calculator-grid {
        grid-template-columns: 1fr;  /* Single column */
        gap: 1.5rem;
    }
    
    .calculator-right {
        padding: 1rem;
    }
}

/* Optional polish for inputs */
#calculator-form .cell p {
    margin: 0 0 0.5rem 0;
    font-weight: bold;
}

#calculator-form input,
#calculator-form select {
    width: 100%;
    padding: 0.65rem;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}
