/* === FONT === */
@font-face {
    font-family: 'Gardens CM Regular';
    src: url('assets/fonts/GardensCMRegular.woff2') format('woff2'),
         url('assets/fonts/GardensCMRegular.woff') format('woff');
    font-display: swap;
}

/* === RESET === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    color: #333;
}

/* === EMOJI === */
img.emoji {
    height: 1.1em;
    width: 1.1em;
    margin: 0 .05em 0 .1em;
    vertical-align: -0.1em;
}

/* === BODY === */
body {
    font-family: 'Gardens CM Regular', sans-serif;
    height: 100vh;
    width: 850px;
    margin: 0 auto;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* === COMMON BACKGROUNDS === */
.dashboard,
.time-display,
.db-item:first-child {
    background-color: #ffebf0;
}

/* === COMMON BLOCK STYLE === */
.dashboard,
.half {
    padding: 10px;
    border: 2px solid #333;
    border-radius: 10px;
    background: #fff;
}

/* === COMMON INTERACTIVE ITEMS === */
.db-item,
.menu-item,
.time-display {
    padding: 5px 10px;
    border-radius: 5px;
}

.db-item,
.menu-item {
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font: inherit;
    white-space: nowrap;
    text-decoration: none;
    display: block;
    text-align: left;
}

.db-item:hover,
.menu-item:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.db-item:first-child:hover {
    background-color: rgb(255, 183, 190);
}

/* === DASHBOARD === */
.dashboard {
    margin: 10px;
    display: flex;
    gap: 5px;
    flex-shrink: 0;
    align-items: center;
}

.time-display {
    margin-left: auto;
    font-weight: bold;
    flex-shrink: 0;
}

/* === MAIN LAYOUT === */
.container {
    display: flex;
    flex: 1;
    padding: 0 10px 10px;
    gap: 10px;
    min-height: 0;
    overflow: hidden;
}

.left,
.right {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.left {
    width: 215px;
    flex-shrink: 0;
}

.right {
    flex: 1;
    min-width: 0;
}

/* === START PAGE === */
.start-container {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border: 2px solid #333;
    border-radius: 10px;
    margin: 0 10px 10px;
    background: #fff;
}

.start-container > * {
    animation: fadeIn 0.3s ease;
}

.start-label {
    font-size: 2.5rem;
}

.start-text {
    font-size: 1.5rem;
    color: #666;
}

.start-link {
    margin-top: 20px;
    padding: 10px 20px;
    background: #f0f0f0;
    border-radius: 5px;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: inherit;
    text-align: center;
    font-size: 1.1rem;
    display: inline-block;
}

.start-link:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.start-logo {
    width: 100px;
    height: 100px;
}

/* === SCROLL CONTAINERS === */
.menu-container,
.content-section,
.cards-grid {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.menu-container::-webkit-scrollbar,
.content-section::-webkit-scrollbar,
.cards-grid::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

/* === MENU === */
.menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.period + .period {
    margin-top: 15px;
}

.menu-item.active {
    background-color: #ff009d;
    color: #fff;
}

/* === CONTENT === */
.content-section {
    flex: 1;
    border-radius: 5px;
    display: none;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: flex;
}

.label,
.content-title {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #ff009d;
    flex-shrink: 0;
}

/* === GRID === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    flex: 1;
    border-radius: 5px;
}

/* === CARDS BASE === */
.card {
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

/* === TEXT CARD === */
.card-type-1 {
    border: 2px dotted #000;
    padding-top: 100%;
    position: relative;
}

.card-type-1 > * {
    position: absolute;
    inset: 0;
    padding: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.card-text {
    margin: 0;
    line-height: 1.4;
    color: #333;
}

/* === IMAGE CARD === */
.card-type-2 {
    padding-top: 100%;
    position: relative;
}

.card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === MISC === */
.date {
    margin-bottom: 5px;
}

.highlight {
    color: #ff009d;
}

/* === ANIMATION === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}