:root {
    --black: #1A1A1A;
    --text:var(--black);
    --background:#F6F8FA;
    --grey: #E5E6E6;
    --red: #7E0B08;
    --gold: #7D8106;
    --darkgold: #5e6105;
    --white: #ffffff;
}
body {
    background-color: var(--background);
    font-family: "Roboto", sans-serif;
    color:var(--black);
    scroll-behavior: smooth;
}
header {
    background-color: var(--white);
    position:fixed;
    padding:10px 50px;
    border-bottom:1px solid var(--black);
    width:calc(100% - 100px);
    text-align:center;
    top:0;
    text-align:left;
    height: 80px;
    z-index:99;
}
#logo { 
    width:120px;
}
nav {
    float:right;
    margin-top:30px;
}
nav > a {
    color:var(--text);
}
nav > a, nav > a.button {
    display: inline-block;
    margin-left: 15px;
    margin-top: 0px;
    vertical-align: middle;
    margin-bottom: 0px;
    text-decoration: none;
}
nav > a:hover {
    text-decoration:underline;
}
#burger {
    display: none;
    float: right;
    margin-top: 35px;
    margin-right: 0px;
    position: fixed;
    right: 40px;
}
#burger:hover {
    cursor: pointer;
}
section {
    text-align: center;
}
section:not(.nopad) {
    padding: 15px;
}
section.white {
    background-color: var(--white);
}
header > div, section > div {
    max-width: 1200px;
    margin:0 auto;
}
footer {
    background-color: var(--black);
    color:var(--white);
    width:100%;
    text-align: center;
    height:100px;
    padding:40px 0px;
    line-height: 1.5em;
}
footer .nav div {
    display:inline-block;
    margin:10px;
}
h1 {
    font-size: 2em;
    margin: 0 auto;
}
label {
    font-weight: bold;
    display: block;
    width: fit-content;
    margin: 15px 0px 5px;
}   
input[type=text], input[type=password], input[type=email], input[type=date], input[type=time], textarea,  select {
  display:inline-block;
  width: 100%;
  margin: 0px auto 10px;
  padding: 8px 10px;
  box-sizing: border-box;
  border: none;
  border: 1px solid #ccc;
  border-radius:2px;
  text-align:left;
  max-width:300px;
  height: 35px;
  font-family:inherit;
  vertical-align:middle;
  appearance: none;
  color:var(--black);
}
select.inline {
    width: fit-content;
}
input[type=button], .button {
  color:var(--white);
  background: var(--gold);
  border:2px solid var(--gold);
  padding: 10px 20px;
  display: block;
  margin: 10px auto 10px;
  font-weight: bold;
  min-width: 150px;
  box-sizing: border-box;
  border-radius: 2px;
  font-size:13px;
  text-transform: capitalize;
  min-height:40px;
  max-width: 250px;
  text-align: center;
  appearance: none;
  font-family:inherit;
  transition: 0.2s background-color ease-in-out;
  text-decoration: none;
}
input[type=button].left, .button.left {
  margin-left:0px;
}
input[type=button].inline, .button.inline {
  display:inline-block;
}
input[type=button]:hover, .button:hover {
  color:var(--white) !important;
  cursor: pointer !important;
  background: var(--darkgold) !important;
  border:2px solid var(--darkgold) !important;
  text-decoration:none !important;
}
textarea {
    height: 80px;
}
#hidden, .hide, .hidden, .prehidden {
    display:none;
}
.link {
    color:var(--blue);
}
.link:hover {
    cursor: pointer;
    text-decoration: underline;
}
#banner {
    width: 100%;
    height: 400px;
    margin-top: 100px;
    background: var(--black) url('../images/banner.jpg');
    background-size: cover;
    text-align: center;
    padding-top: 40px;
    max-height: 50vh;
    background-position: center;
    position: relative;
}
#banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #30313d;
    opacity: 0.5;
    pointer-events: none;
}
#bannertitle {
    position: absolute;
    top: 100px;
    text-align: center;
    width: calc(100% - 40px);
    padding: 0px 20px;
    z-index: 2;
}
#bannertitle h2 {
    color: var(--grey);
    font-size: 40px;
    margin-bottom: 0;
}
#bannertitle h3 {
    color: var(--grey);
    font-weight: 400;
    margin-top: 10px;
}
.typing-effect {
    white-space: nowrap;           /* Prevent the text from wrapping */
    overflow: hidden;              /* Hide the overflowing text */
    border-right: 2px solid black; /* Create a cursor effect */
    width: 0;/* Start with zero width */
    animation: typing 4s steps(30, end) forwards, blink-caret 0.75s step-end infinite;
    margin: 0 auto;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: black; }
}
.options {
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.options > a {
    width: 100px;
    height: 100px;
    aspect-ratio: 1;
    box-shadow: 0 0 10px 0 #ccc;
    margin: 10px;
    background-color: var(--white);
    text-align: center;
    display: grid;
    align-content: center;
    color: var(--text);
    text-decoration: none;
    border-radius: 100%;
    padding: 40px;
}
.options > a:hover {
    cursor:pointer;
    color: var(--text);
    box-shadow: 0 0 10px 0 #aaa;
}
.options > a i {
    font-size: 50px;
    display: block;
    margin: 0 auto 10px;
    color: #7d0202;
}
span.bold {
    font-weight: bold;
}
#featured > div { 
    display: inline-block;
    width: 400px;
    border: 3px solid var(--black);
    margin: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px 0 var(--black);
    padding: 15px 10px;
    min-height: 200px;
    vertical-align: top;
    background-color: var(--white);
}
#featured > div .image {
    width: 350px;
    object-fit: cover;
    height: 200px;
}
#featured .title {
    max-width: 80%;
    margin: 1em auto;
}
#featured > div div {
    margin-top:10px;
}
#topreviews {
    max-width: 800px;
    margin:0 auto;
}
#topreviews > div:not(:last-child) {
    border-bottom: 1px solid var(--black);
    padding-bottom:20px;
}
#topreviews .title {
    margin-bottom:0px;
}
#topreviews .rating {
    font-size: 20px;
    color:var(--gold);
}
#topreviews .description {
    margin:10px auto;
}
#topreviews .author > div {
    display: inline-block;
}
#topreviews .person {
    font-weight: bold;
}
#topreviews .initials {
    display:inline-block;
    width:80px;
    height:80px;
    border-radius:100%;
    background-color:var(--red);
    color:var(--white);
    font-size:40px;
    line-height:80px;
    font-weight:bold;
}
.align-left {
    text-align: left;
}
.cols-2 > div {
    display:inline-block;
    padding:0% 2%;
    vertical-align: top;
}
.col-30 {
    width:25%;
}
.col-70 {
    width:65%;
}
section img {
    max-width: 100%;
    margin-top:1em;
}
.people {
    display: flex;
    align-items: center;
    justify-items: center;
    justify-content: center;
}
.person {
    margin: 0px 40px;
}
.person img {
    max-width: 200px;
}
.person .name {
    font-weight:bold;
}
h3 i {
    color: #7d0202;
}
.desaturate {
    filter: brightness(0.95) saturate(0.8);
}
#featured-property {
    background-color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

