html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    transition: background-color 0.5s, color 0.5s;
}

/* On tall screens keep everything within ~95% of the viewport */
@media (min-height: 720px) {
    body {
        height: 95vh;
        min-height: auto;
        overflow: hidden;
    }
}

h1 {
    margin-top: 10%;
    margin-bottom: 10%;
    font-size: 36px;
    margin: 20px 10px;
    flex-shrink: 0;
}

h2 {
    flex-shrink: 0;
}

p {
    font-size: 18px;
    /* color: #ccc; */
}
hr {
    width: 80%;
    border: 0;
    /* margin-top: 2%;
    margin-bottom: 2%; */
    border-top: 1px solid #929292;
    flex-shrink: 0;
}

.joke-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
}

.joke-text {
    font-size: 18px;
    font-weight:lighter;
    font:small-caps;
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: justify ;
    font-style: italic;
}

.joke-text:hover::before {
    content: attr(title);
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1;
    bottom: 90%;
    left: 50%;
    transform: translateX(-50%);
}

.copy-button,
.refresh-button {
    align-items: center;
    background-color: transparent;
    /* background-color: rgba(255, 255, 255, 0.1); */
    backdrop-filter: blur(5px);
    /* cursor: pointer; */
    border-radius: 20px;
    color: lightskyblue;
    cursor: pointer;
    display: inline-flex;
     display: flex; 
    border: 1px solid currentColor;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 20px;
    margin-right: 10px;
    padding: 8px;
    position: relative;
    transition: background-color 0.3s, transform 0.1s;
    /* Space between buttons */
}

.copy-button:hover,
.refresh-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.copy-button:active,
.refresh-button:active {
    transform: scale(0.95);
}

.copy-button.copied {
    background-color: #4CAF50;
    color: white;
}

.copy-icon,
.refresh-icon {
    display: block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    margin-right: 8px;
}

.button-container {
    display: flex;
    gap: 10px;
    /* Space between buttons */
    margin-top: 10px;
    margin-bottom: 20px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    display: inline-flex;
}

.image-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10%;
    height: 70%;
    padding: 20px;
    box-sizing: border-box;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #e3e3e3;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px;
    box-sizing: border-box;
    /* margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 10px; */
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    /* max-height: 100%; */
    transition: transform 0.3s;
}
