﻿@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
body {
    font-family: Roboto Condensed;
    font-size: 22px;
   /* background-image: linear-gradient(to bottom right, lightskyblue, pink);
    background-attachment: fixed;*/
}

summary {
    font-size: 32px;
    font-weight: 500;
}

input {
    font-size: 22px;
}
/*--------------------------------------------*/
#switch-background
{
    width:32px;
    height:32px;
    margin:0px 16px;
    background-size:32px 32px;
}
.dark 
{
    /*background-image:none;*/
   /* transition: all 3s ease;*/
    color: #C8C8C8;
    background-color:#323232;
    /*background-image: linear-gradient(#323232, #323232);*/
    background-attachment: fixed;
   /* transition: color 3s, background-image 3s;*/
}
    .dark #switch-background
    {
        background-image:url("img/sun.png");
        filter:brightness(0) invert(1);
    }

.white {
    /* transition: all 3s ease;*/
    color: black;
    background-color:#C8C8C8;
    /* background-image: linear-gradient(to bottom right, lightskyblue, pink);*/
    background-attachment: fixed;
    /*transition: color 3s, background-image 3s;*/
    /* transition: color 3s;
    transition: background-image 3s;*/
}
    .white #switch-background 
    {
        background-image: url("img/moon.png");       
    }

#header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
}

#switch-background /*> img*/ {
    width: 32px;
    height: 32px;
}
/*--------------------------------------------*/
#photo-and-color {
    display: flex;
    justify-content: space-between;
}

#photo-container {
    border: solid 1px;
    width: 400px;
    height: 300px;
}

#photo {
    width: 400px;
    height: 300px;
}
/*--------------------------------------------*/
#cat-animation-area {
    width: 250px; /* Размер, соответствующий вашему изображению */
    height: 250px;
    margin: 20px auto;
    /* КОТ как фоновое изображение */
    background-image: url('img/mykitten.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* 1. Контейнер для позиционирования таймера */
    position: relative;
    /* 2. Анимация хвоста */
    transform-origin: 80% 60%;
    animation: tail-wag 1.5s ease-in-out infinite alternate;
}

@keyframes tail-wag {
    0% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(-5deg);
    }
}

/* ======================================== */
/* Стили для Таймера (ВНУТРИ КОТА)           */
/* ======================================== */

#display {
    /* Позиционируем таймер, чтобы он был виден поверх кота */
    position: absolute;
    top: 22%; /* Выше, чем середина кота */
    left: 50%;
    transform: translateX(-50%);
    /* Стилизация таймера: белый текст для контраста с черным силуэтом */
    color:lightgoldenrodyellow;
    background-color: rgba(0, 255, 0, 0.5);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    z-index: 10; /* Убеждаемся, что он поверх кота */
}

.time-unit {
    font-size: 1.5em;
    font-weight: bold;
}

.time-marker {
    font-size: 0.6em;
}

.time-block {
    display: inline-block;
    margin: 0 5px;
}
/*#display 
{
    border: solid 3px green;
    margin: 10px;
    padding: 10px;
    display: flex;
    justify-content: space-around;
}

.time-block 
{
    border: solid 3px;
    border-radius: 10px;
    width: 148px;
    box-shadow: 0px 0px 25px 5px yellow;
}

.time-unit {
    font-size: 48px;
    color: greenyellow;
    height: 148px;
    background-color: dodgerblue;
}

.time-marker {
    border: solid 1px;
    background-color: blueviolet;
    color: Aliceblue;
}*/