.property-card {
    display: flex;
    max-width: 900px;
    margin: auto;
    background: var(--red);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    color: var(--white);
    padding: 10px 20px;
    position: relative;
    overflow: hidden;
}
.property-card:not(:last-child) {
    margin-bottom: 20px;
}

.property-image {
    width: 40%;
}

.sold-ribbon {
    position: absolute;
    top: 60px;
    left: -95px;
    width: 370px;
    transform: rotate(-45deg);
    background-color: black;
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 44px;
    padding: 10px 0;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    max-height: 90%;
}

.property-details {
    width: 60%;
    padding: 20px;
    text-align: left;
    min-width: 50%;
}
.property-details i {
    display: inline-block;
    width: 24px;
    text-align: center;
}

.property-details h3 {
    margin-top: 0;
}

.property-details p {
    margin: 5px 0;
    max-width: 90%;
}

.property-details .button {
    margin-top: 10px;
    display: inline-block;
}

@media only screen and (max-width: 600px) {
    #burger {
        display:inline-block;
    }
    nav {
        display:none;
    }   
    nav {
        margin-top: 90px;
        padding: 10px 20px;
        background-color: var(--white);
        border: 1px solid var(--black);
        float: right;
        margin-right: -20px;
    }
    nav > a {
        display: block;
        margin: 10px 0px;
    } 
    .cols-2 {
        display:grid;
    }
    .cols-2 > div {
        display:grid;
    }
    .col-30, .col-70 {
        width: 90%;
        margin: 0 auto;
    }
    section img {
        max-width: 80%;
        display: block;
        margin:0 auto;
    }
    .text {
        order:2;
    }
    .image {
        order:1;
    }
    .person img {
        max-width: 120px;
    }
}
@media (max-width: 600px) {
    .typing-effect {
        white-space: normal; /* Allow text to wrap on small screens */
        border-right: none; /* Remove the cursor effect on small screens if it looks odd */
        width: 100%;/* Start with zero width */
        animation: none;
    }
    
    .options > a {
        padding: 10px;
        max-width: 100px;
        max-height: 100px;
        font-size: 15px;
    }
    .options > a i {
        font-size: 30px;
    }
    .property-card {
        display: block;
    }
    .property-image {
        width: 100%;
    }
    .property-details {
        width: 100%;
    }
}
