body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-size: cover; /* Ensure the background image covers the entire body */
    background-repeat: no-repeat; /* Prevent the background image from repeating */
    background-position: center; /* Center the background image */
}



.container {
    display: inline-block;
}

.text {
    font-size: 50px;
    margin: 0px 0 0;
    font-family: monospace;
    font-weight: bold;
    color: white;
    -webkit-text-stroke: 2px black;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

@keyframes typingFirstLine {
    from { width: 0; opacity: 0; }
    to { width: 100%; opacity: 1; }
}

@keyframes typingSecondLine {
    from { width: 0; opacity: 0; visibility: hidden; }
    to { width: 100%; opacity: 1; visibility: visible; }
}

.text:first-child {
    animation: typingFirstLine 3s steps(40);
}

.text:nth-child(2) {
    opacity: 0;
    animation: typingSecondLine 3s steps(40);
    animation-delay: 3s;
    animation-fill-mode: forwards; /* Keep the final state after animation completes */
}




a {
    text-decoration: none;
}



.box-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 0px; /* Adjust the spacing between box-containers */
}

.box-wrapper {
    margin-left: 45px; /* Adjust the spacing between boxes */
    margin-right: 45px;
    margin-top: 40px;
}

.rounded-box-kicsi{
    width: 200px;
    height: 100px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8); /* Adjust the alpha value for transparency */
    transition: background-color 0.3s ease; /* Smooth transition effect */
}

.rounded-box-kicsi:hover {
    background-color: rgb(194, 242, 212); /* Change to full opacity on hover */
}

/*qBittorrent*/
.rotate {
    transition: transform 1.5s ease; /* Smooth transition effect for rotating */
}

.rounded-box-kicsi:hover .rotate {
    transform: rotate(360deg); /* Adjust the rotation angle for the rotation */
}


/*Bitwarden*/
.rounded-box-bitwarden {
    position: relative;
    width: 200px;
    height: 100px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    transition: background-color 0.3s ease, background-position 0.9s ease, font-size 0.9s ease; /* Smooth transition effect for color and position */
    color: #175ddc;
    font-size: 1px;
    font-weight: bold;
}

.rounded-box-bitwarden:before,
.rounded-box-bitwarden:after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background-position: center;
    background-size: 80%;
    transition: background-position 0.9s ease;
}

.rounded-box-bitwarden:before {
    left: 0;
    background-position: 60px center;
    background-image: url(/pictures/bitwarden-bal.png);
    background-repeat: no-repeat;
}

.rounded-box-bitwarden:after {
    right: 0;
    background-position: -40px center;
    background-image: url(/pictures/bitwarden-jobb.png);
    background-repeat: no-repeat;
}

.rounded-box-bitwarden:hover {
    background-color: rgb(194, 242, 212);
    color: #175ddc;
    font-size: 25px;
}

.rounded-box-bitwarden:hover:before {
    background-position: left center;
}

.rounded-box-bitwarden:hover:after {
    background-position: right center;
}

/*Nextcloud*/
.rounded-box-nextcloud {
    width: 200px;
    height: 100px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8); /* Adjust the alpha value for transparency */
    transition: background-color 0.3s ease, background-image 0.9s ease, background-position 0.9s ease, background-size 0.9s ease; /* Smooth transition effect for color and position */
    background-image: url(/pictures/nextcloud-removebg.png);
    background-repeat: no-repeat;
    background-position: center 30px;
    background-size: 130%;
}

.rounded-box-nextcloud:hover{
    background-position: center;
    background-color: rgb(194, 242, 212); /* Change to full opacity on hover */
    background-image: url(/pictures/nextcloud-removebg.png);
    background-size: 80%;
}


/*Weboldal*/
.rounded-box-honlap {
    width: 450px;
    height: 100px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8); /* Adjust the alpha value for transparency */
    transition: background-color 0.3s ease, background-image 0.9s ease, background-position 0.9s ease; /* Smooth transition effect for color and position */
    background-image: url(/pictures/weboldal-removebg.png);
    background-repeat: no-repeat;
    background-position: -150px center;
    background-size: 80%;
}

.rounded-box-honlap:hover {
    background-position: center;
    background-color: rgb(194, 242, 212); /* Change to full opacity on hover */
    background-image: url(/pictures/weboldal-removebg.png);
    background-size: 80%;
}


/*E-book*/
.rounded-box img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 15px;
}

.change-img {
    width: 200px;
    height: 100px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8); /* Adjust the alpha value for transparency */
    transition: background-color 0.3s ease, background-size 0.8s ease; /* Smooth transition effect */
    background-image: url(/pictures/book-closed.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40%;
}

.change-img:hover {
    background-image: url(/pictures/book-opened.svg);
    background-size: 60%;
    background-color: rgb(194, 242, 212);
}



/* Calendar box */
.toggle-box {
    width: 300px;
    height: 100px; /* Default height */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    transition: height 0.3s ease; /* Transition height for expansion */
    padding: 10px;
    cursor: pointer;
}

.toggle-box:hover {
    background-color: rgb(194, 242, 212);
}

.calendar-container {
    margin-bottom: 0px; /* Add margin at the bottom of the calendar container */
}

.description {
    padding-left: 10px;
    padding-right: 10px;
    border-top: 2px solid #ccc; /* Ensure the border line stays visible */
    height: 0; /* Initially hidden */
    overflow: hidden; /* Hide overflow content */
    opacity: 0; /* Initially transparent */
    transition: height 0.3s ease, opacity 0.3s ease; /* Transition height and opacity */
}

.toggle-box.expanded .description {
    opacity: 1; /* Fully visible */
}

.gap {
    margin-bottom: 10px;
}


/*Calendar-text*/
#calendar {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    background-image: url('/pictures/OneCalendar_empty.png');
    background-size: 30%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 15px;
    padding: 20px;
    box-sizing: border-box;
}

#calendar .month {
    font-size: 1em;
    margin-top: 20px;
    padding: 1px 1px;
    border-radius: 1px;
}

#calendar .day {
    font-size: 1.5em;
    font-weight: bold;
    padding: 1px 1px;
    border-radius: 1px;
}



/*Video-plex*/
.media-container {
    width: 300px; /* Adjust as needed */
    height: 300px; /* Adjust as needed */
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#preview-image {
    display: block;
}

#animated-video-plex {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none; /* Initially hidden */
}

/*Video-home-assistant*/
#animated-video-home-assistant,
#animated-video-home-assistant-out {
    width: 105%;
    height: 105%;
    position: absolute;
    top: 10; /* Adjust as needed */
    left: 20; /* Adjust as needed */
    display: none; /* Initially hidden */
}

/*Immich*/
.rounded-box-immich {
    position: relative;
    width: 200px;
    height: 100px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    transition: background-color 0.3s ease, background-position 0.9s ease, font-size 0.9s ease; /* Smooth transition effect for color and position */
    color: #175ddc;
    font-size: 1px;
    font-weight: bold;
}
