html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

/*body {
    margin-bottom: 60px;
    background-color: #eff3f4;
}
*/
/* Body text */
body {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 60px;
    background-color: #eff3f4;
/*    background-color: black;*/
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Buttons / small text */
.btn, .nav-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

/*a:hover {
    cursor: pointer;
    font-weight: 900;
}*/

/* Overlay (grey background) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* semi-transparent grey */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal card (centered panel) */
.modal-card {
    max-width: 600px;
    width: 90%;
    z-index: 1001;
}

.portal-card {
    width: 20vw;
    height: 20vw;
    max-width: 600px;
    max-height: 600px;
    min-width: 300px;
    min-height: 300px;
    /*width: 300px;*/ /* fixed width */
    /*height: 300px;*/ /* fixed height = square */
    /*border: 2px solid #1f82ed;*/
    border: white;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #1f82ed;
    background-color: #fff;
    font-size: 3rem;
}

.portal-card:hover {
    background-color: #1f82ed;
    color: white; /* text + icons invert */
    transform: scale(1.05); /* optional hover zoom */
    box-shadow: 0 0 0.5rem 0.1rem rgba(31, 130, 237, 1);
}

link {
    color: black;
    transition: all 0.3s ease;
}

.link:hover {
    color: #1f82ed !important;
    transform: scale(1.05);
    cursor: pointer;
    font-weight: 900;
}

.card {
/*    width: 90vw;
    height: 40vw;
    max-width: 1900px;
    max-height: 1200px;*/
    /*min-width: 300px;
    min-height: 300px;*/
    border-color: white;
/*    font-size: 1.5rem;*/
}

.btn-primary {
    background-color: #1f82ed;
    outline: none;
}

.form-control {
    border: none;
    background-color: #eff3f4;
}

.form-control:disabled {
    background-color: #eff3f4;
    /*background-color: #e0e5e6;*/ /* subtle difference */
    /*color: #8a8a8a;*/ /* muted text */
    color: rgba(138, 138, 138, 0.7);
}

.form-control:focus {
    border-color: #28a745; 
    box-shadow: 0 0 0.2rem 0.2rem rgba(31, 130, 237, 0.5); 
    outline: none; /* removes the default blue outline */
}

.card {
    box-shadow: 0 0 0.5rem 0.2rem rgba(255, 255, 255, 0.3);
    margin-bottom: 2rem;
}

.btn-publish {
    background-color: #4caf50;
    color: white;
}

.btn-publish:hover {
    color:white;
    opacity: 0.9;
}

.row {
    margin-top: 10px;
}

/*header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;*/ /* ensure it sits above other elements */
/*}*/

.markdown-body {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}