#ph-toolbar {
    position: fixed;
    top: 10px;
    left: 10px;

    display: flex;
    align-items: center;
    gap: 15px;

    background-color: #333;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: sans-serif;
    z-index: 1000;   /* ensure it's above main content */
}

/* Navigation info */
#nav-info {
    position: relative;
    width: fit-content;
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.65);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    color: white;
    cursor: pointer;
}

#nav-info-title {
    font-weight: bold;
    padding-bottom: 4px;
    margin-bottom: 0;
    border-bottom: 1px solid white;
}

#nav-info-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 6px;
    padding: 8px 10px;
    margin-top: 4px;
    white-space: nowrap;
    z-index: 2000;
}

#nav-info:hover #nav-info-content {
    display: block;
}

/* Toolbar buttons */
.toolbar-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.3s;
}

.toolbar-button:hover {
    background-color: #444;
}

.toolbar-button img {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
}

.toolbar-button-label {
    font-size: 11px;
    text-align: center;
}

/* Toggle switches */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.toggle-label {
    font-size: 12px;
    color: #fff;
}

.toggle-input {
    display: none;
}

.toggle-slider {
    width: 36px;
    height: 18px;
    border-radius: 18px;
    background: #bbb;
    position: relative;
    transition: background 0.3s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: 0.3s;
}

.toggle-input:checked + .toggle-slider {
    background: #4CAF50;
}

.toggle-input:checked + .toggle-slider::before {
    transform: translateX(18px);
}

/* Footer */
#footer {
    position: fixed;
    bottom: 65px;
    left: 30px;
    display: flex;
    align-items: flex-end;
    height: 100px;
    width: calc(100% - 60px);
    z-index: 500;   /* lower than toolbar */
}

#footer > span {
    color: #fff;
    font-family: sans-serif;
    margin-left: 21px;
    margin-top: auto;
    padding-bottom: 7px;
    display: block;
}

#cover {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #155dbb;
    padding: 20px;
    z-index: 600;   /* above footer, below toolbar */
}

#cover > a {
    color: #fff;
    font-family: sans-serif;
    display: block;
    margin-left: 18px;
    text-decoration: none;
}

/* Main content styles */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #155dbb;
}

a, h1 {
    color: white;
    font-family: sans-serif;
    text-decoration: none;
}

h1 {
    margin-left: 21px;
}

#phlogo {
    height: 100%;
}

#tile-container {
    display: flex;
    justify-content: space-around;
    margin-left: 21px;
    margin-top: 21px;
    flex-wrap: wrap;
}

.tile {
    background-color: #104891;
    padding: 8px 8px 8px 8px;
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    border-radius: 10px;
}

.tile > a {
    align-self: center;
    margin-top: 4px;
}

img {
    max-width: 400px;
    margin-bottom: 8px;
}

.img-container {
    width: 400px;
    height: 200px;
    overflow: hidden;
    margin-bottom: 8px;
    border-radius: 10px;
}
