@import url('https://fonts.googleapis.com/css2?family=Teachers:ital,wght@0,400..800;1,400..800&family=Ultra&display=swap');

:root {
    --body-background-color: #FFFAF0;
    --teal: #86FDF1;
    --light-blue: #C9D6EA;
    --violet: #52489C;
    --yellow: #FFD449;
    --white: #F7F3F3;
    --title-font: vollkorn, serif;
    --primary-font: "Teachers", serif;
    --secondary-font: "Ultra", serif;
    --lg-font: 2.5rem;
    --md-font: 1rem;
    --sm-font: .5rem;
    --default-font-size: 16px;
    --h1-font-size: 32px;
    --h1-font-color: #4B4642;
    --main-color: #4B4642;
}

* {
    margin: 0;
}

/*
  Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* remove built-in form typography
margin: remove default margin on text tags
*/
input,
button,
textarea,
select {
    font: inherit;
}

/*
  Avoid text overflows
*/
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

body {
    background-color: var(--body-background-color);
    font-family: var(--primary-font);
    font-size: var(--default-font-size);
    color: var(--main-color);
}

h1
{
    font-size: var(--h1-font-size);
    text-align: center;
    color: var(--h1-font-color);
    margin-bottom: 20px;
}

a{
    color: #3d4be3;
}


.app_container
{
    max-width: 500px;
    border:black;
    margin-right: auto;
    margin-left: auto;
    padding: 0 20px;
    padding-top: 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.language_area
{
    display: flex;
    gap: 5px;
    align-items: center;
}

.language_text
{
    font-size: 15px;
}

.main_button_style
{
    background-color: blue;
    border-radius: 15px;
}

.custom_input_area
{
    display: block;
}



/* Options (Forgot Password / Sign Up) */
.options {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    /* Slightly darker grey for links */
}

.options a {
    text-decoration: none;
    color: #007BFF;
    /* Link color */
    margin: 0 5px;
}



/* Form Fields */
.login-form {
    display: flex;
    flex-direction: column;
    /* Stack the fields vertically */
    /*align-items: center;*/
    /* Center align items */
}

.field_label {
    font-size: 24px;
    color: #4B4642;
    /* Dark color for labels */
    margin-bottom: 5px;
    /* Space between label and input */
    /* Align labels to the start */
}

.login-form input {
    width: 100%;
    padding: 16px 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    /* Simple border */
    border-radius: 16px;
    font-size: 24px;
    background-color: rgba(155, 174, 204, 0.5);
}

.login-form select {
    width: 100%;
    padding: 16px 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 16px;
    font-size: 24px;
    background-color: rgba(155, 174, 204, 0.5);
    color: var(--main-color);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234B4642' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.login-form select option {
    background-color: #fff;
    color: var(--main-color);
}

/* Ad Container - set display: flex to enable ads */
.ad-container {
    display: none;
    width: 100%;
    min-height: 100px;
    background-color: rgba(155, 174, 204, 0.2);
    border: 2px dashed #ccc;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    margin: 25px 0;
    padding: 15px;
}

.ad-container p {
    color: #999;
    font-size: 14px;
    text-align: center;
}

/* Button */
.login-btn {
    width: 223px;
    padding: 20px;
    background-color: #5B6B7A;
    /* Darker blue for better contrast */
    color: white;
    border: none;
    font-size: 20px;
    border-radius: 16px;
    cursor: pointer;
    font-family: var(--secondary-font);
    margin-left: auto;
    margin-right: auto;
}

.login_container
{

}

.footer_area
{
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 40px;
    padding-bottom: 20px;
}

h2 {
    font-size: 22px;
    font-weight: 400;
    text-align: center;
}

.subtitle
{
    font-size: 24px;
    font-weight: 800;
    text-align: center;
}

a.login_link
{
    font-size: 20px;
    text-align: center;
    display: block;
    color: #CD8B3E;
}

.error_message
{
    font-size: 14px;
    color: red;
}

.info_message {
    font-size: 16px;
    color: #4B4642;
    background-color: rgba(155, 174, 204, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    line-height: 1.5;
}

.forgot_link {
    font-size: 14px;
    color: #5B6B7A;
    text-decoration: none;
}

.forgot_link:hover {
    text-decoration: underline;
    color: #4B4642;
}

.image_container
{
    display: grid;
    justify-content: center;
}

.nota
{
    display: none;
    width: auto;
    max-width: 100%;
}

.currentlySelected
{
    display: block;
}

.controls
{
    min-height: 50px;
    display: flex;
    flex-shrink: 0;
}

.registo-sucesso
{
    font-size: 20px;
    font-weight: 700;
    color: green;
}

.welcome-text
{
    font-size: 20px;
    font-weight: 700;
}

.sala_list
{
    display: grid;
}

.sala_item
{
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    align-items: center;
    border-bottom: 1px solid black;
    padding: 20px 5px;
}

.sala_item.last{
    border-bottom: none;
}

.sala_title
{
    font-size: 22px;
    font-weight: 500;
}

.sala_code
{
    font-size: 20px;
    font-weight: 300;
}

@media (max-width: 1280px) {
    
}

@media (max-width: 1024px)
{

}

@media (max-width: 768px) {

}

/* Sala (Presentation) Page Styles */
.sala-page {
    padding-bottom: 40px;
}

.sala-logo {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.sala-logo img {
    max-width: 180px;
    height: auto;
}

.codigo-label {
    font-size: 16px;
    font-weight: 400;
    color: #4B4642;
    text-align: center;
    margin-bottom: 12px;
}

.room-code-box {
    font-size: 24px;
    font-weight: 700;
    color: #4B4642;
    text-align: center;
    border: 2px solid #4B4642;
    border-radius: 25px;
    padding: 12px 25px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto 40px;
    width: auto;
    max-width: 90%;
    padding-right: 20px;
}

.share-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #5B6B7A;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    color: #4B4642;
}

.sala-page .app_container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sala-page .image_container {
    background-color: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}



.image_counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
    margin-top: 20px;
}

.counter-text {
    font-size: 22px;
    font-weight: 400;
    color: #4B4642;
}

.nav-arrow {
    cursor: pointer;
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.nav-arrow:hover {
    opacity: 1;
    transform: scale(1.15);
}

.nav-arrow:active {
    transform: scale(0.9);
}

.exit-button-area {
    text-align: center;
    margin-top: 50px;
}

.exit-text-btn {
    background: none;
    border: none;
    color: #CD8B3E;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--primary-font);
    transition: all 0.3s ease;
    padding: 10px 20px;
    letter-spacing: 1px;
}

.exit-text-btn:hover {
    color: #b37730;
    transform: scale(1.05);
}

.exit-text-btn:active {
    transform: scale(0.95);
}

@media (max-width: 1280px) {

}

@media (max-width: 1024px)
{

}

@media (max-width: 768px) {

}

@media (max-width: 640px)
{
    .sala-logo img {
        max-width: 150px;
    }

    .room-code-box {
        font-size: 20px;
        padding: 10px 24px;
    }

    .counter-text {
        font-size: 18px;
    }

    .nav-arrow {
        width: 25px;
        height: 25px;
    }
}

/* Presenter Notes - Normal View */
.presenter-notes {
    width: 100%;
    max-width: 600px;
    text-align: left;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 12px 16px;
    background: #f8f6f4;
    border-radius: 10px;
    border-left: 3px solid #5B6B7A;
    box-sizing: border-box;
}

.presenter-notes-text {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    white-space: pre-wrap;
    margin: 0;
}

/* Fullscreen Image Overlay */
.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.fullscreen-overlay.active {
    display: flex;
}

.fullscreen-overlay {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.fullscreen-overlay:fullscreen {
    width: 100%;
    height: 100%;
    background-color: black;
}

.fullscreen-overlay:-webkit-full-screen {
    width: 100%;
    height: 100%;
    background-color: black;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 50px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 10001;
    font-family: Arial, sans-serif;
}

.fullscreen-close:hover {
    opacity: 1;
}

.fullscreen-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 95%;
    max-height: 95%;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
}

.fullscreen-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    color: white;
    padding: 0;
}

.fullscreen-nav:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.75);
    border-color: rgba(255, 255, 255, 0.9);
}

