/* Light mode */
@media (prefers-color-scheme: light) {
	:root {
		--font-family: "Noto Sans Gujarati", sans-serif;
		--primary-bg-color: #ffffff;
		--secondary-bg-color: #ececec;
		--border-color: #dedede;
		--modal-bg-color: rgba(0, 0, 0, 0.9);
		--update-modal-bg-color: rgba(0, 0, 0, 0.52);
		--caption-color: #ccc;
		--icon-color: black;
		--btn-color: #2A7CD5;
		--close-btn-color: #f1f1f1;
		--hover-close-btn-color: #bbb;
	}
}

  /* Dark mode */
@media (prefers-color-scheme: dark) {
	:root {
		--font-family: "Noto Sans Gujarati", sans-serif;
		--primary-bg-color: #121212;
		--secondary-bg-color: #ececec;
		--border-color: #333333;
		--modal-bg-color: rgba(0, 0, 0, 0.9);
		--update-modal-bg-color: rgba(0, 0, 0, 0.52);
		--caption-color: #ccc;
		--icon-color: black;
		--btn-color: #2A7CD5;
		--close-btn-color: #f1f1f1;
		--hover-close-btn-color: #bbb;
	}
}


/* Font Faces */
@font-face {
    font-family: 'Noto Sans Gujarati';
    font-style: normal;
    font-weight: 400;
    src: url(//fonts.gstatic.com/ea/notosansgujarati/v1/NotoSansGujarati-Regular.eot);
    src: url(//fonts.gstatic.com/ea/notosansgujarati/v1/NotoSansGujarati-Regular.eot?#iefix) format('embedded-opentype'),
         url(//fonts.gstatic.com/ea/notosansgujarati/v1/NotoSansGujarati-Regular.woff2) format('woff2'),
         url(//fonts.gstatic.com/ea/notosansgujarati/v1/NotoSansGujarati-Regular.woff) format('woff'),
         url(//fonts.gstatic.com/ea/notosansgujarati/v1/NotoSansGujarati-Regular.ttf) format('truetype');
}

@font-face {
    font-family: 'Noto Sans Gujarati';
    font-style: normal;
    font-weight: 700;
    src: url(//fonts.gstatic.com/ea/notosansgujarati/v1/NotoSansGujarati-Bold.eot);
    src: url(//fonts.gstatic.com/ea/notosansgujarati/v1/NotoSansGujarati-Bold.eot?#iefix) format('embedded-opentype'),
         url(//fonts.gstatic.com/ea/notosansgujarati/v1/NotoSansGujarati-Bold.woff2) format('woff2'),
         url(//fonts.gstatic.com/ea/notosansgujarati/v1/NotoSansGujarati-Bold.woff) format('woff'),
         url(//fonts.gstatic.com/ea/notosansgujarati/v1/NotoSansGujarati-Bold.ttf) format('truetype');
}

/* General Styling */
html { 
    font-family: var(--font-family);
}

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 48rem) {
    .grid-container {
        padding: 0 20px;
    }
}

.grid-container.full {
    max-width: 100%;
}

@media (min-width: 48rem) {
    .grid-container.full {
        padding: 0 20px;
    }
}

.grid-container .grid-x {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

@media (min-width: 48rem) {
    .grid-container .grid-x {
        flex-direction: row;
    }
}

.grid-container .grid-x.align-left {
    justify-content: flex-start;
}

.grid-container .grid-x.align-right {
    justify-content: flex-end;
}

.grid-container .grid-x.align-justify {
    justify-content: space-between;
}

.grid-container .grid-x.align-top {
    align-items: flex-start;
}

.grid-container .grid-x.align-bottom {
    align-items: flex-end;
}

.grid-container .grid-x.align-middle {
    align-items: center;
}

.grid-container .grid-x.align-center {
    align-items: center;
    justify-content: center;
}

.grid-container .grid-x.grid-margin-x .cell {
    margin-left: 10px;
    margin-right: 10px;
}

.grid-container .grid-x.grid-padding-x .cell {
    padding-left: 10px;
    padding-right: 10px;
}

.grid-container .grid-x.grid-margin-y .cell {
    margin-top: 10px;
    margin-bottom: 10px;
}

.grid-container .grid-x.grid-padding-y .cell {
    padding-top: 10px;
    padding-bottom: 10px;
}

.cell {
    display: block;
    width: 100%;
}

@media (min-width: 20rem) {
    .cell.small-1 { width: 8.3333%; }
    .cell.small-2 { width: 16.6666%; }
    .cell.small-3 { width: 25%; }
    .cell.small-4 { width: 33.3333%; }
    .cell.small-5 { width: 41.6666%; }
    .cell.small-6 { width: 50%; }
    .cell.small-7 { width: 58.3333%; }
    .cell.small-8 { width: 66.6666%; }
    .cell.small-9 { width: 75%; }
    .cell.small-10 { width: 83.3333%; }
    .cell.small-11 { width: 91.666612%; }
}

@media (min-width: 48rem) {
    .cell.medium-1 { width: 8.3333%; }
    .cell.medium-2 { width: 16.6666%; }
    .cell.medium-3 { width: 25%; }
    .cell.medium-4 { width: 33.3333%; }
    .cell.medium-5 { width: 41.6666%; }
    .cell.medium-6 { width: 50%; }
    .cell.medium-7 { width: 58.3333%; }
    .cell.medium-8 { width: 66.6666%; }
    .cell.medium-9 { width: 75%; }
    .cell.medium-10 { width: 83.3333%; }
    .cell.medium-11 { width: 91.666612%; }
}

@media (min-width: 64rem) {
    .cell.large-1 { width: 8.3333%; }
    .cell.large-2 { width: 16.6666%; }
    .cell.large-3 { width: 25%; }
    .cell.large-4 { width: 33.3333%; }
    .cell.large-5 { width: 41.6666%; }
    .cell.large-6 { width: 50%; }
    .cell.large-7 { width: 58.3333%; }
    .cell.large-8 { width: 66.6666%; }
    .cell.large-9 { width: 75%; }
    .cell.large-10 { width: 83.3333%; }
    .cell.large-11 { width: 91.666612%; }
}

.cell.align-self-right {
    display: flex;
    justify-content: flex-end;
}

.cell.align-self-left {
    display: flex;
    justify-content: flex-start;
}

/* Messaging */
.messageContainer {
    border: 2px solid var(--border-color);
    background-color: var(--primary-bg-color);
    border-radius: 20px;
    margin: 0 10px;
    margin-bottom:0.3rem;
    overflow: hidden; 
}

.messageSubj {
    display: flex;
    padding: 10px;
}

.messagePanel {
    display: none;
    background-color: var(--secondary-bg-color);
    padding: 10px;
}

.circleIcon {
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 50%;
    color: var(--icon-color);
    text-align: center;
    position: absolute;
    top: 0;
}

img.img-thumbnail {
    width: 100%;
}

/* Style the Image Used to Trigger the Modal */
.img-thumbnail {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.img-thumbnail:hover {
    opacity: 0.6;
}

/* The Modal (background) */
.modal {
    display: none; 
    position: fixed; 
    padding-top: 100px; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    z-index: 9999;
    background-color: var(--modal-bg-color);
}

/* Modal Content (Image) */
.modal-content {
    margin: auto;
    width: 80%;
    display: block;
    max-width: 95vw;
}

.updateModal {
    display: none; 
    position: fixed; 
    padding-top: 100px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    z-index: 9999;
    background-color: var(--update-modal-bg-color);
}

.update-content {
    background-color: #f9f5f0f0;
    margin: auto;
    border: 1px solid #888;
    border-radius: 10px;
    width: 90vw;
}

#updateDiv {
    padding: 0px 15px;
    text-align: center;
}

.btn-unstyled {
    margin-top: 0.4rem;
    width: 100%;
    font-size: 1.1rem;
    padding: 9px 0;
    color: var(--btn-color);
    cursor: pointer;
    font-weight: 600;
    background: transparent;
    border: none;
    border-top: 1px solid black;
}

/* Caption of Modal Image (Image Text) */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--caption-color);
    padding: 10px 0;
    height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--close-btn-color);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 9993;
}

.close:hover,
.close:focus {
    color: var(--hover-close-btn-color);
    text-decoration: none;
    cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}
