/* Base Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    margin: 0;
    font-size: 2em;
}

header p {
    margin: 0;
    font-size: 1em;
}

section {
    margin-bottom: 20px;
}

section h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-size: 1.5em;
}

section ul {
    list-style-type: none;
    padding: 0;
}

section ul li {
    margin-bottom: 10px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.LiLinks {
    display: flex;
    align-items: center;
}

.Linkss {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 20px;
}

section ul li img.icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Warning Button */
@keyframes fadeInOut {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.warning-button {
    position: fixed;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    background: url('images/alarm.png') no-repeat center center;
    background-size: contain;
    border: none;
    cursor: pointer;
    z-index: 1000;
    transition: filter 0.1s;
    animation: fadeInOut 2s infinite;
}

.warning-button:active {
    filter: brightness(0.7);
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: fixed;
    width: 80%;
    height: 70%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
}

.card {
    width: 200px;
    height: 300px;
    margin: 20px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card .front, .card .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 2px solid white;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #333;
    color: white;
    font-size: 1.5em;
}

.card .back {
    transform: rotateY(180deg);
    background-color: #111;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.card-text {
    position: fixed;
    left: 50%;
    bottom: 20%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5em;
    opacity: 0;
    transition: opacity 1s;
    z-index: 1002;
}
.restore-button {
    position: fixed;
    left: 50%;
    top: 70%;
    transform: translateX(-50%);
    font-size: 1.5em;
    padding: 10px 20px;
    background-color: blue;
    color: white;
    border: none;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Ensure smooth transition */
    z-index: 1003;
}
.warning-text {
    position: fixed;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    color: red;
    font-size: 2em;
    background-color: white; /* Added background color for better visibility */
    padding: 10px; /* Added padding for better readability */
    border-radius: 5px; /* Added border-radius for rounded corners */
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Ensure smooth transition */
    z-index: 1003;
}

.button {
    position: fixed;
    bottom: 10px;
    left: 10px;
    padding: 10px 20px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 5px;
    z-index: 1002;
    cursor: pointer;
}

/* Media Queries */
@media (max-width: 1200px) {
    .container {
        width: 90%;
        padding: 15px;
    }

    .card {
        width: 180px;
        height: 270px;
    }

    .warning-button {
        width: 100px;
        height: 100px;
        right: 20px;
    }
}

@media (max-width: 992px) {
    header h1 {
        font-size: 1.8em;
    }

    section h2 {
        font-size: 1.3em;
    }

    .card {
        width: 160px;
        height: 240px;
    }

    .warning-button {
        width: 80px;
        height: 80px;
        right: 10px;
    }

    .card-container {
        width: 90%;
        height: 60%;
        top: 40%; /* Push cards upward */
    }

    .card {
        margin: 10px;
    }

    .card-text {
        bottom: 30%; /* Adjust bottom position to fit with the cards */
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 10px;
    }

    .card {
        width: 140px;
        height: 210px;
    }

    .warning-button {
        width: 60px;
        height: 60px;
        right: 5px;
    }

    .card-container {
        top: 30%; /* Further push cards upward */
    }

    .card-text {
        bottom: 15%; /* Adjust bottom position for smaller screens */
        font-size: 1.2em;
    }

    .warning-text {
        font-size: 1.5em;
    }

    .button {
        font-size: 0.9em;
        padding: 8px 16px;
    }
}

@media (max-width: 576px) {
    header h1 {
        font-size: 1.5em;
    }

    section h2 {
        font-size: 1.2em;
    }

    .card {
        width: 120px;
        height: 180px;
    }

    .warning-button {
        width: 50px;
        height: 50px;
        right: 0;
    }

    .card-container {
        top: 30%; /* Further push cards upward */
    }

    .card-text {
        bottom: 15%; /* Adjust bottom position for the smallest screens */
        font-size: 1em;
    }

    .warning-text {
        font-size: 1.2em;
    }

    .button {
        font-size: 0.8em;
        padding: 6px 12px;
    }
}
.btn-container {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
  }

  .btn-container i {
    display: inline-block;
    position: relative;
    top: -9px;
  }

  label {
    font-size: 13px;
    color: #424242;
    font-weight: 500;
  }

  .btn-color-mode-switch {
    display: inline-block;
    margin: 0px;
    position: relative;
  }

  .btn-color-mode-switch > label.btn-color-mode-switch-inner {
    margin: 0px;
    width: 140px;
    height: 30px;
    background: #E0E0E0;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
      /*box-shadow: 0px 0px 8px 0px rgba(17, 17, 17, 0.34) inset;*/
    display: block;
  }

  .btn-color-mode-switch > label.btn-color-mode-switch-inner:before {
    content: attr(data-on);
    position: absolute;
    font-size: 12px;
    font-weight: 500;
    top: 7px;
    right: 20px;
  }

  .btn-color-mode-switch > label.btn-color-mode-switch-inner:after {
    content: attr(data-off);
    width: 70px;
    height: 16px;
    background: #fff;
    border-radius: 26px;
    position: absolute;
    left: 2px;
    top: 2px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 6px -2px #111;
    padding: 5px 0px;
  }

  .btn-color-mode-switch > .alert {
    display: none;
    background: #FF9800;
    border: none;
    color: #fff;
  }

  .btn-color-mode-switch input[type="checkbox"] {
    cursor: pointer;
    width: 50px;
    height: 25px;
    opacity: 0;
    position: absolute;
    top: 0;
    z-index: 1;
    margin: 0px;
  }

  .btn-color-mode-switch input[type="checkbox"]:checked + label.btn-color-mode-switch-inner {
    background: #151515;
    color: #fff;
  }

  .btn-color-mode-switch input[type="checkbox"]:checked + label.btn-color-mode-switch-inner:after {
    content: attr(data-on);
    left: 68px;
    background: #3c3c3c;
  }

  .btn-color-mode-switch input[type="checkbox"]:checked + label.btn-color-mode-switch-inner:before {
    content: attr(data-off);
    right: auto;
    left: 20px;
  }

  .btn-color-mode-switch input[type="checkbox"]:checked ~ .alert {
    display: block;
  }

  .dark-preview {
    background: #0d0d0d;
  }

  .white-preview {
    background: #fff;
  }

  body.light-mode {
    background-color: white;
    color: black;
}

body.light-mode a {
    color: blue; /* Example link color for light mode */
}

body.dark-mode {
    background-color: black;
    color: white;
}

body.dark-mode a {
    color: lightblue; /* Example link color for dark mode */
}

/* Add more styles as needed for other elements */
/* Dark Mode Styles */
body.dark-mode .container {
    background: #333;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

body.dark-mode header h1,
body.dark-mode header p,
body.dark-mode section h2,
body.dark-mode section ul li {
    color: #fff;
}

body.dark-mode section h2 {
    border-bottom: 2px solid #ccc;
}

body.dark-mode a {
    color: #1e90ff;
}

body.dark-mode a:hover {
    text-decoration: underline;
}