.fullscreen-prev {
    left: 30px;
}

.fullscreen-next {
    right: 30px;
}

.fullscreen-counter {
    position: absolute;
    bottom: 30px;
    color: white;
    font-size: 24px;
    font-weight: 400;
}

/* Presenter Notes - Fullscreen View */
.fullscreen-notes {
    position: absolute;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 70%;
    background: rgba(0, 0, 0, 0.7);
    color: #eee;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    white-space: pre-wrap;
    line-height: 1.5;
}

.fullscreen-notes p {
    margin: 0;
}

@media (max-width: 640px) {
    .presenter-notes {
        padding: 10px 12px;
    }
    .presenter-notes-text {
        font-size: 13px;
    }
    .fullscreen-notes {
        max-width: 90%;
        font-size: 14px;
        bottom: 55px;
    }
}

@media (max-width: 640px) {
    .fullscreen-nav {
        width: 44px;
        height: 44px;
    }
    .fullscreen-nav svg {
        width: 22px;
        height: 22px;
    }
    .fullscreen-prev {
        left: 15px;
    }
    .fullscreen-next {
        right: 15px;
    }
    .fullscreen-close {
        font-size: 40px;
        top: 10px;
        right: 15px;
    }
    .fullscreen-counter {
        font-size: 18px;
        bottom: 20px;
    }
    .fullscreen-content {
        max-width: 100%;
        max-height: 100%;
    }
    .fullscreen-image {
        max-height: 98vh;
        border-radius: 0;
    }
}

