* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: #e3e3e3;
}
nav {
    display: flex;
    justify-content: space-between; /* Space out the link and button */
    align-items: center; /* Vertically center the items */
    padding: 2em;
    position: relative;
    width: 100%;
}

#logo {
    max-width: 600px; /* Adjust size as needed */
    max-height: 600px; /* Ensure it remains square */
    position: absolute;
    top: 25vh; /* Adjust top position */
    left: 50%;
    transform: translateY(-50%); /* Only translate horizontally */
    transform: translateX(-50%); /* Only translate horizontally */
    display: flex;
    justify-content: center;
    align-items: center;
}

#logo img {
    padding-top: 2vh;
    width: 100%; /* Limit width to the parent's width */
    height: auto; /* Maintain aspect ratio */
    max-width: 600px; /* Ensure the logo doesn't exceed 150px */
    max-height: 600px; /* Restrict height similarly */
}

#links {
    display: flex;
    flex-direction: column; /* Stack the link and icons vertically */
    align-items: center; /* Center items horizontally within the div */
    justify-content: center;
    /* gap: 0.5em; Add some space between the link and icons */
    left: 10%;
}

#links a {

    text-decoration: none;
}

#links i {
    font-size: 50px; /* Adjust icon size */
    color: #954d92;
    background-clip: text;    
    margin: 0 0.5em; /* Add horizontal spacing between icons */
}

#links .social-icons {
    display: flex; /* Arrange icons side by side */
    justify-content: center; /* Center the icons horizontally */
    gap: 1em; /* Add space between icons */
}


nav {
    /* background-color: #f7dcdb; */
    background-color: rgba(247, 220, 219, 0.8);
    position: absolute;
    top: 0;
    left: 0;
    height: 10vh;
    width: 100vw;
    display: flex;
    justify-content: space-between; /* Space between link and button */
    align-items: center; /* Center items vertically */
    padding: 1.5em;
    z-index: 10;
    color: #954d92;
    /* font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; */
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
}

nav a {
    color: #954d92;
    text-decoration: none;
    /* font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; */
    /* font-family: Arial, Helvetica, sans-serif; */
    font-family:'Times New Roman', Times, serif;
    font-size: 24px;
    pointer-events: all;
    margin-top: 0%;
    left: 2%;
    position: absolute;
    font-weight: 50;
    /* Removed position: absolute */
}


nav button {
    border: none;
    outline: none;
    background-color: transparent;
    color: #954d92;
    /* background-image: linear-gradient(to left, #680093, #e4a6a0); */
    /* border-radius: 0.25em; */
    /* padding: 0.65em 1em 0.25em 1em; */
    padding: 0.5em 0.75em;
    /* font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; */
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    pointer-events: all;
    transition: 0.5s;
    margin-top: 5vh;
    right: 2%;
    position: absolute;
    font-weight: 100;
    border-bottom: 2px solid #954d92;
    transform: translateY(-50%);
}

nav button:hover {
    background-color: transparent; /* Change background color on hover */
    color: #954d92; /* Change text color on hover */
    border: 5px;
    border-bottom: 1px solid #f7dcdb;
    /* background-image: linear-gradient(to left, #e4a6a0, #e4a6a0); */
    /* transform: scale(1.01); Slightly enlarge the button on hover */
    transition: 0.3s;
}

.board {
    width: 100vw; /* 70% of the viewport width */
    height: 100vh; /* 70% of the viewport height */
    display: flex;
    flex-direction: column;
    /* gap: 0.25em; */
    /* perspective: 1000px; */
    background-color: #f7dcdb; /* Keep the background color */
    /* background-image: linear-gradient(to right, #680093, #e4a6a0); */
    /* background-image: url("mages/beach.png"); */
    position: absolute; /* Absolute positioning to center it */
    top: 50%; /* Move the top edge to 50% of the viewport height */
    left: 50%; /* Move the left edge to 50% of the viewport width */
    transform: translate(-50%, -50%); /* Center the container by offsetting by half its width and height */
    z-index: 1;
    /* padding: 0.25em; Optional: maintain padding */
    /* border-radius: 10px; Optional: give it rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Optional: add a shadow for visual appeal */
}


.row {
    flex: 1;
    display: flex;
    /* gap: 0.25em; */
}

