@font-face {
    font-family: 'AlarmClock';
    src: url('./fonts/alarm-clock.ttf') format('truetype');
}

@font-face {
    font-family: 'CartoGothic';
    src: url('./fonts/CartoGothicStd-Book.otf') format('opentype');
}

*, html {
    cursor: url('images/cursor-default.png') 0 0, auto;
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: repeating-linear-gradient(
        to bottom,
        #ffffff 0px,
        #ffffff 4px,
        #f7f7f7 4px,
        #f7f7f7 8px
    );
    font-family: 'CartoGothic', 'Arial', sans-serif;
    overflow: hidden;
}

.screen {
    width: 800px;
    height: 600px;
    background: transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.main-grid {
    padding: 20px;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
}

.channel-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.channel-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.channel, .channel-empty {
    width: 240px;
    height: 120px;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 3px solid rgba(200, 200, 200, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.channel:hover {
    transform: scale(1.05);
    cursor: url('images/cursor-pointer.png') 0 0, pointer;
}

.wii-button, .mail-button {
    cursor: url('images/cursor-pointer.png') 0 0, pointer;
}

.channel img {
    width: 100%;
    height: 100%;
    border-radius: 22px;
}

.channel-empty {
    background-image: url('images/empty-channel.png');
    background-size: cover;
    opacity: 0.5;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    background-image: url('images/footer-background.png');
    background-size: cover;
    color: #333;
    position: absolute;
    bottom: 20px;
    width: calc(100% - 40px);
}

.footer-left, .footer-center, .footer-right {
    display: flex;
    align-items: center;
}

.footer-center {
    flex-direction: column;
}

#time {
    font-family: 'AlarmClock', 'Arial', sans-serif;
    font-size: 4.2em;
    font-weight: 900;
    color: #9c9c9c; 
}

.colon {
    animation: blink 1.5s infinite ease-in-out;
}

@keyframes blink {
    0%, 35% {
        opacity: 1;
    }
    40%, 60% {
        opacity: 0;
    }
    65%, 100% {
        opacity: 1;
    }
}

.wii-button, .sd-card-button, .mail-button {
    width: 90px;
    height: 90px;
    margin: 0 5px;
}

.wii-button img, .sd-card-button img, .mail-button img {
    width: 100%;
    height: 100%;
}
