/* Global Reset and Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'roboto';
    font-weight: 400;
    font-style: normal;
    background-color: rgb(221, 221, 216);
    font-size: 100%;
    margin: 0;
    padding: 0;
}

#page-1 {
    position: relative; /* Make #page-1 a positioned parent */
}

/* Navigation Bar */
nav {
    width: 100%;
    background-color: rgb(221, 221, 216);
    border-bottom: 0.5% solid red;
    padding-left: 2%;
    padding-right: 5%;
    padding-top: 1%;
    padding-bottom: 1%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
#logo {
    display: inline-block;
    color: black;
    font-family: 'Roboto';
    font-weight: 900;
    font-style: italic;
    font-size: 1.5vw;
    margin-right: 2%;
}

#logo:hover {
    cursor: default;
}

/* UX/UI Text */
#header-text {
    font-family: monospace;
    font-size: 1.2vw;
    color: rgb(116, 109, 102);
    white-space: nowrap; 
    margin-left: 3%;
    margin-right: auto; 
}

/* Navigation Links */
.nav-links {
    perspective: 1000px; /* Provides depth for 3D effect */
    font-family: 'Roboto';
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2%;
}

.nav-links li {
    display: inline-block;
    position: relative;
}

/* 3D Button Styles */
.button-3d {
    position: relative;
    width: 5vw; /* Use viewport width for responsiveness */
    height: 5vh; /* Use viewport height for responsiveness */
    transform-style: preserve-3d; /* Preserve 3D transforms for child elements */
    transition: transform 0.3s ease; /* Smooth transition for rotation */
    cursor: pointer;
    font-family: 'Roboto';
}

.button-3d:hover {
    transform: rotateX(-90deg); /* Rotate on hover to show the top face */
}

.button-face {
    position: absolute;
    width: 100%; /* Match the width of .button-3d */
    height: 100%; /* Match the height of .button-3d */
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden; /* Hide the back face when rotated */
    font-size: 1.2vw; /* Use viewport width for font size responsiveness */
    font-weight: 400; /* Lighter font weight */
    color: rgb(116, 109, 102); /* Grayish color */
    box-sizing: border-box;
    text-align: center;
    font-family: 'Roboto';
}


.front {
    background-color: rgb(221, 221, 216);
    transform: rotateX(0deg) translateZ(15px); /* Position the front face */
    color: rgb(116, 109, 102); /* Match the font color */
    font-weight: 400; /* Lighter font weight */
    font-family: 'Roboto';
}

.top {
    background-color: rgb(221, 221, 216);
    transform: rotateX(90deg) translateZ(15px); /* Position the top face */
    color: rgb(116, 109, 102); /* Match the font color */
    font-weight: 400; /* Lighter font weight */
    font-family: 'Roboto';
}

/* Additional Link States */
.nav-links a:link,
.nav-links a:visited {
    color: rgb(116, 109, 102); /* Grayish color */
    text-decoration: none; /* Remove underline */
    font-family: 'Roboto';
    font-weight: 600; /* Lighter font weight */
}

.nav-links a:hover {
    color: rgb(116, 109, 102); /* Maintain color on hover */
}

.nav-links a:active {
    color: rgb(116, 109, 102); /* Maintain color when active */
}

/* Main Content */
.main-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    gap: 5%;
    margin-left: 2%;
}

/* Title */
#title {
    color: rgb(21, 21, 19);
    font-family: 'Roboto Condensed';
    font-weight: 900;
    font-size: 15.2vw;
    letter-spacing: -0.02em;
    text-align: center;
    margin: 2% 2% 2% 2%;
    margin-top: 0%;
    padding: 0;
    width: fit-content;
    white-space: nowrap; /* Prevents the text from wrapping */
}

/* Text Container */
.text-container {
    flex: 1;
    max-width: 25%;
    font-size: 1.3vw;
    line-height: 1.6;
    font-family: 'Roboto';
    color: rgb(107, 100, 92);
    text-align: left;
    margin-top: 2%;
}

/* Landing Button */
#landing-button {
    color: rgb(221, 221, 216);
    background-color: rgb(58, 56, 52);
    margin-top: 5%;
    width: 55%;
    max-width: 250px;
    padding: 5% 2%;
    text-align: center;
    text-decoration: none;
    display: block;
    border-radius: 100px;
    border: none;
    font-size: 1.2vw;
    font-weight: 550;
}

#landing-button:hover {
    cursor: pointer;
    background-color: rgb(48, 46, 42);
}

/* Landing Image */
#landing-image {
    width: 21.5%;
    height: auto;
    max-height: 52vh;
    border-radius: 5px;
    background-color: grey;
    display: block;
    object-fit: cover;
    margin: -17% 0 0 38%;
    padding-bottom: 10px;
}

/* Last Updated Block */
#last-updated {
    position: absolute; /* Makes the block positioned relative to its parent (#page-1) */
    right: 3%; /* Aligns the block to the right */
    bottom: -2%; /* Positions it 5% from the bottom of the parent container */
    text-align: right;
    z-index: 100; /* Keeps it above other content */
    max-width: 100%; /* Ensures it doesn't exceed the parent container's width */
}

/* Additional Adjustments to Make It Look Right */
#last-updated .last-updated-top {
    font-size: 1vw;
    font-weight: normal;
    letter-spacing: 0.1em;
    font-family: 'Roboto Mono';
    color: rgb(116, 109, 102); /* Grayish color */
    margin: 0;
}

#last-updated .last-updated-bottom {
    font-size: 5vw;
    font-weight: 600;
    font-family: 'Roboto Mono';
    color: #2b2b2b;
    margin: 0;
}

/* Placeholder Image for Logo */
#logo-placeholder {
    width: 2vw;
    height: 3%;
    margin-top: -1%;
    margin-bottom: 1%;
    margin-left: 2%;
    object-fit: cover;
}
