/* styles.css */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu {
    position: relative;
    margin-bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hamburger {
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.show {
    display: block;
}

.grid {
    display: grid;
    gap: 10px;
    width: 90%;
    height: 70%;
}

.grid-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: 80%;
    object-fit: contain;
}

.grid-item p {
    margin: 0;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    width: 100%;
}

.navigation {
    width: 90%;
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.navigation button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

/* Portrait mode */
@media (orientation: portrait) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}

/* Landscape mode */
@media (orientation: landscape) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
}
