@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;700&display=swap');

* {
    transition: all 0.3s ease;
    font-family: 'Onest', 'sans-serif';
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    min-height: 100vh;
    background-color: #f4f4f6;
    color: #000000;
    transition: all 0.6s ease;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.dark {
    background-color: #1a1a1d;
    color: #ffffff; 
}

.скрыт {
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-width: 0 !important;
    transform: translateX(-150%);
}

#calk {
    margin: 5px;
    border: solid black 4px;
    border-radius: 5px;
    max-width: 200px;
    height: 60px;
    font-size: 10px;
    background-color: #27272700;
    transition: all 0.3s ease;
}

#calk:hover { background-color: #8c8c8c; }
#calk:active { transform: scale(0.95); }

#group {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 1;
    margin-left: 7px;
    margin-top: 2px;
    margin-bottom: 1px;
    border-radius: 10px;
    max-width: 200px;
    min-width: 280px;
    border: solid black 5px;
    background-color: rgb(120, 120, 120);
    max-height: 500px;
    transition: transform 0.3s ease, opacity 0.8s ease, visibility 0.8s ease, background-color 0.3s ease, max-height 0.3s ease-in-out;
}

#group:hover { background-color: rgb(95, 95, 95); }

#search {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    text-align: center;
    padding: 10px;
    margin: 60px auto 0 auto;
    color: white;
    max-width: 600px;
    border-radius: 15px;
}

#searchValue {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

#input {
    flex: 1;
    min-width: 0;
    height: 50px;
    font-size: 24px;
    background-color: #2a2a2f;
    outline: none;
    padding-left: 25px;
    overflow: scroll;
    border-radius: 22px;
    border: none;
    color: #6e6e78;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#input::placeholder { color: #6e6e78; }

#result {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: #2a2a2f;
    border-radius: 50%;
    font-size: 20px;
    border: none;
    cursor: pointer;
}

#result:hover {
    background-color: #4d4d4d;
    transform: scale(1.05);
}

#result:active {
    transform: scale(0.98);
}

.svgS {
    height: 25px;
    width: 25px;
}

#sites {
    display: flex;
    flex-wrap: wrap;
    flex-grow: 0;
    margin-top: 15px;
    justify-content: center;
    gap: 15px;
    flex-direction: row;
    max-width: 600px;
    height: 70px;
}

.sites {
    max-width: 50px;
    max-height: 50px;
    border-radius: 50%;
    transition: all 0.2s ease;
    border: solid black 5px;
}

.sites:hover {
    transform: scale(1.05);
    box-shadow: 5px 2px 10px rgba(0, 0, 0, 0.8);
}

.sites:active { transform: scale(0.95); }

::placeholder { color: white; }

h1 { font-family: Oswald; }

#list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    list-style: square;
    padding: 5px;
    background-color: #2a2a2f;
    color: #ffffff;
    min-width: 160px;
    border-radius: 5px;
    transition: transform 0.3s ease, opacity 0.4s ease, visibility 0.5s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    transform: translateX(0);
    height: auto;
}

#list:hover { box-shadow: 7px 5px 10px rgba(0, 0, 0, 0.8); }

#list.hidden {
    transform: translateX(-150%);
    opacity: 0;
    visibility: hidden;
}

button {
    border: none;
    height: 24px;
    border-radius: 9px;
    background: #7A7A7A;
    color: #ffffff;
    transition: all 0.8s ease;
}

button:hover {
    background-color: #4d4d4d;
    transition: all 0.2s ease;
    transform: scale(102%);
}
label {
float: left;
}
#menu {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 60px;
    height: 60px;
}

#menu img {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    transform-origin: center center;
}

#menu:active img { transform: rotate(360deg); }

#menuDiv {
    position: fixed;
    left: 5px;
    top: 5px;
    z-index: 100;
}

#time {
    position: relative;
    font-size: 90px;
    height: auto;
    text-align: center;
    padding: 0;
    margin-bottom: 0;
    margin-top: 0px;
    margin-left: 10px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

#href {
    background-color: #4d4d4d;
    border: solid 3px #000000;
    border-radius: 7px;
    min-width: 70px;
    min-height: 20px;
}

#clockLabel {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
}

