body {
    font-family: Arial, sans-serif;
    margin: 5px 10px 5px 10px;
    height: 100%;
	min-height: 100vh;
	display: flex;
    flex-direction: column;
}

#content {
	flex: 1;
}

header, footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0 20px 0;
    width: 100%;
    box-sizing: border-box;
	position: relative;
    margin-bottom: 10px;
}
header {
    background-image: url(images/digital-bg.png);
    background-repeat: no-repeat;
    background-position-y: center;
    background-size: cover;
    background-blend-mode: overlay;
    /* background-blend-mode: hard-light; */
}

        .logo {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
        }

.header-buttons {
    display: flex;
    gap: 50px;
    flex-direction: row;
    right: -13px;
    position: absolute;
    bottom: 40px;
}

.header-button {
    font-size: 28px;
    color: white;
    position: relative;
    text-decoration: none;
	margin: 0 5px;
}

.header-button i {
    position: absolute;
    right: 26px;
}

.header-button i:hover {
    color: #3d9df1;
}

        .welcome-message {
            margin: 0;
            font-size: 0.8em;
            position: relative;
            top: -91px;
        }
        
main {        
    flex: 1;
    padding: 1em;
    width: 100%;
    box-sizing: border-box;
}

#trafficDisplay {
    font-family: monospace;
    font-size: 2rem;
    background: #f7f7f7;
    color: black;
    padding: 1rem;
    border-radius: 8px;
    display: inline-block;
    border: 2px solid black;
}

#dashboard {
    margin-top: 30px;
    padding: 10px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.dashboard-card {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.dashboard-card i {
    font-size: 28px;
    margin-right: 15px;
    color: #3498db;
    min-width: 30px;
    text-align: center;
}

.dashboard-card .label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.dashboard-card .value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.traffic-stats-display {
    display: flex;
}


.file-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-bottom: 20px;
}

.file-table th, .file-table td {
    border: 1px solid #ddd;
    padding: 8px;
    word-break: break-word; /* Szöveg tördelése */
    overflow: hidden; /* Tartalom elrejtése */
}

.file-table th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #f2f2f2;
    color: black;
}

.file-table th:nth-child(1),
.file-table td:nth-child(1) {
    width: 50%; /* Az első oszlop 50% szélességű legyen */
}

.file-table th:nth-child(2),
.file-table td:nth-child(2) {
    width: 30%; /* A második oszlop 30% szélességű legyen */
}

.file-table th:nth-child(3),
.file-table td:nth-child(3) {
    width: 20%; /* A harmadik oszlop 20% szélességű legyen */
}


.actions a{
    display: inline-block; /* Font Awesome ikonok blokk elemekként kezelése */
    font-size: 20px; /* Ikonok méretének beállítása */
    color: #333; /* Ikonok színének beállítása */
}

.actions i {
    margin-right: 10px; /* Távolság az ikonok között */
    cursor: pointer; /* Mutatós kéz kurzor az ikonok fölött */
}

.actions i:hover {
    color: #3d9df1;
}

button {
    padding: 0.5em 1em;
    cursor: pointer;
}

#login-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
	z-index: 999;
}

#login-popup .close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 24px;
    cursor: pointer;
    color: #333;
    font-weight: bold;
}

#login-popup .close-btn:hover {
    color: #f00;
}

.popup.hidden {
    display: none;
}

.user-register-form {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid black;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
}

.user-register-form #username, .user-register-form #password, .user-register-form #public_name {
    font-size: 15px;
}

.user-register-form button {
    font-size: larger;
}

#login-form,
#file-upload-form {
    display: flex;
    flex-direction: column;
}
#upload-popup {
	display: flex;
    flex-direction: column;
}

#login-form label,
#login-form input,
#login-form button,
#file-upload-form label,
#file-upload-form input,
#file-upload-form button {
    margin-bottom: 1em;
}

header {
    position: relative;
}
/* off
#login-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}
*/
#logout-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

#login-btn:hover {
    padding: 0.5em 1em;
    cursor: pointer;
    background-color: #a688dd;
    border-radius: 5px;
    border: 2px solid black;
}   

#login-btn {
    padding: 0.5em 1em;
    cursor: pointer;
    background-color: #fff;
    border-radius: 5px;
    border: 2px solid #968ce9;
    font-weight: bold;
} 

#search-form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

#search-query {
    flex: 1;
    padding: 0.5em;
    box-sizing: border-box;
}

#search-form button {
    padding: 0.5em 1em;
}

.admin-settings-block {
	display: flex;
    flex-direction: column;
    margin-bottom: 20px;
	background-color: #e3dff1;
    padding: 10px;
    border: 3px solid #333;
    border-radius: 5px;
    line-height: 1.6;
}

.admin-settings-block textarea {
  width: 100%;
  box-sizing: border-box;
}

.admin-settings-block input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
}


