* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* Sidebar styling */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #db9fc7;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidebar a,
.dropdown p {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px;
    color: rgb(0, 0, 0);
    display: block;
    transition: 0.3s;
    margin-top: 3%;
}

.sidebar a:hover {
    background-color: #575757;
}

.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
}

/* Dropdown container for sub-content */
.dropdown {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    background-color: #dc8fc2;
    padding-left: 15px;
}

.dropdown-content a {
    font-size: 16px;
}

.dropdown-content a:hover {
    background-color: #575757;
}

.dropdown img {
    margin-top: 3%;
    margin-right: 8%;
    float: right;
}

/* Menu button */
.menu-btn {
    font-size: 30px;
    cursor: pointer;
    color: #333;
    padding: 10px 0;
    display: inline-block;
}

/* Main container styling */
.container {
    margin: 0% 10% 3% 10%;
    max-width: 100%;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
}

.references {
    word-break: break-all;
}

header h1 {
    font-size: 24px;
    color: #333;
    text-align: center;
}

header h2 {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    margin-top: 2%;
    margin-bottom: 1%;
}

h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0056b3;
    margin-top: 2%;
}

p, ul {
    margin-bottom: 10px;
    text-align: justify;
}

td {
    padding: 1% 0% 1% 0%;
}

a {
    color: #0056b3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Button Group Styling */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 10px 0;
}

.button-group .button {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button-group .button:hover {
    background-color: #0056b3;
}

/*-------------------------------------index.html-------------------------------------*/
.profile p, 
.contact-info table, 
.education table,
.work-experience table,
.skills table,
.languages table,
.additional-info table {
    border: 1px solid rgb(183, 183, 183);
    width: 100%;
    padding: 1% 2% 1% 2%;
}

.contact-info-td,
.education-td,
.work-experience-td {
    width: 50%;
    text-align: justify;
}

.languages th,
.additional-info th {
    text-align: left;
}

.print-resume {
    margin: 4% 2% 1% 2%;
    text-align: right;
    font-size: x-small;
}

.print-resume img {
    width: 10%;
    margin-right: 2%;
}

/*-------------------------------------cert.html-------------------------------------*/
/* Flashcard styling */
.flashcards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* Center flashcards horizontally */
    align-items: center; /* Center flashcards vertically */
}

.card {
    width: 100%;
    height: 170px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

/* Card front and back */
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding: 20px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.card-front {
    background-color: #ea2f9c;
}

.card-back {
    background-color: #f570d4;
    transform: rotateY(180deg);
}

.card-back p {
    margin: 3% 3% 3% 3%;
}

/* Certification image */
.badge-img {
    width: 130px;
    height: 130px;
}

.cert-img {
    width: 176px;
    height: 130px;
}


/* ol ul*/
.sys-hardening ul, ol,
.cloud ul,
.database-security ul, ol,
.pentest ul, ol,
.networking ul, ol {
    margin-left: 3%;
}

/* Centering iframe and image*/
.center_iframe {
    display: flex;
    justify-content: center;
    height: 40vh;
    margin: 2% 3% 2% 3%;
}

.center_img {
    display: flex;
    justify-content: center;
    margin: 2% 3% 2% 3%;
}

/* Table */
.cloud table,
.sys-hardening table,
.database-security table,
.networking table {
    border: solid 1px black;
    text-align: left;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.cloud th,
.sys-hardening th,
.database-security th,
.networking th{
    background-color: #b2cfef;
}

.cloud th,
.cloud td,
.sys-hardening th,
.sys-hardening td,
.database-security th, 
.database-security td,
.networking th,
.networking td {
    padding: 1% 1% 1% 1%;
    border: solid 1px black;
    border-collapse: collapse;
}

/* Div Height */
.div-height {
    height: 70vh;
}

/*-------------------------------------participations.html-------------------------------------*/
.participations img {
    margin-left: 0.5% ;
}

/*-------------------------------------phone view-------------------------------------*/
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 22px;
    }

    header h2 {
        font-size: 16px;
    }

    .container {
        padding: 15px;
    }

    /* Flashcard */
    .flashcards {
        flex-direction: column;
        align-items: center;
    }

    .dropdown img {
        width: 16px;
        height: 16px;
    }


    .card {
        width: 90%;
    }

    .card-back p {
        font-size: 10px;
    }
    
    .badge-img {
        width: 80px;
        height: 80px;
    }
    
    .cert-img {
        width: 100px;
        height: 80px;
    }

    .button-group .button {
        width: 100%;
    }

    img {
        width: 100%;
        height: 100%;
    }
}

/*-------------------------------------code bar-------------------------------------*/
.code-container {
    width: auto;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    margin-top: 3%;
    margin-bottom: 5%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow-x: auto;
    overflow-y: hidden;
}

.code-content {
    white-space: pre;
    margin: 0;
    padding: 0;
    text-align: left;
}

.code-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
    text-align: left;
}

.keyword {
    color: #0000FF;
    font-weight: bold;
}

.comment {
    color: #008000;
    font-style: italic;
}

.string {
    color: #A31515;
}

.code-container::-webkit-scrollbar {
    height: 8px;
}

.code-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.code-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.code-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}