﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: serif;
    
}
/* Navbar */
.navbar {
    background: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    
    gap: 10px;
}

.log {
    padding: 10px 15px;
    border-radius: 9px;
    font-size: 17px;
    border: none;
    background: #deedef;
    color: #003f8d;
    margin: 7px;
    cursor: pointer;
    box-shadow: 0px 2px 3px 0px #1616165c;
}

.navbar .search {
    width: 60%;
}

    .navbar .search input {
        width: 100%;
        padding: 7px 12px;
        border: 1px solid #ccc;
        border-radius: 20px;
    }

.navbar .login-ctrls {
    display: flex;
    gap: 15px;
}

.logo {
    font-weight: bold;
    font-size: 1.6rem;
    font-family: serif;
    color: #333;
}

    .logo a {
        text-decoration: none;
        color: #333;
    }

/* Container */
.container {
    width: 80%;
    margin: 0 auto;
}

/* Header Section */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    height:300px;
    gap:20%;
}

.headings {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 0;
    gap: 27px;
}

    .headings .heading {
        font-size: 26px;
        margin-bottom: 10px;
        font-size:2em;
    }

    .headings a {
        background-color: #333;
        color: white;
        padding: 9px 14px;
        border: none;
        margin-right: 10px;
        cursor: pointer;
        font-size: 20px;
        margin-top: 10px;
        width: 200px;
        text-decoration: none;
        border-radius: 10px;
    }

        .headings button:hover {
            background-color: #ddd;
            color: black;
        }
.btn-fullpdf {
    background-color: royalblue;
}
.header-photo  {
    width: 250px;
    height: auto;
    border-radius: 8px;
}

/* Abstract Section */
.abstract-section {
    padding: 20px;
    margin: 20px 0;
}

    .abstract-section h2 {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .abstract-section abstract {
        font-size: 16px;
        line-height: 1.6;
       
    }

/* PDF/Image Section */
.pdf-section {
    display:flex;
    align-items:center;
    justify-content:center;
    text-align: center;
    flex-direction:column;
    gap:10px;
    margin:30px 0;
}

    .pdf-section h2 {
        font-size: 2em;
        margin-bottom: 10px;
    }

.pdf-section {
    max-width: 100%; /* Ensures the container is responsive */
    overflow: hidden; /* Hides overflow to ensure the canvas stays within bounds */
}

    .pdf-section canvas {
        width: 100%; /* Ensures the canvas resizes based on the container's width */
        height: auto; /* Adjusts the height proportionally */
    }
.full-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Media Queries for Responsiveness */

/* Mobile Devices */
@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
       
        padding: 15px;
    }

        .navbar .search {
            width: 100%;
            margin-bottom: 10px;
        }

        .navbar .login-ctrls {
            width: 100%;
            justify-content: space-around
        }

    .header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px;
    }

        .header .headings {
            text-align: center;
        }

    .header-photo {
        width: 200px;
        margin-top: 20px;
    }

    .btn-fullpdf {
        width: 100%;
        text-align: center;
    }
    .log {
        padding: 6px 10px;
    }
    .container {
        width: 90%;
    }

    .pdf-section {
        margin: 20px 0;
    }

        .pdf-section h2 {
            font-size: 1.5em;
        }
}

/* Tablet Devices */
@media (max-width: 1024px) {

    .navbar .search {
        width: 90%;
    }

    .header {
        gap: 15%;
    }

    .header-photo {
        width: 220px;
    }

    .container {
        width: 85%;
    }

    .pdf-section h2 {
        font-size: 1.8em;
    }
}

/* Large Devices (Desktop) */
@media (min-width: 1025px) {

    .header {
        gap: 20%;
    }

    .header-photo {
        width: 250px;
    }

    .navbar .search {
        width: 60%;
    }

    .container {
        width: 80%;
    }
}