#smtp-settings, #email-settings, #test-email {
	line-height: 2;
}
.cookie-popup{
	position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
	color: #fff;
    background-color: #000;
    border: 1px solid #ccc;
    padding: 2em;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
	text-align: center;
	border-radius: 10px;
}
.cookie-popup a {
    text-decoration: none;
	color: #adff2f;
}
.footer-menu{
	display: block;
    position: absolute;
    left: 50px;
    line-height: 1.8;
	border-left: 2px solid #fff;
	padding-left: 5px;
	vertical-align: middle;
}
.footer-menu a{
    text-decoration: none;
	color: #fff;
}
.footer-menu a:hover{
    text-decoration: none;
	color: yellow;
}
/* Media Queries */
@media only screen and (max-width: 600px) {
    body {
        margin: 10px;
    }

    header, footer {
        margin-bottom: 10px;
        padding: 3em;
    }
	
	.cookie-popup {
	    width: 80%;
	}

    .file-table {
        width: 100%;
        margin-bottom: 10px;
    }

    #search-form {
        flex-direction: column;
        align-items: stretch;
    }

    #search-query {
        margin-bottom: 10px;
    }

    .popup {
        width: 90%;
        padding: 1em;
    }
	
	.footer-menu {
		display: inline-block;
        position: initial;
	}
	
	.actions i {
	    display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: space-around;
        align-items: center;
		margin-bottom: 1.5rem;
		font-size: 34px;
	}	
		
    .user-register-form {
	width: 90%;
	font-size: 30px;
    }	

    .user-register-form #username, .user-register-form #password, .user-register-form #public_name {
    font-size: 30px;
    }
}

@media only screen and (min-width: 768px) {.user-register-form {
	width: 90%;
	font-size: 1.8rem;
}

.user-register-form #username, .user-register-form #password, .user-register-form #public_name {
    font-size: 1.8rem;
    }
}

@media only screen and (min-width: 1200px) {.user-register-form {
	width: 40%;
	font-size: 1.5rem;
}
}

.red-icon {
    color: red;
}

.file-table th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #f2f2f2;
    color: black;
}

        #success-popup {
            display: none;
            position:relative;
            margin:0 auto;
            background-color: #d4edda;
            color: #155724;
            padding: 10px;
            border: 1px solid #c3e6cb;
            border-radius: 5px;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
            z-index: 1000;
        }
        #success-popup i {
            margin-right: 5px;
        }
		
.message-wrapper {
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

.message-content {
  display: none; /* Kezdetben rejtve legyenek az üzenet részletei */
  padding: 10px;
}

.read-status {
  display: none; /* Alapértelmezetten rejtve van az olvasott ikon */
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination a, .pagination span {
    color: black;
    padding: 8px 16px;
    text-decoration: none;
    margin: 0 5px;
    border: 1px solid #ddd;
}

.pagination a {
    background-color: #f2f2f2;
}

.pagination a:hover {
    background-color: #ddd;
}

.pagination .current {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
}

/* QR code styles */
#qr-frame {
    width: 150px;
    border: none;
}

.qr-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.qr-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 300px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center; /* Középre igazítja a tartalmat vízszintesen */
    justify-content: center; /* Középre igazítja a tartalmat függőlegesen */
}

.qr-modal-content iframe img{
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Biztosítja, hogy a frame blokk elemként viselkedjen */
}

.qr-modal-content p {
    margin-top: 10px;
}

.qr-modal-content button {
    margin-top: 10px;
}

.qr-modal-content img {
	width: 150px;
    height: auto;
    margin: auto;
}

#slide-panel {
    position: fixed;
    top: 50%;
    right: -230px;
    transform: translateY(-50%);
    width: 200px;
    background-color: #333;
    color: white;
    padding: 20px 10px 20px 20px;
    border-radius: 8px 0 0 8px;
    transition: right 0.3s ease;
    z-index: 9999;
}

/* Megnyitva */
#slide-panel.open {
    right: 0;
}

/* Toggle gomb stílusa most a panelen belül */
#slide-toggle {
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #555;
    padding: 10px;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
}

#slide-toggle i {
    display: block;
    text-align: center;
    color: white;
	margin-bottom: 10px;
}


#slide-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#slide-panel ul li {
    margin: 10px 0;
}

#slide-panel ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    color: #fffcfc;

}

#slide-panel ul li a:hover {
    text-decoration: underline;
}

#slide-panel a i {
    width: 18px;
	margin-right: 3px;
}

.user-about {
    margin-top: 20px;
    background: #f8f8f8;
    padding: 10px 15px;
    border-radius: 8px;
    max-width: 600px;
}
.user-about h3 {
    margin-top: 0;
}

.profile-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
    font-family: Arial, sans-serif;
}
.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ddd;
    margin-bottom: 15px;
}
.about-section {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    text-align: left;
}
.about-section h3 {
    margin-top: 0;
}
