* {
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100lvh;
    background-color: black;
    color: white;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5rem;
    scroll-behavior: smooth;
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: white;
}

@media (min-width: 768px) {
    html::-webkit-scrollbar {
        width: 10px;
    }

    html::-webkit-scrollbar-thumb {
        background-color: #ed1b24;
    }

    html::-webkit-scrollbar-track {
        /*padding-right: 20px;*/
    }
}

/*Navigation bar*/
nav {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: black;
    --tw-shadow: 0 4px 24px -1px rgba(237,27,36,0.5);
    --tw-shadow-colored: 0 4px 24px -1px rgba(237,27,36,0.5);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);

    @media (min-width: 768px) {
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(15px);
    }
}

.nav-content-wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.nav-content-wrapper div {
    display: block;

    @media (min-width: 768px) {
        display: none;
        visibility: hidden;
    }
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    color: #ed1b24;
    background-color: transparent;
    border: 0px;
    cursor: pointer;
}

.menu-item-container {
    display: none;
    gap: 1rem;

    @media (min-width: 768px) {
        display: flex;
    }
}

.menu-item {
    text-decoration: none;
}

.link {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.link:hover {
    color: #ed1b24;
    transition: 0.3s ease-in-out;
}

#contact-button {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ed1b24;
    color: white;
}

#contact-button:hover {
    color: #ed1b24;
    background-color: white;
}

.language-change-button {
    position: relative;
    top: 50%;
    right: 0;

    @media (min-width: 768px) {
        gap: 0.5rem;
    }
}

.language-change-button:hover {
    color: #ed1b24;
    transition: 0.3s ease-in-out;
}

/* Main content */
main {
    width: 100%;
    display: flex;
    flex-direction : column;
    justify-content: center;
    align-items: center;
    gap: 10rem;
}

h1 {
    font-size: 3rem;
    line-height: 1.20;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.5;
    color: #ed1b24;
}

.content-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
}

#main-section {
    /*width: 100%;*/
    gap: 1.5rem;
    flex-direction: column;
    max-width: 1200px;

    margin-top: 2rem;

    @media (min-width: 768px) {
        gap: 1rem;
        margin-top: 4rem;
    }
}

.rent-logo-containter {
    align-self: center;

    @media (min-width: 768px) {
        align-self: start;
    }
}

.landing-text {
    /*margin-bottom: 2rem;*/
    display: flex;
    flex-direction: column;
    text-align: center;

    @media (min-width: 768px) {
        margin-bottom: 0;
    }
}

.golf-back-containter {
    align-self: center;

    @media (min-width: 768px) {
        align-self: end;
    }
}


#about-us-section {
    text-align: center;
    font-size: 2rem;
    line-height: 1.2;

    @media (min-width: 768px) {
        padding: 0 25%;
    }
}

/* Cars section */
#cars-section {
    gap: 1.5rem;

    @media (min-width: 768px) {
        align-items: start;
    }
}

#cars-section h3 {
    font-size: 1.75rem;
    text-align: center
}

.h3-bg {
    background-color: #ed1b24;
    padding: 0.75rem;
}

#cars-section ul {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1.25rem
}

#cars-section ul li {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#cars-section ul li:last-child {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;

    @media (min-width: 850px) {
        margin-top: -8rem;
        justify-content: flex-end;
    }
}

#cars-section ul li span {
    display: inline-block;
    flex-shrink: 0;
    height: 1.25rem;
    width: 0.5rem;
    background-color: #ed1b24;
}

#cars-section ul li img {
   width: 100%;

    @media (min-width: 850px) {
        width: 450px;
    }
}


.gallery-image-container {
    margin-top: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;

    @media (min-width: 768px) {
        flex-direction: row;
    }
}

.img-wrapper {
    height: 100%;

    @media (min-width: 768px) {
        height: 300px;
    }
}

.golf-real {
    width: 100%;
    border: 2px solid black;
    border-radius: 5px;
}

@media (min-width: 768px) {
    .golf-real:hover {
        cursor: pointer;
        border: 2px solid #ed1b24;
        transition: 0.3s ease-in-out ;
    }
}

#contact-section {
    flex-direction: column;
    gap: 3rem;
    font-size: 1.25rem;
}

.segment-title {
    font-size: 2.5rem;
}


.info-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-container li a, div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-container li a:hover {
    transition: 0.3s ease-in-out;
    color: red;
}

.info-container li a:hover img {
    background-color: white;
    fill: white;
}

.icon {
    padding: 0.25rem;
    background-color: #ed1b24;
    border-radius: 0.3rem;
}

.icon-external {
    padding: 0.3rem 0.5rem;
    background-color: #ed1b24;
    border-radius: 0.3rem;
}

.external-links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-container {
    display: flex;
    height: 100%;
    gap: 1rem;
}

.social-container a:hover img {
    background-color: white;
}

.social-container a:hover .icon {
    background-color: white;
}

#img-link img {
    border: 1px solid black;
    transition: 0.3s ease-in-out;
}

#img-link img:hover {
    border: 1px solid red;
    --tw-shadow: 0 4px 24px -1px rgba(237,27,36,0.5);
    --tw-shadow-colored: 0 4px 24px -1px rgba(237,27,36,0.5);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    transition: 0.3s ease-in-out;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /*overflow: auto;*/
    background-color: black;
    transition: 1s ease-in-out;
}

.modal-content {
    margin: 10% auto;
    display: block;
    width: 80%;
    max-width: 800px;
}

#closeBtn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}


/* Footer */
footer {
    margin-top:  10rem;
    padding: 1rem;
    background-color: #ed1b24;
    display: flex;
    justify-content: center;
    color: black;
    font-weight: bolder;
    text-align: center;
}
