/* Общие стили */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    background-image: url('img/back1.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    max-width: 400px;
    margin: 10px auto;
    padding: 0px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.header {
    text-align: left;
    margin: 0 -20px 20px;
    padding: 40px;
}

.header h1 {
    font-size: 36px;
    color: #000000;
    font-weight: bold;
}

.header p {
    font-size: 18px;
    color: #e63946;
    margin: -10px 0 0;
}

.checkbox-container {
    display: flex;
    margin-top: -10px;
    margin-left: 20px;
    margin-right: 20px;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin-bottom: 20px;
}

.toggle {
    width: 40px;
    height: 20px;
    appearance: none;
    background: #d1ad87;
    border-radius: 10px;
    position: relative;
    outline: none;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle:checked {
    background: #e63946;
}

.toggle:before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 1px;
    left: 1px;
    transition: 0.3s;
}

.toggle:checked:before {
    left: 21px;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.card-container1, .card-container2, .card-container3 {
    background-color: #f6f7fa;
    margin-bottom: -40px;
    padding: 30px 15px;
    border-radius: 20px;
    text-align: left;
    box-shadow: 0px -10px 5px rgba(0, 0, 0, 0.253);
    position: relative;
    z-index: 1;
    animation: slideUp 0.8s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
    border-style: solid;
    border-width: 1px;
    border-color: #000000;
}

.card-container1 {
    animation-delay: 0.4s;
    padding-bottom: 60px;
    padding-top: 10px;

}
.card-container2 {
    animation-delay: 0.8s;
    padding-bottom: 60px;
    padding-top: 10px;
    
}
.card-container3 {
    animation-delay: 1.2s;
    padding-top: 10px;
    
}  
.card-container p {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.size-btn, .boiled-btn {
    min-width: 60px;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 10px;
    font-size: 18px;
}

.size-btn:hover {
    background-color: #b3c7ff;

}

.size-btn.active{
   border: 2px solid #e63946;
   text-transform: uppercase;
   font-weight: bold;
   background-color: #a4b9f1;
    transform: scale(0.95);
    -webkit-transform: scale(0.95);
    -moz-transform: scale(0.95);
    -ms-transform: scale(0.95);
    -o-transform: scale(0.95);
}

/* Стили для кнопок с картинками */
.boiled-btn {
    width: 80px; /* Размер кнопки */
    height: auto;
    border: none;
}

.boiled-btn:hover {
    transform: scale(1.1); /* Увеличение при наведении */
}

.boiled-btn.active {
    transform: scale(0.9);
    -webkit-transform: scale(0.9);
    -moz-transform: scale(0.9);
    -ms-transform: scale(0.9);
    -o-transform: scale(0.9);
    height: auto;
    border: none;
    background: none;
}

.boiled-btn img {
    width: 40px;
    height: 40px;
    margin: 0 auto 5px;
}

.boiled-btn span {
    font-size: 14px;
    text-transform: lowercase;
}

#time {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 48px;
    color: #000000;
    text-align: center;
    margin: 10px 010px;
}

.start-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.start-btn, .reset-btn {
    border: rgb(5, 30, 253) 1px solid; 
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    width: 170px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 4px rgb(0, 0, 0);
}

.start-btn {
    background-color: #ffb3b3;
    color: #333;
}

.start-btn:hover {
    background-color: #ff9999;
    transform: scale(1.05);
}

.reset-btn {
    background-color: #d6d6d6;
    color: #333;
    margin-left: 10px;
}

.reset-btn:hover {
    background-color: #bfbfbf;
    transform: scale(1.05);
}
#text-container {
    display: flex;
    justify-content: left;
    align-items: left;
    margin-top: 20px;
}
.time-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}
#text-container p {
    font-size: 18px;
    color: #161616;
    margin-bottom: 10px;
    margin-left: 20px;
}
.size-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 20px;
}
.size-container p {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    margin-left: 20px;
}
.boiled-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 20px;
}

.boiled-btn {
    width: 80px; /* Размер изображения */
    height: auto;
    cursor: pointer;
    transition: box-shadow 0.2s ease-in-out;
}

.boiled-btn.active {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); /* Тень для активной кнопки */
}

.boiled-container p {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    margin-left: 20px;
}