@import url('https://fonts.googleapis.com/css2?family=Kanit&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap');

:root {
    --primaryColor: lightgray;
    --secondaryColor: white;
    --accentColor: #ceaf03;
    --fontColor: #000000;
    --hoverColor: #ceaf03;
    --backgroundColor: black;
    --secondaryBackgroundColor: #E8D8BF;
    --headerHeight: 170px;
    --bodyWidth: 1200px;
    --footerHeight: 40px;
}

html {
    background-image: url("../img/bg.jpg");
    background-size: cover;
    background-attachment: fixed;
    overflow: auto;
    overflow-y: hidden;
}

header {
    position: sticky;
    top: 0;
    border-bottom: 1px solid #111;
    background: var(--primaryColor);
    border-radius: 6px;
    box-shadow: 1px 1px 20px black;
    overflow: hidden;
}

body {
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    margin: 0;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px); /* for Safari */
}

main {
    margin: 0 auto;
    max-width: var(--bodyWidth);
    overflow-y: auto;
    margin-bottom: 15px;
    margin-top: 15px;
    border-radius: 6px;
    box-shadow: 1px 1px 20px black;

}

section {
    max-width: var(--bodyWidth);
    background-color: var(--secondaryColor);
    margin: auto;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}


h1 {
    font-size: 40px;
    margin: 0;
    color: var(--accentColor);
    text-shadow: 1px 1px 1px black;
}

h2 {
    margin: 0;
}

section h1 {
    color: #00a2ff;
}

header img {
    margin-right: 5px;
}

nav {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-evenly;
    background: var(--primaryColor);
    text-shadow: 0px 0px 4px white;
    overflow: hidden;
    width: auto;
    text-align: center;
}

.nav-container {
    text-align: center;
    display: flex;
    justify-content: space-around;
}

nav a {
    color: #000000;
    border-radius: 10px;
    font-weight: 900;
    text-decoration: none;
    padding: 0px;
    margin: 3px;
}

form {
    max-width: 400px;
    color: var(--accentColor);
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

section img {
    margin: 15px;

}
p {
    padding-left: 20px;
    padding-right: 20px;
}

footer {
    position: sticky;
    bottom: 0;
    background: var(--primaryColor);
    height: var(--footerHeight);
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 1px 1px 2px white;
    box-shadow: 1px 1px 20px black;
}

form h3 {
    text-align: center;
}

footer a {
    text-decoration: none;
    color: black;
}

iframe {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 500px;
}

.site-container {
    text-align: center;
    flex-shrink: 1;
    max-width: var(--bodyWidth);
    width: 100%;
    text-shadow: 0px 0px 2px white;
    margin: 0 auto;
    height: calc(100vh - var(--headerHeight) - var(--footerHeight) - 26px);
    background-color: var(--secondaryColor);   
}

.cname {
    margin-top: 10px;
    margin-left: 40px;
}

.hd-logo {
    margin-top: 10px;
    margin-right: 50px;
    max-width: 165px;
}

.hd-logo:hover {
    cursor: pointer;
}

.hd-logo img {
    filter: invert(1);
    max-width: 160px;
}

.call-us h2 {
    margin-top: 5px;
}

.company-name {
    background: #000000;
    color: var(--accentColor);
    font-weight: 400;
    display: flex;
    justify-content: space-between;
    width: auto;
    max-height: 137px;
}

.call-us a {
    text-decoration: none;
    color: var(--accentColor);
    display: flex;
}

.call-us img {
    max-width: 30px;
    max-height: 30px;
    margin-top: 8px;
}

nav a:hover,
label:hover {
    color: var(--hoverColor);
    text-shadow: 2px 2px 15px lightgray;
    transition-duration: .5s;
}

.mods {
    cursor: pointer;
}

.flex {
    display: flex;
    align-items: center; /* Aligns items vertically in the center */
    flex-wrap: nowrap; /* Prevents wrapping onto a new line */
    justify-content: flex-start; /* Aligns items to the start of the container */
}

.flex img {
    flex-shrink: 0; /* Prevents the image from shrinking */
    width: auto; /* Maintains the original width of the image */
    max-width: 50%;
}

.flex p {
    flex-grow: 1; /* Allows the text to take the remaining space */
}

@media only screen and (max-width: 480px) {
    .main-logo {
        display: none;
    }
    footer {
        display: none;
    }
    .flex {
        flex-direction: column;
    }
    .flex img {
        max-width: 80%;
    }
}

.flex {
    display: flex;
}