.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}
.modal-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.modal-image-container {
    position: relative;
    display: inline-block;
    max-width: 80%;
    max-height: 80%;
}
#modalLikeButton {
    position: absolute;
    bottom: 15px;
    right: 15px;
}
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 95%;
    }
    .close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}
.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}
.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.nav-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.nav-button.prev {
    left: 20px;
}
.nav-button.next {
    right: 20px;
}
.icon-button {
    position: fixed;
    left: 10px;
    bottom: 10px;
    background-color: #00963a;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1000;
}
@media (max-width: 768px) {
    .icon-button {
        left: 10px;
        bottom: 10px;
    }
}
.icon-button:hover {
    transform: scale(1.1);
}
.popup {
    display: none;
    position: fixed;
    left: 10px;
    bottom: 80px;
    background-color: #ffffff;
    background-image: url("https://stateofengineering.nortal.com/static/media/Background.3df0126e3f9c79648547.png");
    background-size: 150%;
    padding: 15px;
    border-radius: 8px;
    z-index: 1002;
    width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
@media (max-width: 480px) {
    .popup {
        left: 10px;
        right: 10px;
        bottom: 80px;
        width: auto;
    }
}
.popup.visible {
    display: block;
}
.popup-content {
    display: flex;
    flex-direction: column;
}
.popup textarea,
.popup input,
.popup select {
    resize: none;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    color: #333333;
    border-radius: 4px;
    font-size: 14px;
}
@media (max-width: 768px) {
    .popup select {
        resize: none;
        margin-bottom: 10px;
        padding: 12px;
        border: 1px solid #e0e0e0;
        background-color: #ffffff;
        color: #333333;
        border-radius: 4px;
        font-size: 14px;
    }
}
.popup label {
    margin-bottom: 5px;
    color: #333333;
    font-weight: bold;
    font-size: 14px;
}
.popup button {
    background-color: #00963a;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.popup button:hover {
    background-color: #009637;
}

.popup button:disabled {
    background-color: #a5a5a5;
    color: #ffffff;
    opacity: 0.7;
    cursor: not-allowed;
}

.popup-message {
    margin-top: 10px;
    color: #333333;
    text-align: center;
    font-weight: bold;
    padding: 10px;
    border-radius: 4px;
}
.top-right-message {
    position: fixed;
    top: 70px;
    right: 20px;
    background-color: rgb(30, 30, 30);
    background-image: url("https://stateofengineering.nortal.com/static/media/Background.3df0126e3f9c79648547.png");
    background-size: 200%;
    color: white;
    padding: 15px;
    border-radius: 4px;
    z-index: 1003;
    box-shadow: 0 2px 10px rgb(30, 30, 30);
    animation: slideIn 0.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}