/* Media query for smaller screens */
@media only screen and (max-width: 600px) {
/* For All Pages */
.topbar {
    margin: 0;
    display: flex;
    align-items: center;
    height: 80px;
    width: 100%;
    background: hsl(252, 47%, 35%);
    box-shadow: 0 0 10px grey;
    position: fixed;
    top: 0;
    transition: opacity 0.3s; /* Add a transition effect for smooth visibility */
    z-index: 5;
}
a.topbarlinks {
    margin-left: 5%;
    font-size: 100%;
    color: rgb(230, 221, 221);
    text-decoration: none;
    white-space: nowrap;
}
#education {
    display: none;
}
div.topbarlinks {
    display: flex;
    align-items: center;
    position: fixed;
    right: 0;
    margin-right: 15%;
    gap: 5%;
}
a.topbarlinks:hover {
    color: hsl(209, 69%, 61%);
    text-decoration: underline;
}
#homeimg {
    height: 100px;
    margin-left: 5%;
}
.title {
    text-align: center;
    font-size: 250%;
    margin-top: 100px;
}


/* For Home Page */
#homePage {
    background-color: rgba(0, 0, 0, 0.856);
    color: white;
}

#backgroundImage {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container while maintaining its aspect ratio */
    object-position: center; /* Center the image */
    position: fixed;
    z-index: -1;
}

#hook {
    margin-top: 8%;
    width: 100%;
    margin-left: 5%;
    overflow: auto;
}

#topContent {
    margin-top: 80px;
    display: flex;
    flex-direction: row;
}

.coreInfo {
    padding: 5%;
    font-size: 75%;
    margin-right: 5%;
    align-items: left;
}

.icons{
    display: flex; /* Use flexbox layout */
    justify-content: space-around; /* Distribute space evenly */
    align-items: center; /* Center items vertically */
    width: 100%;
}

.icons div {
    display: flex; /* Use flexbox layout */
    justify-content: center; /* Distribute space evenly */
    align-items: center; /* Center items vertically */
}

.icons img {
    width: 30%;
    margin-left: 5%;
}

.icons p {
    font-size: 50%;
    margin-left: 15%;
    margin-top: 14%;
}


div.getQuote {
    display: none;
}

#aboutUs {
    margin-top: 75%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5%;
    text-align: center;
}

#aboutUs p {
    width: 100%;
}

/* For Instant Quote Pages */
#quoteInfo {
    margin-left: 40px;
    margin-right: 200px;
    width: 50%;
}

#useComputer {
    margin-left: 10%;
}

#orderPlacement {
    display: flex;
    flex-direction: row;
}

#checkout {
    margin-right: 20px;
    width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: right;
}

#paypal-button-container .paypal-button {
    background-color: hsl(252, 47%, 35%) !important;
    color: white !important; /* Optional: Ensure the text color is readable */
    background: hsl(252, 47%, 35%);
}

#upload {
    display: none;
}

#stl_cont {
    margin-left: 2px;
    outline-style: solid;
    outline-color: white;
    height: 500px;
}

#instantQuote {
    background-color: rgba(0, 0, 0, 0.856);
    color: white;
}

input[type=radio] {
    margin-right: 1rem;
}

option {
    color: black;
}

.material {
    display: flex;
    flex-direction: row;
    padding: 1.2rem;
}

.partOptions {
    margin-top: 75px;
    margin-bottom: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.personalInfo, .shipping {
    width: 300px;
    margin-bottom: 75px;
}

/* For Contact Us Page */
#contactUs {
    background-color: rgba(0, 0, 0, 0.856);
    color: white;
    justify-content: center;
}

#businessInfo {
    flex-direction: column;
    margin-top: 80px;
    display: flex;
    justify-content: center;
}

#businessInfo h1 {
    text-align: center;
    font-size: 60px;
}

#businessInfo p {
    text-align: center;
    font-size: 20px;
    width: 40%;
    margin-left: auto;
    margin-right: auto;
}

#businessInfo a {
    margin-left: auto;
    margin-right: auto;
}
}