#gaby {
    font-family: 'Onest', 'sans-serif';
    font-size: 3.6rem;
    font-weight: 700;
    text-align: center;
    cursor: default;
    user-select: none;
}

footer {
    position: absolute;
    text-align: center;
    left: 0;
    right: 0;
    bottom: 0;
}

a { color: #5b5b63; }

#informatiion {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    flex-direction: column;
    height: 200px;
    max-width: 450px;
    border-radius: 15px;
    text-align: center;  
    padding: auto;
}

.profile {
    position: absolute;
    right: 8px;
    top: 8px;
    border-radius: 7px;
    border: none;
    width: 100px;
    height: 40px;
    background-color: #99c3ff;
}

#cursLabel {
    font-size: 14px;
    text-align: left;
}

#dateLabel {
    text-align: center;
    font-size: 18px;
}

.switcher {
    position: relative;
    width: 50px;
    padding: 2px;
    float: right;
    height: 24px;
    border-radius: 20px;
    background-color: #8f8f96;
    appearance: none;
    transition: all 0.3s ease;
}

.switcher:checked {
    background-color: #c5882d;
    transition: all 0.3s ease;
}

.switcher::before {
    content: "";
    transition: all 0.3s ease;
    position: absolute;
    width: 23px;
    top: 1px;
    height: 22px;
    border-radius: 50%;
    background-color: #ffffff;
}

.switcher:checked::before { transform: translateX(25px); }

#weatherLabel {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

#themeLabel {
margin-bottom: 15px;
}
#themes {
position: absolute;
bottom: 30px;
right: 3px;
z-index: 3;
width: 150px;
cursor: pointer;
height: 60px;
font-size: 18px;
padding: 5px;
}
#divthemes {
position: absolute;
bottom: 100px;
padding: 20px;
right:  5px;
width: 300px;
height: 250px;
background-color: #51515a;
border-radius: 15px;
display: grid;
grid-template-columns: repeat(2, 1fr); /* 3 столбца одинаковой ширины */
grid-template-rows: repeat(2, 60px);
gap: 15px;
}
.item {
background-color: #7a7a86;
width: 130px;
cursor: pointer;
height: 60px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 7px;
&:hover {
background-color: #626269;
    }
}
.hidden { 
opacity: 0;
visibility: hidden;
}
/* ========== ДОПОЛНИТЕЛЬНЫЕ ТЕМЫ ========== */
body.light-cyan {
    background: linear-gradient(135deg, #b8e1fc, #d0f0fd);
    color: #023b66;
}
body.light-cyan #input,
body.light-cyan #result,
body.light-cyan #list,
body.light-cyan .item,
body.light-cyan #divthemes {
    background-color: #ffffffd0;
    color: #023b66;
}
body.light-green {
    background: linear-gradient(135deg, #b9fbc0, #a3e4a7);
    color: #0a3b14;
}
body.light-green #input,
body.light-green #result,
body.light-green #list,
body.light-green .item,
body.light-green #divthemes {
    background-color: #ffffffd0;
    color: #0a3b14;
}

body.light-yellow {
    background: linear-gradient(135deg, #fff0b5, #ffe084);
    color: #6b4c00;
}
body.light-yellow #input,
body.light-yellow #result,
body.light-yellow #list,
body.light-yellow .item,
body.light-yellow #divthemes {
    background-color: #ffffffd0;
    color: #6b4c00;
}

body.purple {
    background: linear-gradient(135deg, #d9b4ff, #c085f0);
    color: #2a004d;
}
body.purple #input,
body.purple #result,
body.purple #list,
body.purple .item,
body.purple #divthemes {
    background-color: #ffffffd0;
    color: #2a004d;
}
@media (max-width: 780px) {
    #search { margin-top: 80px; }
    #searchValue { gap: 8px; }
    #input { height: 40px; font-size: 16px; padding-left: 15px; }
    #result { width: 40px; height: 40px; }
    .svgS { height: 20px; width: 20px; }
    #gaby { font-size: 36px; margin-top: 30px; }
    #time { font-size: 48px; }
    .sites { max-width: 40px; max-height: 40px; }
    #sites { gap: 10px; }
    #list { min-width: 120px; }
    #cursLabel, #clockLabel, #dateLabel { font-size: 14px;}
    #divthemes { display: none; }
    #themes {display: none;}
}