body {
    background-color: #f5c06e;
    font-family: Tahoma, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
}
/* Hamburger Menu Styles */
.hamburger-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.hamburger-icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 5px;
    background-color: #bfc3bd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.hamburger-icon:hover {
    background-color: #a8aca6;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hamburger-icon span {
    width: 20px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-dropdown {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    background-color: #bfc3bd;
    min-width: 220px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    overflow: hidden;
}
#hamburgerMenu.visible {
    display: block;
}
.hamburger-dropdown a {
    display: block;
    color: #333;
    padding: 15px 20px;
    text-decoration: none;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #a8aca6;
}

.hamburger-dropdown a:last-child {
    border-bottom: none;
}

.hamburger-dropdown a:hover {
    background-color: #a8aca6;
}

.hamburger-dropdown a:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.hamburger-dropdown a:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Shape Navigation - Top Menu */
.shape-nav {
    position: fixed;
    top: 20px;
    left: 80px;  /* Position after hamburger */
    display: flex;
    gap: 10px;
    z-index: 999;
}

.shape-nav button {
    background-color: #bfc3bd;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.shape-nav button:hover {
    background-color: #a8aca6;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.shape-dropdown {
    display: none;
    position: absolute;
    background-color: #bfc3bd;
    top: 35px;
    min-width: 150px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    overflow: hidden;
}

.shape-dropdown.show {
    display: block;
}

.shape-dropdown a {
    display: block;
    color: #333;
    padding: 12px 15px;
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #a8aca6;
}

.shape-dropdown a:last-child {
    border-bottom: none;
}

.shape-dropdown a:hover {
    background-color: #a8aca6;
}

.shape-dropdown a.active {
    background-color: #8b8f89;
    color: #fff;
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

h1 {
/*margin-bottom: 30px;*/
    font-family: Georgia, serif;
    font-size: 1.5rem;    
    text-align: center;
    color: #444;
    padding: 0 1rem;
    line-height: 1.3;
    word-break: break-word;
}

/* visited link */
a:visited {
  color: rgb(0, 0, 0);
}

.grid {
    display: grid;
        grid-template-columns: repeat(4, 100px);
        grid-template-rows: repeat(4, 100px);
        gap: 0;
}

.tile {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.tile img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

/* Mobile and Tablet Responsiveness */
@media screen and (max-width: 768px) {
    .shape-nav {
        left: 70px;  /* Closer to hamburger */
        top: 15px;
        gap: 5px;    /* Smaller gap between buttons */
    }
    
    .shape-nav button {
        padding: 10px 12px;  /* Still tappable but more compact */
        font-size: 13px;     /* Slightly smaller text */
    }
    
    .shape-dropdown {
        min-width: 140px;    /* Slightly narrower dropdowns */
    }
}

/* Small phones */
@media screen and (max-width: 600px) {
    .shape-nav {
        left: 60px;
        top: 70px;   /* Move below hamburger */
        flex-wrap: wrap;  /* Allow buttons to wrap to next line */
        max-width: calc(100% - 80px);  /* Don't go off screen */
    }
    
    .shape-nav button {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .wrapper {
        margin-top: 120px;  /* Make room for wrapped menu */
    }
    
    .grid {
        grid-template-columns: repeat(4, 80px);  /* Smaller tiles */
        grid-template-rows: repeat(4, 80px);
    }
    
    .tile {
        width: 80px;
        height: 80px;
    }
}

/* Very small screens */
@media screen and (max-width: 400px) {
    .grid {
        grid-template-columns: repeat(4, 70px);  /* Even smaller tiles */
        grid-template-rows: repeat(4, 70px);
    }
    
    .tile {
        width: 70px;
        height: 70px;
    }
}