/* Media query for larger screens */
@media only screen and (min-width: 601px) {
/* For All Pages */
.topbar {
    margin: 0;
    display: flex;
    align-items: center;
    height: 80px;
    width: 100%;
    background: hsl(252, 47%, 35%);
    box-shadow: 0 0 10px grey;
    position: fixed;
    top: 0;
    transition: opacity 0.3s; /* Add a transition effect for smooth visibility */
    z-index: 5;
}
a.topbarlinks {
    margin-left: 10px;
    font-size: 125%;
    color: rgb(230, 221, 221);
    text-decoration: none;
    white-space: nowrap;
}
div.topbarlinks {
    display: flex;
    align-items: center;
    gap: 40px;
    position: fixed;
    right: 0;
    margin-right: 50px;
}
a.topbarlinks:hover {
    color: hsl(209, 69%, 61%);
    text-decoration: underline;
}
#homeimg {
    height: 100px;
    margin-left: 20px;
}
.title {
    text-align: center;
    font-size: 250%;
    margin-top: 100px;
}


/* For Home Page */
#homePage {
    background-color: rgba(0, 0, 0, 0.856);
    color: white;
}

#backgroundImage {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container while maintaining its aspect ratio */
    object-position: center; /* Center the image */
    position: fixed;
    z-index: -1;
}

#hook {
    margin-top: 8%;
    width: 100%;
    height: 1000px; /* Adjust the height as needed */
    margin-left: 5%;
    overflow: auto;
}

#topContent {
    display: flex;
    flex-direction: row;
}

.coreInfo {
    padding: 5%;
    font-size: 130%;
    margin-right: 40%;
    align-items: left;
}

.icons{
    margin-left: 5%;
    display: flex; /* Use flexbox layout */
    justify-content: space-around; /* Distribute space evenly */
    align-items: center; /* Center items vertically */
    margin-right: 40%;
}

.icons div {
    display: flex; /* Use flexbox layout */
    justify-content: center; /* Distribute space evenly */
    align-items: center; /* Center items vertically */
}

.icons img {
    width: 25%;
}

.icons p {
    font-size: 85%;
    width: 70%;
    margin-left: 5%;
    margin-top: 14%;
}


div.getQuote {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-color: white;
    border-style: dotted;
    padding: 1.5rem;
    margin-right: 10%;
    height: 300px;
    width: 450px;
    margin-top: 15%;
}

div.getQuote:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

h1.getQuote  {
    text-align: center;
}

p.getQuote {
    text-align: center;
    margin-bottom: 40px;
}

#aboutUs {
    margin-top: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5%;
    text-align: center;
}

#aboutUs p {
    width: 60%;
}

/* For Instant Quote Pages */
#useComputer {
    display: none;
}

#quoteInfo {
    margin-left: 40px;
    margin-right: 200px;
    width: 50%;
}

#orderPlacement {
    display: flex;
    flex-direction: row;
}

#checkout {
    margin-right: 20px;
    width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: right;
}

#paypal-button-container .paypal-button {
    background-color: hsl(252, 47%, 35%) !important;
    color: white !important; /* Optional: Ensure the text color is readable */
    background: hsl(252, 47%, 35%);
}

#upload {
    padding: 1rem 1rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#stl_cont {
    margin-left: 2px;
    outline-style: solid;
    outline-color: white;
    height: 500px;
}

#instantQuote {
    background-color: rgba(0, 0, 0, 0.856);
    color: white;
}

input[type=radio] {
    margin-right: 1rem;
}

option {
    color: black;
}

.material {
    display: flex;
    flex-direction: row;
    padding: 1.2rem;
}

.partOptions {
    margin-top: 75px;
    margin-bottom: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.personalInfo, .shipping {
    width: 300px;
    margin-bottom: 75px;
}

/* For Contact Us Page */
#contactUs {
    background-color: rgba(0, 0, 0, 0.856);
    color: white;
    justify-content: center;
}

#businessInfo {
    flex-direction: column;
    margin-top: 80px;
    display: flex;
    justify-content: center;
}

#businessInfo h1 {
    text-align: center;
    font-size: 60px;
}

#businessInfo p {
    text-align: center;
    font-size: 20px;
    width: 40%;
    margin-left: auto;
    margin-right: auto;
}

#businessInfo a {
    margin-left: auto;
    margin-right: auto;
}
}