.tile {
    flex: 1;
    position: relative;
    transform-style: preserve-3d;
}

.tile-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    /* border-radius: 0.5em; */
    /* overflow: hidden; */
}


.tile-front {
    background-color: darkslategray;
}


.tile-back {
    background-color: darkslateblue;
    transform: rotateX(180deg);
}


.tile-front::before,
.tile-back::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 600% 600%;
    background-position: inherit;
    /* clip-path: inset(0 round 0.25em); */
}


.tile-front::before {
    background-image: url("./mages/Be-Ambient-bg2.png"); /* front tiles image */
    /* background-image: linear-gradient(to right, white, #636363); */
}

.tile-back::before {
    /* background-image: url("./mages/qr.png"); back tiles image */
    background-image: url("mages/Be.Ambient-Ticket-QR.png");
    /* background-repeat: no-repeat; Avoid tiling the image */
    /* background-position: center; Center the image */
}


.blocks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}


#blocks {
    width: 105vw;
    height: 100vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    overflow: hidden;   
}


.block {
    width: 50px;
    height: 50px;
    border: 0.5px solid transparent;
    transition: border-color 0.3s ease;
}

.highlight {
    border-color: #fff;
}

#down {
    max-width: 150px; /* Adjust size as needed */
    max-height: 150px; /* Ensure it remains square */
    position: absolute;
    bottom: 2%; /* Adjust top position */
    left: 50%;
    transform: translateX(-50%); /* Only translate horizontally */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#down i {
    color: #954d92;
    font-size: 2.5em;
    font-style: bold;
}

.description {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 100%; /* Adjust top position */
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    color: #954d92;
    background-color: #f7dcdb;
}

.description p {
    width: 90%;
    margin-top: 4vh;
    padding-left: 10%;
    font-size: 1.25em;
    white-space: pre-line;
}


.description h3 {
    padding-top: 8vh;
    font-size: 2em;
    white-space: pre-line;
}

#tag {
    width: 100%;
    height: 10%;
    position: absolute;
    bottom: 15vh; /* Adjust top position */
    text-align: center;
}


#tag h6 {
    padding-bottom: 2vh;
    font-family: Arial, Helvetica, sans-serif;
    color: #686868;
    font-size: 1.5em;
    white-space: pre-line;
    font-weight: 100;
}

#tag img {
    padding-top: 2vh;
    width: 100%; /* Limit width to the parent's width */
    height: auto; /* Maintain aspect ratio */
    max-width: 300px; /* Ensure the logo doesn't exceed 150px */
    max-height: 300px; /* Restrict height similarly */
}

footer {
    padding-right: 1.5vh;
    height: 4vh;
    width: 100vw;
    bottom: 0%;
    left: 0%;
    color: #686868;
    z-index: 10;
    text-align: right !important;
    font-size: 15px;
    position: absolute;
}

@media screen and (max-width: 800px) {

	.description p {
        margin-top: 3vh;
		font-size: 0.75em !important;
	}

    .description h3 {
        font-size: 1em !important; 
    }

    #tag {
        bottom: 5vh;
    }

    #tag h6 {
        padding-bottom: 1vh;
        font-size: 1em;
    }


    #tag img {
        max-width: 150px; /* Ensure the logo doesn't exceed 150px */
        max-height: 150px; /* Restrict height similarly */    
    }

    .tile-front::before {
        background-image: url("./mages/BA-Home-mobile.png"); /* front tiles image */
        /* background-image: linear-gradient(to right, white, #636363); */
    }
    
    .tile-back::before {
        /* background-image: url("./mages/qr.png"); back tiles image */
        background-image: url("mages/BA-Line-up-mobile.png");
        /* background-repeat: no-repeat; Avoid tiling the image */
        /* background-position: center; Center the image */
    }

    nav a {
        font-size: 20px;
        margin-top: 0%;
    }

    footer {
        padding-top: 3vh;
        height: 2%;
        font-size: 5px;
        bottom: 3% !important;
        position: absolute;
    }

    .tile-face {
        position: absolute;
        width: 101%;
        height: 101%;
        backface-visibility: hidden;
        /* border-radius: 0.5em; */
        /* overflow: hidden; */
    }
    

}
