body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #000;
    background-repeat: repeat;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
}

header {
    background: #1a1a1a;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #76BA1B;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#logo {
    width: 60px;
    height: auto;
}

nav {
    display: flex;
    gap: 15px;
}

nav a {
    color: #76BA1B;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border: 2px solid #76BA1B;
    border-radius: 5px;
    background-color: #2a2a2a;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: #76BA1B;
    color: #000;
}

.language-select {
    margin-left: 20px;
    padding: 5px;
    background-color: #2a2a2a;
    color: #76BA1B;
    border: 2px solid #76BA1B;
	
}

main {
    padding: 20px;
    background-color: #1a1a1a;
    border: 0px dashed #76BA1B;
    box-shadow: 0 0 0px rgba(118, 186, 27, 0.5);
}

h1, h2 {
    color: #76BA1B;
}

h1 {
    font-size: 2.5em;
    text-align: center;
}

h2 {
    font-size: 1.75em;
    margin-top: 20px;
}

ul {
    list-style-type: square;
    padding-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

a {
    color: #76BA1B;
    text-decoration: underline;
}

a:hover {
    color: #e0e0e0;
}

p {
    text-align: center;
    margin: 20px 0; 
}

/* Добавление стиля для кнопок */ 
button {
    background-color: #76BA1B;
    color: #000;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #65a71c; /* Темный зеленый при наведении */
} 
footer {
	border-top: 3px solid #76BA1B;
	color: #76BA1B;
	
}

#contentBox {
    background: #1a1a1a;
    padding: 15px;
    border: 3px dashed #76BA1B;

    position: relative;
    display: inline-block;
    text-align: center;
    align-items: center;
    margin: 0 auto; 
    width: 10rem; 
}


#content {
    color: #9a9a9a;
	width: 10rem;
	
}

#refreshButton {
    position: absolute;
    bottom: -15px; 
    right: calc(0% - 16px); 
    background-color: #1a1a1a;
    border: 3px dashed #76BA1B;
    cursor: pointer;
    color: #76BA1B;
    font-size: 1em;
    width: 30px;
    height: 30px;
    border-radius: 0 0 0 5px;
    outline: none;
	padding: 0;
	font-weight: bold;
}

#outerContentBox {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; 
}

#overlay {
    display: none;
    position: absolute;
    top: -25%; 
    left: 50%; 
    transform: translateX(-50%); 
    background-color: rgba(0, 0, 0, 0.7);
    color: #76BA1B;
    padding: 5px;
    font-size: 1em;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 10; 
}

#refreshButton:hover + #overlay {
    display: block; 
}

/* links */
table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #222;
	table-layout: fixed;
}

th, td {
    border: 1px solid #00ff00;
    padding: 8px;
    text-align: left;
    color: #00ff00;
	width: 33%;
}

th {
    background-color: #333;
	width: 33%;
}

td a {
    color: #00ff00;
    text-decoration: underline; 
}

.text-mode td a {
    text-decoration: none; 
}

td a:hover {
    text-decoration: underline;
}

#buttonContainer {
    text-align: center;
    margin: 20px 0;
    width: 90%; 
    margin: 0 auto; 
}

.toggle-button {
    padding: 10px 20px;
    width: 100%; 
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin: 0 auto;
    display: block;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 4px; /* Для плавности кнопки */
}

.links-mode {
    background-color: #2c6f2e; 
    color: #fff;
}

.text-mode {
    background-color: #8b0000; 
    color: #fff;
}
.table-wrapper {
	overflow-x: auto;
	width: 100%;
}
@media (max-width: 600px) {
	table, th, td {
		font-size: 0.8em;
		padding 5px;
	}
	th, td {
		width: auto; /* оверрайд фиксированной ширины*/
	}
}
td {
	word-wrap: break-word;
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
}


/* qr code*/
.popup {
    display: none; /* Скрываем по умолчанию */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 2px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup img {
    max-width: 100%;
    height: auto;
}
/* qr code2*/
.popup2 {
    display: none; /* Скрываем по умолчанию */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 2px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup2 img {
    max-width: 100%;
    height: auto;
}
/* freedom time */
.time-item {
            display: inline-block;
            align-items: center;
            margin: 10px 0;
        }
        .time-item button {
            margin-left: 10px;
            padding: 5px 10px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        .time-item button.freedom-time {
            background-image: url('https://upload.wikimedia.org/wikipedia/commons/a/a4/Flag_of_the_United_States.svg');
            background-size: cover;
            color: black;
			text-decoration: bold;
        }
        .time-item button.normal-time {
            background-color: #76BA1B;
    color: #000;
    border: none;
    
    cursor: pointer;
    
    transition: background-color 0.3s;
        }
		
/*thanks */

.mw0 {
    position: relative;
    display: inline-block;
    cursor: pointer;
	font-size: 0.72em;
}

.popup9 {
    visibility: hidden;
    width: 200px;
    background-color: black;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position above the text */
    left: 50%;
    margin-left: -100px; /* Center the popup */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mw0:hover .popup9 {
    visibility: visible;
    opacity: 1;
}
.langsel {
	font-family: 'Courier New', Courier, monospace;
	padding: 5px 10px;
    color: #e0e0e0;
    text-align: center;
    margin: 10px 0;
    position: relative
}	

/* Light Theme Styles */
.light-theme {
    background-color: #fff;
    color: #333;
}

.light-theme header {
    background: #f1f1f1;
    border-bottom: 3px solid #76BA1B;
}

.light-theme nav a {
    color: #76BA1B;
    background-color: #f1f1f1;
    border: 2px solid #76BA1B;
}

.light-theme nav a:hover {
    background-color: #76BA1B;
    color: #fff;
}

.light-theme main {
    background-color: #fff;
    color: #333;
}

.light-theme h1, .light-theme h2 {
    color: #76BA1B;
}

.light-theme footer {
    border-top: 3px solid #76BA1B;
    color: #76BA1B;
}

.light-theme #contentBox {
    background: #f1f1f1;
    border: 3px dashed #76BA1B;
}

.light-theme .toggle-button {
    background-color: #76BA1B;
    color: #fff;
}

.light-theme .time-item button.freedom-time {
    background-color: #76BA1B;
    color: black;
}

.light-theme table {
    background-color: #fff;
}

.light-theme td {
    color: #333;
    border: 1px solid #76BA1B;
}

.light-theme th {
    background-color: #f1f1f1;
}

.light-theme .langsel {
    color: #333;
}

.light-theme .popup9 {
    background-color: #333;
    color: white;
}

.light-theme .language-select {
	background-color: white ;
	
}
.light-theme #refreshButton {
	background-color: white ;
	
}

nav a.alert-button {
    padding: 5px 1em;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

nav a.alert-button:hover {
    animation: color-breathe 3s ease-in-out infinite;
}

.light-theme nav a.alert-button:hover {
    animation: color-breathe 3s ease-in-out infinite;
}

/* color breathing animation */
@keyframes color-breathe {
    0% {
        background-color: #2a2a2a;
        color: #ff9900;
        border-color: #76BA1B;
    }
    50% {
        background-color: #3a3a3a;
        color: #ff9900;
        border-color: #ff6600;
    }
    100% {
        background-color: #2a2a2a;
        color: #ff9900;
        border-color: #76BA1B;
    }
}



