body {
    background-image: url("https://i.pinimg.com/736x/6d/67/3e/6d673e717aab5b8515f4d5ce5f0f28a6.jpg");
    text-align: center;
    font-family: monospace;
    color:rgb(68, 48, 32);
    animation: fadeIn 1s ease-in;
}

html{
    scroll-behavior: smooth;
}

img {
    width: 200px;
}

h1 {
    font-size: 100px;
    font-family: 'Unbounded', 'Times New Roman', serif;
    color: rgb(175, 219, 181);
    text-shadow: 2px 2px 4px #51bfce;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 10px;
    background-color: rgba(255, 238, 249, 0.8);
    display: flex;
    justify-content: space-around;
}

nav li {
    display: block;
}

nav li a {
    display: block;
    color: rgb(68, 48, 32);
    text-align: center;
    padding: 20px 16px;
    text-decoration: none;
    font-family: monospace;
}

nav li a:hover {
    background-color: rgba(228, 132, 207, 0.5);
}

p{ 
    font-size: 20px;
    font-family: 'Belleza', 'Unbounded', monospace;
    color: rgb(22, 21, 41);
}

.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-left {
    flex: 1 1 420px;
    max-width: 520px;
    text-align: left;
    margin-right: auto;
}

.intro {
    text-align: left;
    margin-top: 20px;
    padding-left: 0;
}

.carousel {
    position: relative;
    flex: 0 0 320px;
    width: 320px;
    height: 220px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top:150px;
}

.carousel-inner {
    position: relative;
    width: 220px;
    height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 10px;
}

.slide.active {
    opacity: 1;
}

.carousel-button {
    background: transparent;
    border: none;
    color: rgb(68, 48, 32);
    cursor: pointer;
    font-size: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: all 0.2s ease;
    position: relative;
}

.carousel-button:hover {
    transform: scale(1.1);
}

.carousel-button.prev::before {
    content: '';
    width: 0;
    height: 0;
    border: solid white;
    border-width: 0 6px 6px 0;
    padding: 6px;
    transform: rotate(135deg);
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.2s ease;
}

.carousel-button.next::before {
    content: '';
    width: 0;
    height: 0;
    border: solid white;
    border-width: 0 6px 6px 0;
    padding: 6px;
    transform: rotate(-45deg);
    box-shadow: 4px 4px 4px rgba(13, 90, 141, 0.5);
    transition: box-shadow 0.2s ease;
}

.carousel-button:hover::before {
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

footer{
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(255, 238, 249, 0.8);
    color: rgb(68, 48, 32);
    font-family: monospace;
}

section {
    margin: 40px auto;
    max-width: 800px;
    padding-top:40px;
}

.cipher-group {
    margin: 16px 0;
    text-align: left;
}

.cipher-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

#cipherText {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid rgba(68, 48, 32, 0.35);
    border-radius: 10px;
    font-family: monospace;
    font-size: 16px;
}

#cipherKey {
    width: 100%;
    padding: 10px;
    border: 2px solid rgba(68, 48, 32, 0.35);
    border-radius: 10px;
    font-family: monospace;
    font-size: 16px;
}

.cipher-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cipher-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background-color: rgb(175, 219, 181);
    color: rgb(68, 48, 32);
    font-size: 16px;
    cursor: pointer;
}

.cipher-buttons button:hover {
    background-color: rgb(146, 201, 156);
}

.result-output {
    word-break: break-word;
    background: rgba(255, 255, 255, 0.85);
    padding: 12px;
    border-radius: 10px;
    margin-top: 12px;
}

.pass-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pass-wrap #cipherKey {
    flex: 1;
    min-width: 0;
}

.view-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid rgba(68,48,32,0.12);
    background: rgba(255,255,255,0.9);
    cursor: pointer;
}

.view-toggle svg {
    width: 18px;
    height: 18px;
    color: rgb(68,48,32);
}

.view-toggle:hover {
    background: rgba(255,255,255,1);
}
